- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I need help when I want set Makefile according to DEO hardware setting,and the command is "sudo make vendor_hwselect SYSPTF=/usr/local/src/DE0.ptf" the errors occurred ******************** make ARCH=nios2nommu -C vendors vendor_hwselect make[1]: Entering directory `/usr/local/src/uClinux-dist/vendors' make -C /usr/local/src/uClinux-dist/vendors/Altera/nios2nommu dir_v=/usr/local/src/uClinux-dist/vendors/Altera/nios2nommu -f /usr/local/src/uClinux-dist/vendors/vendors-common.mak vendor_hwselect make[2]: Entering directory `/usr/local/src/uClinux-dist/vendors/Altera/nios2nommu' [ -d /usr/local/src/uClinux-dist/romfs/$i ] || mkdir -p /usr/local/src/uClinux-dist/romfs make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- CFLAGS_KERNEL="" AFLAGS_KERNEL="" -C /usr/local/src/uClinux-dist/linux-2.6.x hwselect /bin/sh: nios2-linux-uclibc-gcc: not found make[3]: nios2-linux-uclibc-gcc: Command not found make[3]: Entering directory `/usr/local/src/uClinux-dist/linux-2.6.x' make[3]: nios2-linux-uclibc-gcc: Command not found /bin/sh: nios2-linux-uclibc-gcc: not found make[4]: nios2-linux-uclibc-gcc: Command not found scripts/kconfig/conf --silentoldconfig Kconfig arch/nios2nommu/Kconfig:5: invalid statement make[5]: *** [silentoldconfig] Error 1 make[4]: *** [silentoldconfig] Error 2 RUNNING hwselect Can't locate PTF/SystemPTF.pm in @INC (@INC contains: /arch/nios2nommu/scripts /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/local/src/uClinux-dist/linux-2.6.x/arch/nios2nommu/scripts/hwselect.pl line 8. BEGIN failed--compilation aborted at /usr/local/src/uClinux-dist/linux-2.6.x/arch/nios2nommu/scripts/hwselect.pl line 8. make[3]: *** [hwselect] Error 2 make[3]: Leaving directory `/usr/local/src/uClinux-dist/linux-2.6.x' make[2]: *** [vendor_hwselect] Error 2 make[2]: Leaving directory `/usr/local/src/uClinux-dist/vendors/Altera/nios2nommu' make[1]: *** [vendor_hwselect] Error 2 make[1]: Leaving directory `/usr/local/src/uClinux-dist/vendors' make: *** [vendor_hwselect] Error 2 ********************************************* My environment is: ubuntu I can get the information ********************************************* Reading specs from /opt/nios2/lib/gcc/nios2-linux-uclibc/3.4.6/specs Configured with: /root/buildroot/toolchain_build_nios2/gcc-3.4.6/configure --prefix=/opt/nios2 --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu --target=nios2-linux-uclibc --enable-languages=c,c++ --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld --disable-shared --disable-nls --enable-threads --enable-multilib Thread model: posix gcc version 3.4.6 ********************************************** Therefor it seems that the cross compiler is installed correctly And I setting the file in ~/.bash_profile ********************************# .bash_profile# Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi# User specific environment and startup programs PATH=$PATH:$HOME/bin:/opt/nios2/bin export PATH unset USERNAME ********************************** It seems like OK I also do "make menuconfig" ******************************************* vendor:Altera Altera Product:nios2nommu kernel version:linux-2.6.x Libc Version:None Default all setting [*] ******************************************** I only do not success that is "gunzip -c uClinux-dist-20070130-nios2-02.diff.gz | patch -p0" it gives me the information ******************************************** raul232641@ubuntu:/usr/local/src/uClinux-dist$ sudo gunzip -c uClinux-dist-20070130-nios2-02.diff.gz | patch -p0 patching file vendors/Altera/nios2nommu/config.arch Hunk# 1 succeeded at 23 with fuzz 2 (offset 1 line). Hunk# 2 succeeded at 36 (offset 1 line). Hunk# 3 succeeded at 83 (offset 1 line). Hunk# 4 succeeded at 91 (offset 1 line). Hunk# 5 succeeded at 99 (offset 1 line). Hunk# 6 succeeded at 117 (offset 1 line). patch: **** Can't rename file vendors/Altera/nios2nommu/config.arch to vendors/Altera/nios2nommu/config.arch.orig : Permission denied ********************************************* But I think that it is not a big deal thank you~waste your time to see the so long threadLink Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
problem is here:
make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- CFLAGS_KERNEL="" AFLAGS_KERNEL="" -C /usr/local/src/uClinux-dist/linux-2.6.x hwselect /bin/sh: nios2-linux-uclibc-gcc: not found You can use the following commands to solve this problem quickly: --- Quote Start --- cd linux-2.6 git checkout test-nios2 -f --- Quote End --- --- Quote Start --- cd uClinux-dist git checkout test-nios2 -f --- Quote End --- you can also find further info here: http://www.alteraforum.com/forum/showthread.php?t=23549- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you very much .
It work.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page