Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

Newbie starting with UP3 board ! uClinux-nios2-UP3

Hello,

After some hours googling and searching, also this forum (lots of posts) I have decided to post this:

I have a UP3 devkit platform and my goal is to be able to run uClinux in it.

So far i have download OR1K2 from opencores.org, as well as Nios II Evaluation Tools, Version 5.1 from Altera site.

I have find a toolchain for nios2 - http://scorpius.homelinux.org/~marc/nios2.html (http://scorpius.homelinux.org/~marc/nios2.html) - and i have download uclinux 1.4 from this forum, at downloads section. But how different is this code to the one released at uclinux.org ?

Also i'm developing over Quartus II (win32), how do i put nios2 into UP3 ? Is it straight ahead to do so with Nios II Eval tools ? When i'll have nios2 running over UP3 i'd like to try to compile uclinux (on GNU/Linux host) and try it on nios II, any hint ? As well as doing it for OR1K2 microprocessor, any advice ?

Thanks,

Benito http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/cool.gif

7 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    OK, thanks for the information...

    But how do i put nios2 into cyclone UP3 board ?

    I have download Nios II 5.1 IDE from Altera&#39;s site, i guess this is what i need. I still need to check it out.

    Thanks !
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I have checked the UP3 , it has very small ram and it is not good for uClinux.

    You should get a dev board with 16M+ sdram to run uClinux.

    You can play only HAL on UP3. You don&#39;t need to build tools on Linux for HAL.

    Download the latest quartusII v5.1 sp1, nios2 v5.1 and nios2 v5.1 sp1 patch from altera web site. And read the nios2 starting guide.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    So far I have been able to run nios II on UP3 and start NIOS II IDE 5.1 to program some C Code and llok at it through NIOS II IDE console.

    In order to play with HAL (i dunno what that is or neither download, my guess.. OS) i need to have Quartus running because *.sof file on Quartus has some limitations (Web license).

    So, could you introduce me into HAL, but what i would be interested is on how to run uClinux on Nios II or maybe Nios. I have read Kadionik&#39;s webpage about uClinux port to Nios effort http://www.enseirb.fr/~kadionik/embedded/u...os-uclinux.html (http://www.enseirb.fr/~kadionik/embedded/uclinux/nios-uclinux.html) but as you said i might experience some trouble lacking RAM. But how could i do it ? I have been able to generate a uClinux image for other devices, but how would i run uClinux binaries on Nios II Core ?

    Regards,..
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi Benito,

    If you want to use nios2 uClinux in your plan, there is no need to play with HAL.

    (Time=Life) > money

    Try get a Nios II Evaluation Kit, which has a uClinux port on the flash. It is not expensive.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Well, i have just borrowed the hardware UP3 from a university, so i didn&#39;t want to invest money on it. Anyway, where is that HAL Code ?

    Regards,

    Benito
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You can find HAL sources in dir altera/kits/nios2/components/xxxx/HAL, and altera/quartus51/sopc_builder/components/xxxx/HAL .