Altera_Forum
Honored Contributor
18 years agobuild kernel errors (follows UClinuxDist in Wiki)
hi. i am a beginner on uclinux and i followed the UClinuxDist to build the uclinux kernel, but it turned out some errors.
********************************************************** >make vendor_hwselect SYSPTF=~/download/HW/system_0.ptf ............. >make romfs ........ make[1]: Leaving directory `/home/echo/download/uClinux-dist/lib' make[1]: Entering directory `/home/echo/download/uClinux-dist/include' make[1]: Nothing to be done for `romfs'. make[1]: Leaving directory `/home/echo/download/uClinux-dist/include' make[1]: Entering directory `/home/echo/download/uClinux-dist/user' for i in boa busybox cgi_generic dhcpcd-new ftp ftpd games inetd init ntp sash telnetd /home/echo/download/uClinux-dist/prop ; do [ ! -d $i ] || make -C $i romfs || exit $? ; done make[2]: Entering directory `/home/echo/download/uClinux-dist/user/boa' for i in src ; do make -C $i romfs || exit ; done make[3]: Entering directory `/home/echo/download/uClinux-dist/user/boa/src' romfs-inst.sh /bin/boa cp: can't confirm ‘boa’: No such file or directory make[3]: *** [romfs] error 1 make[3]: Leaving directory `/home/echo/download/uClinux-dist/user/boa/src' make[2]: *** [romfs] error 2 make[2]: Leaving directory `/home/echo/download/uClinux-dist/user/boa' make[1]: *** [romfs] error 2 make[1]: Leaving directory `/home/echo/download/uClinux-dist/user' make: *** [romfs.subdirs] error 1 >make ...... CHK include/linux/version.h CHK include/linux/utsrelease.h CHK include/linux/compile.h GEN usr/initramfs_data.cpio.gz /home/echo/download/uClinux-dist/linux-2.6.x/scripts/gen_initramfs_list.sh: line 137: gawk:command not found Unrecognized dir format '/init 777 1000 1000' line 42 make[2]: *** [usr/initramfs_data.cpio.gz] error 255 make[1]: *** [usr] error 2 make[1]: Leaving directory `/home/echo/download/uClinux-dist/linux-2.6.x' make: *** [linux] error 1 >make ............ /home/echo/download/uClinux-dist/linux-2.6.x/scripts/gen_initramfs_list.sh: line 137: gawk:command not found Unrecognized dir format '/init 777 1000 1000' line 42 make[2]: *** [usr/initramfs_data.cpio.gz] error 255 make[1]: *** [usr] error 2 make[1]: Leaving directory `/home/echo/download/uClinux-dist/linux-2.6.x' make: *** [linux] error 1 >make linux image ............. make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- -j1 -C linux-2.6.x zImage || exit 1 no emulation specific options. make[1]: Entering directory `/home/echo/download/uClinux-dist/linux-2.6.x' CHK include/nios2_system.h perl -I/home/echo/download/uClinux-dist/linux-2.6.x/arch/nios2nommu/scripts /home/echo/download/uClinux-dist/linux-2.6.x/arch/nios2nommu/scripts/gen_nios2_system.h.pl cpu_0 sdram_0 cfi_flash_0 < /home/echo/download/HW/system_0.ptf > include/nios2_system.h.tmp; if [ -r include/nios2_system.h ] && cmp -s include/nios2_system.h include/nios2_system.h.tmp; then rm -f include/nios2_system.h.tmp; else echo ' UPD include/nios2_system.h'; mv -f include/nios2_system.h.tmp include/nios2_system.h; fi CHK include/linux/version.h CHK include/linux/utsrelease.h CHK include/linux/compile.h GEN usr/initramfs_data.cpio.gz /home/echo/download/uClinux-dist/linux-2.6.x/scripts/gen_initramfs_list.sh: line 137: gawk:command not found Unrecognized dir format '/init 777 1000 1000' line 42 make[2]: *** [usr/initramfs_data.cpio.gz] error 255 make[1]: *** [usr] error 2 make[1]: Leaving directory `/home/echo/download/uClinux-dist/linux-2.6.x' make: *** [linux] error 1 ******************************************************************************** ************* my ptf is from the wiki "system_0.ptf" and seclet Altera, nios2nommu, None Libc and default all settings, i did it step by step and i don't know why these errors happen and also don't know how to solve them. so can any body help me?i will show great appreciation to you! thanks!