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++
12596 Discussions

help!how to build uclinux on de2 in windows

Altera_Forum
Honored Contributor II
2,090 Views

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

nearly all of those exllent people who built a uclinux on de2 were doing there work in linux environment.have anyone built one in windows environment?how?i&#39;m not so familiar with linux, but i have to done this in a few days, may anyone show me the way?
0 Kudos
9 Replies
Altera_Forum
Honored Contributor II
499 Views

 

--- Quote Start ---  

originally posted by tgbzsq@Jul 12 2006, 01:06 AM 

http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/ohmy.gif  

nearly all of those exllent people who built a uclinux on de2 were doing there work in linux environment.have anyone built one in windows environment?how?i&#39;m not so familiar with linux, but i have to done this in a few days, may anyone show me the way? 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=16798) 

--- quote end ---  

 

--- Quote End ---  

 

even when you have limited time, the fastest way is still working on Linux. 

 

first, try out the prebuild image, 

http://nioswiki.jot.com/wikihome/operating...s/tryoutuclinux (http://nioswiki.jot.com/wikihome/operatingsystems/tryoutuclinux

 

follow this to install colinux on your windows xp. 

http://nioswiki.jot.com/wikihome/operating...ms/nios2colinux (http://nioswiki.jot.com/wikihome/operatingsystems/nios2colinux

 

then install binary toolchain to colinux and install uClinux-dist-test, 

http://nioswiki.jot.com/wikihome/operating...binarytoolchain (http://nioswiki.jot.com/wikihome/operatingsystems/binarytoolchain

http://nioswiki.jot.com/wikihome/operating...ems/uclinuxdist (http://nioswiki.jot.com/wikihome/operatingsystems/uclinuxdist)
0 Kudos
Altera_Forum
Honored Contributor II
499 Views

 

--- Quote Start ---  

originally posted by hippo+jul 12 2006, 10:34 am--><div class='quotetop'>quote (hippo @ jul 12 2006, 10:34 am)</div> 

--- quote start ---  

<!--quotebegin-tgbzsq@Jul 12 2006, 01:06 AM 

http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/ohmy.gif  

nearly all of those exllent people who built a uclinux on de2 were doing there work in linux environment.have anyone built one in windows environment?how?i&#39;m not so familiar with linux, but i have to done this in a few days, may anyone show me the way? 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=16798) 

--- quote end ---  

 

--- Quote End ---  

 

even when you have limited time, the fastest way is still working on Linux. 

 

first, try out the prebuild image, 

http://nioswiki.jot.com/wikihome/operating...s/tryoutuclinux (http://nioswiki.jot.com/wikihome/operatingsystems/tryoutuclinux

 

follow this to install colinux on your windows xp. 

http://nioswiki.jot.com/wikihome/operating...ms/nios2colinux (http://nioswiki.jot.com/wikihome/operatingsystems/nios2colinux

 

then install binary toolchain to colinux and install uClinux-dist-test, 

http://nioswiki.jot.com/wikihome/operating...binarytoolchain (http://nioswiki.jot.com/wikihome/operatingsystems/binarytoolchain

http://nioswiki.jot.com/wikihome/operating...ems/uclinuxdist (http://nioswiki.jot.com/wikihome/operatingsystems/uclinuxdist

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=16802)</div> 

[/b] 

--- Quote End ---  

 

 

Thank you very much for you answer, i&#39;m going to solve this problem in linux now ,even though i&#39;m not very familiar with it , would you please show me the flow? i still cannot find a development environment for my de2 board under linux, how can i go on my work without Quartus and NIOSII? thus ,the most important thing for me now is find out a suitable develop software under linux.
0 Kudos
Altera_Forum
Honored Contributor II
499 Views

You should try out the zImage first. It will give you hand on immediately. 

 

If you have extra PC to run Linux, you can install Fedora Core 5 . 

Otherswise, you can install colinux on your windows xp. 

 

look at the wiki, 

http://nioswiki.jot.com/%c2%b5clinux (http://nioswiki.jot.com/%c2%b5clinux)
0 Kudos
Altera_Forum
Honored Contributor II
499 Views

------------------------------------------------ 

Microtronix Linux Extensions 

Version 1.4, Built June 20, 2005 

------------------------------------------------ 

/cygdrive/f/workspace/altera/NIOS/de2/DE2_demonstrations/DE2_NET 

[SOPC Builder]$ nios2-download -g 

Using cable "USB-Blaster [USB-0]", device 1, instance 0x00 

Pausing target processor: OK 

Restarting target processor 

/cygdrive/f/workspace/altera/NIOS/de2/DE2_demonstrations/DE2_NET 

[sopc builder]$ nios2-terminal 

nios2-terminal: connected to hardware target using jtag uart on cable 

nios2-terminal: "usb-blaster [usb-0]", device 1, instance 0 

nios2-terminal: (use the ide stop button or ctrl-c to terminate) 

 

this is the response of the system after i download the project DE2_NET, and another problem is shown below 

 

&#31995;&#32479;&#25214;&#19981;&#21040;&#25351;&#23450;&#30340;&#36335;&#24452;&#12290; 

. Removing old PATH, because a copy of 

. cygwin1.dll was found at: 

. /usr/bin/cygwin1.dll 

. You can remove or rename it to avoid conflict. 

------------------------------------------------ 

Welcome To Altera SOPC Builder 

 

Version 5.1, Built Thu Oct 20 19:10:26 PDT 2005 

------------------------------------------------ 

 

