Altera_Forum
Honored Contributor
19 years agoporblems when generate the zImage
hello guys, i have encounted a problem and came for your kind help.
to generate the zImage file, i input the command 'make', then it has the following errors, what should i do? need to make some patches? i've patched the uClinux-dist.diff.gz provided. [bigmagic@tu053020 uClinux-dist-test]$ make make -C tools/ucfront make[1]: Entering directory `/home/bigmagic/uClinux-dist-test/tools/ucfront' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/bigmagic/uClinux-dist-test/tools/ucfront' ln -sf /home/bigmagic/uClinux-dist-test/tools/ucfront/ucfront tools/ucfront-gcc ln -sf /home/bigmagic/uClinux-dist-test/tools/ucfront/ucfront tools/ucfront-g++ ln -sf /home/bigmagic/uClinux-dist-test/tools/ucfront/ucfront-ld tools/ucfront-ld make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- -C linux-2.6.x zImage || exit 1 no emulation specific options. make[1]: Entering directory `/home/bigmagic/uClinux-dist-test/linux-2.6.x' CHK include/nios2_system.h perl -I/home/bigmagic/uClinux-dist-test/linux-2.6.x/arch/nios2nommu/scripts /home/bigmagic/uClinux-dist-test/linux-2.6.x/arch/nios2nommu/scripts/gen_nios2_system.h.pl cpu_0 sram_0 cfi_flash_0 < mk.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/compile.h CHK usr/initramfs_list CC arch/nios2nommu/kernel/time.o arch/nios2nommu/kernel/time.c: In function `timer_interrupt': arch/nios2nommu/kernel/time.c:70: error: `na_timer0' undeclared (first use in this function) arch/nios2nommu/kernel/time.c:70: error: (Each undeclared identifier is reported only once arch/nios2nommu/kernel/time.c:70: error: for each function it appears in.) arch/nios2nommu/kernel/time.c: In function `time_init': arch/nios2nommu/kernel/time.c:111: error: `na_timer0_irq' undeclared (first use in this function) arch/nios2nommu/kernel/time.c:113: error: `na_timer0' undeclared (first use in this function) arch/nios2nommu/kernel/time.c:118: error: `np_timercontrol_start_mask' undeclared (first use in this function) arch/nios2nommu/kernel/time.c:119: error: `np_timercontrol_cont_mask' undeclared (first use in this function) arch/nios2nommu/kernel/time.c:119: error: `np_timercontrol_ito_mask' undeclared (first use in this function) make[2]: *** [arch/nios2nommu/kernel/time.o] 错误 1 make[1]: *** [arch/nios2nommu/kernel] 错误 2 make[1]: Leaving directory `/home/bigmagic/uClinux-dist-test/linux-2.6.x' make: *** [linux] 错误 1 anybody met similar problem before? please give some advice on it, thank you very much!!