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++

re-compile problem

Altera_Forum
Honored Contributor II
942 Views

dear all, 

 

when i finish the make linux Image and download it to the target board successfully .I want to reconfig kernal ,when re-run "make menuconfig" command 

 

then the following information emerged: 

 

/home/wangzhiwunpu/uClinux-dist-test/linux-2.6.x/arch/nios2nommu/Makefile:698: warning: overriding commands for target `arch/nios2nommu/kernel/vmlinux.lds.S' 

/home/wangzhiwunpu/uClinux-dist-test/linux-2.6.x/arch/nios2nommu/Makefile:519: warning: ignoring old commands for target `arch/nios2nommu/kernel/vmlinux.lds.S' 

/home/wangzhiwunpu/uClinux-dist-test/linux-2.6.x/arch/nios2nommu/Makefile:702: warning: overriding commands for target `linuxsrec' 

/home/wangzhiwunpu/uClinux-dist-test/linux-2.6.x/arch/nios2nommu/Makefile:523: warning: ignoring old commands for target `linuxsrec' 

/home/wangzhiwunpu/uClinux-dist-test/linux-2.6.x/arch/nios2nommu/Makefile:707: warning: overriding commands for target `zImage' 

/home/wangzhiwunpu/uClinux-dist-test/linux-2.6.x/arch/nios2nommu/Makefile:528: warning: ignoring old commands for target `zImage' 

scripts/kconfig/mconf arch/nios2nommu/Kconfig 

file init/Kconfig already scanned? 

make[3]: *** [menuconfig] Error 1 

make[2]: *** [menuconfig] Error 2 

make[2]: Leaving directory `/home/wangzhiwunpu/uClinux-dist-test/linux-2.6.x' 

make[1]: *** [linux_menuconfig] Error 2 

make[1]: Leaving directory `/home/wangzhiwunpu/uClinux-dist-test' 

make: *** [menuconfig] Error 2 

[wangzhiwunpu@localhost uClinux-dist-test]$
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
255 Views

It looks like the Nios2 Makefile was patched multiple times. 

You should do the nios2 patch only once. 

 

Try rename the old uCLinux-dist-test tree, and create a new one . 

Then compare what is changed in Nios2 Makefile. 

 

If you want to config kernel, you should be in ~/uCLinux-dist-test dir, and 

 

make menuconfig 

 

Kernel/Library/Defaults Selection ---> 

(linux-2.6.x) Kernel Version 

(None) Libc Version 

[ ] Default all settings (lose changes) 

[*] Customize Kernel Settings 

[ ] Customize Vendor/User Settings 

[ ] Update Default Vendor Settings 

 

Then <exit> <exit> <yes> . 

It will enter kernel config. 

 

And after you finish kernel config, 

make linux image
0 Kudos
Reply