------------------------------------------------ 

Welcome to the Nios II Development Kit 

Version 5.1, Built Fri Oct 21 00:44:38 PDT 2005 

 

Example designs can be found in 

/cygdrive/c/altera/kits/nios2_51/examples 

 

------------------------------------------------ 

(Executing user startup script: c:/altera/kits/nios2_51/user.bashrc) 

/cygdrive/f/workspace/altera/NIOS/de2/DE2_demonstrations/DE2_NET 

[sopc builder]$ nios2-download -g zimage_cpu_0 

nios2-elf-objcopy: &#39;./zimage_cpu_0&#39;: no such file 

./zimage_cpu_0.srec: unable to open input file 

rm: cannot remove `./zimage_cpu_0.srec&#39;: no such file or directory 

/cygdrive/f/workspace/altera/nios/de2/de2_demonstrations/de2_net 

[sopc builder]$ 

 

i thought it will show the message that "Starting processor at address 0x04800000" 

would you please show my a way to explain and solve these problems?
0 Kudos
Altera_Forum
Honored Contributor II
499 Views

1. in quartus, open the project DE2_System/DE2_demonstrations/DE2_NET/ 

tool->programmer , program the sof to your board. 

2. use web brower to download the zImage_de2_net file to a dir, eg, c:/temp 

http://nioswiki.jot.com/wikihome/operating.../zimage_de2_net (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/tryoutuclinux/zimage_de2_net

3. from Windows Start-->Programs-->Altera-->Nios II 6.0 -->Nios II Command Shell 

4. in nios2 command shell, cd to that dir, 

cd /cygdrive/c/temp 

nios2-download -g zImage_de2_net 

5. then 

nios2-terminal
0 Kudos
Altera_Forum
Honored Contributor II
499 Views

nioswiki.jot.com is not working ... any alternative or any straightforward solution to download uclinux on ALtera de2 board for new bie .. thanks in advance ...

0 Kudos
Altera_Forum
Honored Contributor II
499 Views

AFAIK, there is no prebuilt Linux for NIOS. It is a work in progress and needs to be tweaked according to the application anyway. 

 

see: http://www.alterawiki.com/wiki/linux_for_the_nios_ii_processor 

 

-Michael
0 Kudos
Altera_Forum
Honored Contributor II
499 Views

thanx for updating me Micheal

0 Kudos
Altera_Forum
Honored Contributor II
499 Views

While following all the steps on tryOutuClinux I am stuck at 

 

make vendor_hwselect SYSPTF=/path_to/your_sytem.ptf  

I can find  

/opt/altera8.0/nios2eds/examples/verilog/niosII_cycloneII_2c35/full_featured/NiosII_?cycloneII_2c35_full_featured_sopc.ptfbut having this 

 

root@ubuntu:/home/elysium/uclinux/nios2-linux/uClinux-dist# make vendor_hwselect SYSPTF=/media/96A00F1FA00F0609/altera/91/nios2eds/examples/verilog/niosII_cycloneII_2c35/full_featured/NiosII_cycloneII_2c35_full_featured_sopc.ptf 

make ARCH=nios2 -C vendors vendor_hwselect 

make[1]: Entering directory `/home/elysium/uclinux/nios2-linux/uClinux-dist/vendors' 

make -C /home/elysium/uclinux/nios2-linux/uClinux-dist/vendors/Altera/nios2/. dir_v=/home/elysium/uclinux/nios2-linux/uClinux-dist/vendors/Altera/nios2/. -f /home/elysium/uclinux/nios2-linux/uClinux-dist/vendors/vendors-common.mak vendor_hwselect 

make[2]: Entering directory `/home/elysium/uclinux/nios2-linux/uClinux-dist/vendors/Altera/nios2' 

[ -d /home/elysium/uclinux/nios2-linux/uClinux-dist/romfs/$i ] || mkdir -p /home/elysium/uclinux/nios2-linux/uClinux-dist/romfs 

make ARCH=nios2 CROSS_COMPILE=nios2-linux-uclibc- -C /home/elysium/uclinux/nios2-linux/uClinux-dist/../linux-2.6 O=/home/elysium/uclinux/nios2-linux/uClinux-dist/linux-2.6.x hwselect 

make[3]: Entering directory `/home/elysium/uclinux/nios2-linux/linux-2.6' 

GEN /home/elysium/uclinux/nios2-linux/uClinux-dist/linux-2.6.x/Makefile 

scripts/kconfig/conf -s arch/nios2/Kconfig# # configuration written to .config#  

include/config/auto.conf:8:warning: symbol value 'arch/x86/configs/i386_defconfig' invalid for ARCH_DEFCONFIG 

include/config/auto.conf:44:warning: symbol value 'elf32-i386' invalid for OUTPUT_FORMAT 

make[4]: *** No rule to make target `hwselect'. Stop. 

make[3]: *** [sub-make] Error 2 

make[3]: Leaving directory `/home/elysium/uclinux/nios2-linux/linux-2.6' 

make[2]: *** [vendor_hwselect] Error 2 

make[2]: Leaving directory `/home/elysium/uclinux/nios2-linux/uClinux-dist/vendors/Altera/nios2' 

make[1]: *** [vendor_hwselect] Error 2 

make[1]: Leaving directory `/home/elysium/uclinux/nios2-linux/uClinux-dist/vendors' 

make: *** [vendor_hwselect] Error 2 

 

 

Any suggestions, thanks
0 Kudos
Reply