- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have just installed altera 9.1sp2 quartusII,nios2eds, nios2-linux-20090929.tar on centOS_5 from InstallNios2Linux tutorial. 1-hen i try to build the binary toolchain (the laptop is i64 architecture but the linux centOS installed is 32 architecture) $~/nios2-linux/toolchain-build/make gcc elf2flt gdb-host the message error is lipthred/linuxthreads.old/wrapsyscall.c:101:error rededfinition of 'msync' ./include/sys/mman.h:97:error: previous definition of 'msync' was here make[1]: ***[libthread/linuxthreads.old/wrapsyscall.o] Error 1 2-then i have installed the prebuild binary tool chain nios2gcc-20080203.tar.bz2 in /opt/nios2/ the cross compiler nios2-linux-uclibc-gcc is in /opt/nios2/bin i can compile the hello.c example also i can do the tryOutuClinux example on 2C35 DE2 kit: configure the fpga with *.sof and run the zimage kernel 3-The problem is when i try continue with the uclinuxDist tutorial: I DONT INSTALL tar -C your_path -xvf nios2-linux-20090730.tar because 20090929 version its installed i do make menuconfig correctly but when i run $../uClinux-dist/ make vendor_hwselect SYSPTF=~/nios2-projects/tryOutuClinux/DE2_NIOS_HOST_MOUSE_VGA.ptf there is an error with the cross compiler selected ---> [candido@localhost uClinux-dist]$ make vendor_hwselect SYSPTF=~/nios2-projects/tryOutuClinux/DE2_NIOS_HOST_MOUSE_VGA.ptf >> error.txt make[1]: nios2-linux-gnu-gcc: No se encontró el programa make[1]: se ingresa al directorio `/home/candido/nios2-linux/uClinux-dist/vendors' /bin/sh: nios2-linux-gnu-gcc: command not found /bin/sh: nios2-linux-gnu-gcc: command not found which: no nios2-linux-gnu-gccbug in (/home/candido/nios2-linux/uClinux-dist/tools:/usr/kerberos/bin:/usr/lib/ccache/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/candido/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin:/home/candido/nios2-linux/toolchain-build/build/nios2/bin) which: no nios2-linux-gnu-gccbug in (/home/candido/nios2-linux/uClinux-dist/tools:/usr/kerberos/bin:/usr/lib/ccache/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/candido/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin:/home/candido/nios2-linux/toolchain-build/build/nios2/bin) /bin/sh: nios2-linux-gnu-gcc: command not found make[3]: *** No hay ninguna regla para construir el objetivo `hwselect'. Alto. make[2]: *** [vendor_hwselect] Error 2 make[1]: *** [vendor_hwselect] Error 2 make: *** [vendor_hwselect] Error 2 i have tried $make vendor_hwselect SYSPTF=~/nios2-projects/tryOutuClinux CROSS_COMPILE=nios2-linux-uclibc- but the result dont change 4-¿ How can I configure the cross_compile default? THANKS IN ADVANCELink Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I was working with trunk branch and the nios2install is for test-nios2 branch, so i have read something about git tool 0: internet connected 1: switch to nios2-test at git repo ../uClinux-dist/ $git branch -l test-nios2 * trunk $git checkout test-nios2 $git branch -l * test-nios2 trunk 2 : update run ../nios2-linux/update 3: uClinux-dist/make menuconfig ERROR: there is not any rule for target config.arch building and i can see tha there is a link file named config.arch linked to vendors/Altera/nios2nommu/config.arch ¿? THANKS IN ADVANCE- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
i can see that there is not a /vendors/Altera/nios2nommu/conf.arch file ........ why ? is wrong the link? Now, i am confused about nios2-linux versions which i need 20090929 or 20090730? wget http://www.niosftp.com/pub/linux/nios2-linux-20090929.tar wget http://www.niosftp.com/pub/uclinux/nios2-linux-20090730.tar the wiki mixed the 2 versions I am going to remove the new version and install the old version 20090730 Some aclaration please? THANKS IN ADVANCE- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
i have reinstall the nios2-linux-20090929 but now BEFORE run makes..... i have SWITCHED git branch to NIOS2-TEST branch and i get my first kernel image. bye- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi candido,
can u explain "SWITCHED git branch to NIOS2-TEST branch" more detail? did u follow the steps in repply# 2? i really need this thanks!- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Nguyen Tien,
In reply# 2 you must select test-nios2 branch with the command: $git checkout test-nios2 after, you can test your branch -> $ git -l branch bye- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
..more information
nios2-test is the nommu uclinux distribution you must select test-nios2 branch on uclinux distribution directory and linux-2.6 kernel source directroy too cd linux-2.6 git checkout test-nios2 cd uClinux-dist git checkout test-nios2 Cándido- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi Cándido,
thank you, now I can build the image :D- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks a lot.
I was also able to make nios2-linux-20100621.tar to work using these instructions. I have verified it on NEEK. I will confirm stratixIV_4sgx230 when done.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,Candido.I do what you told,but I also got a error.I changed the branch,when I make the image,there is a error:
{standard input}: Assembler messages: {standard input}:96: Error: unrecognised instruction flushda {standard input}:232: Error: unrecognised instruction flushda {standard input}:365: Error: unrecognised instruction flushda {standard input}:428: Error: unrecognised instruction flushda make[3]: *** [arch/nios2/mm/memory.o] 错误 1 LD arch/nios2/drivers/built-in.o make[2]: *** [arch/nios2/mm] 错误 2 make[2]: *** 正在等待未完成的任务.... make[2]: *** wait: 没有子进程。 停止。 make[1]: *** [sub-make] 错误 2 make[1]:正在离开目录 `/usr/local/src/nios2-linux/linux-2.6' make: *** [linux] 错误 1 root@lc-desktop:/usr/local/src/nios2-linux/uClinux-dist# why?Can you help me ?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
there is a similar post in http://www.alteraforum.com/forum/showthread.php?t=20200 can you conncect with him andido- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am sorry,I can not connect with him.He fied that problem one year ago,and maybe he is so busy that he can not come thr forum.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hello i am with the same problem you had, same computer specs also.
Can't run this 2 : update run ../nios2-linux/update can anybody help? Thanks- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you sure you were able to do the switch. To me it seems like you are still using the mmu branch.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok, now i am getting an error like "Unable to verify adress between (some adress) and (some adress)" after downloading my image to my board.
ANy tips? Thanks- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You must select test-nios2 branch on uclinux distribution directory and linux-2.6 kernel source directroy too
cd linux-2.6 git checkout test-nios2 cd uClinux-dist git checkout test-nios2 --------------------------------- I've done that,but: [root@localhost uClinux-dist]# make menuconfig Makefile:63: config.arch: No such file or directory make: *** No rule to make target `config.arch'. Stop. [root@localhost uClinux-dist]# make Makefile:63: config.arch: No such file or directory make: *** No rule to make target `config.arch'. Stop. `config.arch' in the uClinux-dist folder is broken ... !!!- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- hi Cándido, thank you, now I can build the image :D --- Quote End --- What do you mean build the image, i did the same steps, what will be next step. Sorry for Naive question, I really want to run linux on board
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Iam trying to run uclinux on DE0-Nano board, iam using ubuntu12.04.And iam using nios2-linux-20090929. What i did cd nios2-linux git checkout test-nios2 cd uclinux-dist git checkout test-nios2. In thsese two cases i got "switched to branch test-nios2" and i set PATH variable also.And specified hardware architecture make vendor_hwselect sysptf=~/uclinux/hardware/de0-nano/simple/de0_nano_sopc.ptf ok only, but when i execute the make command in terminal the error showing as mentioned belowerrorr------------------------------------->>>>>>>>>>>>>>>>>> alex@alex:~/Desktop/abc/uClinux/distro/nios2-linux/uClinux-dist$ make ln -sf staging-pkg-config tools/nios2-linux-uclibc-pkg-config rm -f /home/alex/Desktop/abc/uClinux/distro/nios2-linux/uClinux-dist/linux-2.6.x/usr/initramfs_data.cpio.gz make ARCH=nios2 CROSS_COMPILE=nios2-linux-uclibc- -C /home/alex/Desktop/abc/uClinux/distro/nios2-linux/uClinux-dist/../linux-2.6 O=/home/alex/Desktop/abc/uClinux/distro/nios2-linux/uClinux-dist/linux-2.6.x -j4 zImage || exit 1 make[1]: Entering directory `/home/alex/Desktop/abc/uClinux/distro/nios2-linux/linux-2.6' /bin/sh: 1: nios2-linux-uclibc-gcc: not found make[2]: nios2-linux-uclibc-gcc: command not found
make[2]: nios2-linux-uclibc-gcc: command not found CHK include/asm-nios2/nios2.h perl -I/home/alex/Desktop/abc/uClinux/distro/nios2-linux/linux-2.6/arch/nios2/scripts /home/alex/Desktop/abc/uClinux/distro/nios2-linux/linux-2.6/arch/nios2/scripts/gen_nios2.h.pl cpu sdram < /home/alex/uClinux/hardware/DE0-Nano/simple/DE0_Nano_SOPC.ptf > include/asm-nios2/nios2.h.tmp; if [ -r include/asm-nios2/nios2.h ] && cmp -s include/asm-nios2/nios2.h include/asm-nios2/nios2.h.tmp; then rm -f include/asm-nios2/nios2.h.tmp; else echo ' UPD include/asm-nios2/nios2.h'; mv -f include/asm-nios2/nios2.h.tmp include/asm-nios2/nios2.h; fi GEN /home/alex/Desktop/abc/uClinux/distro/nios2-linux/uClinux-dist/linux-2.6.x/Makefile CHK include/linux/version.h CHK include/linux/utsrelease.h SYMLINK include/asm -> include/asm-nios2 Using /home/alex/Desktop/abc/uClinux/distro/nios2-linux/linux-2.6 as source for kernel CC scripts/mod/empty.o /bin/sh: 1: nios2-linux-uclibc-gcc: not found make[4]: *** [scripts/mod/empty.o] Error 127 make[3]: *** [scripts/mod] Error 2 make[2]: *** [scripts] Error 2 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [sub-make] Error 2 make[1]: Leaving directory `/home/alex/Desktop/abc/uClinux/distro/nios2-linux/linux-2.6' make: *** [linux] error 1 Kindly Any help?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
the ` nios2-linux-gnu-gcc' is in the folder named `./toolchain-mmu/bin` .i have add it in the file named .profile.but it does not work.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page