Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Error during make zImage

Altera_Forum
Honored Contributor II
1,427 Views

Hi,  

Stating up with a project, I am prepering a first image for testing.  

 

I am following the instruction from 

buildrootguide (http://nioswiki.jot.com/wikihome/operatingsystems/buildrootguide). 

 

Currently at step 5, just after succefull complition of: "make menuconfig". 

(ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- are defined as part of my environment) 

 

I encounter the following during make zImage: 

$ make zImage  no emulation specific options.  CHK     include/linux/version.h  CHK     include/nios2_system.h perl -I/usr/local/home/didi/linux-2.6.x/arch/nios2nommu/scripts /usr/local/home/ didi/linux-2.6.x/arch/nios2nommu/scripts/gen_nios2_system.h.pl cpu sdram ext_fla sh < /home/didi/iamba/iamba.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 &#39;  UPD     include/nios2_system.h&#39;;  mv -f include/nios2_system.h.tmp include/nios2_system.h; fi make: `arch/nios2nommu/kernel/asm-offsets.s&#39; 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&#39; arch/nios2nommu/boot/Makefile:12: warning: ignoring old commands for target `arch/nios2nommu/boot/zImage&#39; arch/nios2nommu/boot/Makefile:33: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux&#39; arch/nios2nommu/boot/Makefile:16: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux&#39; arch/nios2nommu/boot/compressed/Makefile:58: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux&#39; arch/nios2nommu/boot/compressed/Makefile:22: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux&#39; arch/nios2nommu/boot/compressed/Makefile:62: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin&#39; arch/nios2nommu/boot/compressed/Makefile:26: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin&#39; arch/nios2nommu/boot/compressed/Makefile:65: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin.gz&#39; arch/nios2nommu/boot/compressed/Makefile:29: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin.gz&#39; arch/nios2nommu/boot/compressed/Makefile:72: warning: overriding commands for target `arch/nios2nommu/boot/compressed/piggy.o&#39; arch/nios2nommu/boot/compressed/Makefile:36: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/piggy.o&#39;  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&#39; is already defined arch/nios2nommu/boot/compressed/head.S:117: Error: symbol `text_init&#39; is already defined arch/nios2nommu/boot/compressed/head.S:126: Error: symbol `data_init&#39; is already defined arch/nios2nommu/boot/compressed/head.S:146: Error: symbol `flush_cache&#39; is already defined arch/nios2nommu/boot/compressed/head.S:151: Error: symbol `data_flush&#39; is already defined arch/nios2nommu/boot/compressed/head.S:158: Error: symbol `text_flush&#39; is already defined arch/nios2nommu/boot/compressed/head.S:169: Error: symbol `fake_headers_as_bzImage&#39; is already defined make: *** Error 1 make: *** Error 2 make: *** Error 2 

 

Any ideas? 

 

Thanks, 

David
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
473 Views

It seems your source is over-patched. Try clean all and reinstall. 

But you should start with the uClinux-dist, 

http://nioswiki.jot.com/wikihome/operating...ms/%c2%b5clinux (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux

step1,2,3.
0 Kudos
Reply