Forum Discussion
Altera_Forum
Honored Contributor
16 years agouclinux toolchain installation ( cross compiler setting error)
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 ADVANCE18 Replies
- Altera_Forum
Honored Contributor
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.
- Altera_Forum
Honored Contributor
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 - Altera_Forum
Honored Contributor
Are you sure you were able to do the switch. To me it seems like you are still using the mmu branch.
- Altera_Forum
Honored Contributor
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 - Altera_Forum
Honored Contributor
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 ... !!! - Altera_Forum
Honored Contributor
--- 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 - Altera_Forum
Honored Contributor
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?
- Altera_Forum
Honored Contributor
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.