Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12606 Discussions

Newbie starting with UP3 board ! uClinux-nios2-UP3

Altera_Forum
Honored Contributor II
1,502 Views

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
0 Kudos
7 Replies
Altera_Forum
Honored Contributor II
429 Views

Welcome. 

For nios2, there is some update to it. follow this to build tools/kernel/apps 

http://forum.niosforum.com/forum/index.php?showtopic=3174 (http://forum.niosforum.com/forum/index.php?showtopic=3174)
0 Kudos
Altera_Forum
Honored Contributor II
429 Views

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 !
0 Kudos
Altera_Forum
Honored Contributor II
429 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
429 Views

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,..
0 Kudos
Altera_Forum
Honored Contributor II
429 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
429 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
429 Views

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

0 Kudos
Reply