Forum Discussion
Altera_Forum
Honored Contributor
20 years ago --- Quote Start --- originally posted by piie@Apr 21 2006, 02:09 PM hello all,
i tried to follow the howto step by step, but when compiling the kernel i get following errors:
$ make arch=nios2nommu cross_compile=nios2-linux-uclibc- zimage
chk include/linux/version.h
chk include/nios2_system.h
perl -i/home/jack/linux-2.6.x/arch/nios2nommu/scripts /home/jack/linux-2.6.x/arch/nios2nommu/scripts/gen_nios2_system.h.pl cpu sdram ext_flash < ../standard_1c12.ptf > include/nios2_system.h.tmp; if && 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
make: `arch/nios2nommu/kernel/asm-offsets.s' is up to date.
chk include/linux/compile.h
chk usr/initramfs_list
arch/nios2nommu/boot/makefile:29: warning: overriding commands for target `arch/nios2nommu/boot/zimage'
arch/nios2nommu/boot/makefile:12: warning: ignoring old commands for target `arch/nios2nommu/boot/zimage'
arch/nios2nommu/boot/makefile:33: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux'
arch/nios2nommu/boot/makefile:16: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux'
arch/nios2nommu/boot/makefile:46: warning: overriding commands for target `arch/nios2nommu/boot/zimage'
arch/nios2nommu/boot/makefile:29: warning: ignoring old commands for target `arch/nios2nommu/boot/zimage'
arch/nios2nommu/boot/makefile:50: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux'
arch/nios2nommu/boot/makefile:33: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux'
arch/nios2nommu/boot/compressed/makefile:58: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux'
arch/nios2nommu/boot/compressed/makefile:22: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux'
arch/nios2nommu/boot/compressed/makefile:62: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin'
arch/nios2nommu/boot/compressed/makefile:26: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin'
arch/nios2nommu/boot/compressed/makefile:65: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin.gz'
arch/nios2nommu/boot/compressed/makefile:29: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin.gz'
arch/nios2nommu/boot/compressed/makefile:72: warning: overriding commands for target `arch/nios2nommu/boot/compressed/piggy.o'
arch/nios2nommu/boot/compressed/makefile:36: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/piggy.o'
arch/nios2nommu/boot/compressed/makefile:94: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux'
arch/nios2nommu/boot/compressed/makefile:58: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux'
arch/nios2nommu/boot/compressed/makefile:98: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin'
arch/nios2nommu/boot/compressed/makefile:62: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin'
arch/nios2nommu/boot/compressed/makefile:101: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin.gz'
arch/nios2nommu/boot/compressed/makefile:65: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin.gz'
arch/nios2nommu/boot/compressed/makefile:108: warning: overriding commands for target `arch/nios2nommu/boot/compressed/piggy.o'
arch/nios2nommu/boot/compressed/makefile:72: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/piggy.o'
as arch/nios2nommu/boot/compressed/head.o
arch/nios2nommu/boot/compressed/head.s: assembler messages:
arch/nios2nommu/boot/compressed/head.s:111: error: symbol `_start' is already defined
arch/nios2nommu/boot/compressed/head.s:117: error: symbol `text_init' is already defined
arch/nios2nommu/boot/compressed/head.s:126: error: symbol `data_init' is already defined
arch/nios2nommu/boot/compressed/head.s:146: error: symbol `flush_cache' is already defined
arch/nios2nommu/boot/compressed/head.s:151: error: symbol `data_flush' is already defined
arch/nios2nommu/boot/compressed/head.s:158: error: symbol `text_flush' is already defined
arch/nios2nommu/boot/compressed/head.s:169: error: symbol `fake_headers_as_bzimage' is already defined
arch/nios2nommu/boot/compressed/head.s:202: error: symbol `_start' is already defined
arch/nios2nommu/boot/compressed/head.s:208: error: symbol `text_init' is already defined
arch/nios2nommu/boot/compressed/head.s:217: error: symbol `data_init' is already defined
arch/nios2nommu/boot/compressed/head.s:237: error: symbol `flush_cache' is already defined
arch/nios2nommu/boot/compressed/head.s:242: error: symbol `data_flush' is already defined
arch/nios2nommu/boot/compressed/head.s:249: error: symbol `text_flush' is already defined
arch/nios2nommu/boot/compressed/head.s:260: error: symbol `fake_headers_as_bzimage' is already defined
make: *** error 1
make: *** error 2
make: *** error 2
anyone any idea what's going wrong?
btw, hippo, thanks for the great work.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14536)</div> --- Quote End --- It looks like the zImage was patched twice? Please reinstall kernel source
cd ~
rm -rf ~/linux-2.6.x# kernel 2.6.11-uc0 source ported by microtronix
cp -a ~/download/mx140/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x ~
cd ~/linux-2.6.x
patch -p0 <~/download/kernel.diff
cp ~/download/kernel.config ~/linux-2.6.x/.config Please post your future questions to uclinux forum.