Forum Discussion
Altera_Forum
Honored Contributor
20 years agoProblem with BuildrootGuide
i was following the BuildrootGuide but i encounter this problem when compiling the kernel.
<div class='quotetop'>QUOTE </div> --- Quote Start --- ... LD init/built-in.o LD vmlinux SYSMAP System.map 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/Makefile:63: warning: overriding commands for target `arch/nios2nommu/boot/zImage' arch/nios2nommu/boot/Makefile:46: warning: ignoring old commands for target `arch/nios2nommu/boot/zImage' arch/nios2nommu/boot/Makefile:67: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/Makefile:50: 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' arch/nios2nommu/boot/compressed/Makefile:130: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/compressed/Makefile:94: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux' arch/nios2nommu/boot/compressed/Makefile:134: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin' arch/nios2nommu/boot/compressed/Makefile:98: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin' arch/nios2nommu/boot/compressed/Makefile:137: warning: overriding commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin.gz' arch/nios2nommu/boot/compressed/Makefile:101: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/vmlinux.bin.gz' arch/nios2nommu/boot/compressed/Makefile:144: warning: overriding commands for target `arch/nios2nommu/boot/compressed/piggy.o' arch/nios2nommu/boot/compressed/Makefile:108: warning: ignoring old commands for target `arch/nios2nommu/boot/compressed/piggy.o' LDS arch/nios2nommu/boot/compressed/vmlinux.lds 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 arch/nios2nommu/boot/compressed/head.S:293: Error: symbol `_start' is already defined arch/nios2nommu/boot/compressed/head.S:299: Error: symbol `text_init' is already defined arch/nios2nommu/boot/compressed/head.S:308: Error: symbol `data_init' is already defined arch/nios2nommu/boot/compressed/head.S:328: Error: symbol `flush_cache' is already defined arch/nios2nommu/boot/compressed/head.S:333: Error: symbol `data_flush' is already defined arch/nios2nommu/boot/compressed/head.S:340: Error: symbol `text_flush' is already defined arch/nios2nommu/boot/compressed/head.S:351: Error: symbol `fake_headers_as_bzImage' is already defined make[2]: *** [arch/nios2nommu/boot/compressed/head.o] Error 1 make[1]: *** [arch/nios2nommu/boot/compressed/vmlinux] Error 2 make: *** [zImage] Error 2[/b] --- Quote End --- Pls help! Thx.19 Replies
- Altera_Forum
Honored Contributor
the kernel boot source was patched more than once.
remove the old kernel source tree, and reinstall a fresh one. Don't run the build script again. Look at the build scipt, just reinstall the kernel source. - Altera_Forum
Honored Contributor
problem solved! thx hippo!
i think my prob is bcoz i ctrl-c while running build n switch to dl those required files first and re-run build. i think tat's whr it patches more than once. - Altera_Forum
Honored Contributor
hi hippo, i've encounter another problem...
i manage to get boa to run n serve static webpages. i want cgi, so i do according to hippo in BuildrootGuide step 14: Customize Vendor/User Settings (NEW) to select cgi generic. when make romfs, i got this: <div class='quotetop'>QUOTE </div> --- Quote Start --- ... chmod 620 /home/jwlam/uClinux-dist-test/romfs/dev/@[pt]ty[pqrsPQRS][0-9a-f],* romfs-inst.sh -s /var/tmp /tmp romfs-inst.sh /etc/inittab cp: cannot stat `inittab': No such file or directory make[2]: *** [romfs] Error 1 make[2]: Leaving directory `/home/jwlam/uClinux-dist-test/vendors/Altera/nios2nommu' make[1]: *** [romfs] Error 2 make[1]: Leaving directory `/home/jwlam/uClinux-dist-test/vendors' make: *** [romfs] Error 1[/b] --- Quote End --- bin, usr n var dir under romfs dir is empty. i tried googling but cant find any relevant info. pls advise. thx in advance. - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by jwlam@Aug 8 2006, 09:02 PM hi hippo, i've encounter another problem...i manage to get boa to run n serve static webpages. i want cgi, so i do according to hippo in buildrootguide step 14: customize vendor/user settings (new) to select cgi generic.
when make romfs, i got this:
<div class='quotetop'>quote
--- quote end ---
--- quote start ---
...
chmod 620 /home/jwlam/uclinux-dist-test/romfs/dev/@[pt]ty[pqrspqrs][0-9a-f],*
romfs-inst.sh -s /var/tmp /tmp
romfs-inst.sh /etc/inittab
cp: cannot stat `inittab': no such file or directory
make[2]: *** [romfs] error 1
make[2]: leaving directory `/home/jwlam/uclinux-dist-test/vendors/altera/nios2nommu'
make[1]: *** [romfs] error 2
make[1]: leaving directory `/home/jwlam/uclinux-dist-test/vendors'
make: *** [romfs] error 1 --- Quote End --- bin, usr n var dir under romfs dir is empty. i tried googling but cant find any relevant info. pls advise. thx in advance. <div align='right'><{post_snapback}> (index.php?act=findpost&pid=17437)</div> [/b] --- Quote End --- the inittab was missiing, try touch /home/jwlam/uClinux-dist-test/vendors/Altera/nios2nommu/inittab
- Altera_Forum
Honored Contributor
thx for ur help hippo.
i did wat u suggest n the make terminated as below: <div class='quotetop'>QUOTE </div> --- Quote Start --- make[2]: Entering directory `/home/jwlam/uClinux-dist-test/user/cgi_generic' romfs-inst.sh /home/jwlam/uClinux-dist-test/vendors/Generic/httpd /home/httpd 2 blocks romfs-inst.sh /home/httpd/cgi-bin/cgi_demo cp: cannot create regular file `/home/jwlam/uClinux-dist-test/romfs/home/httpd/cgi-bin/cgi_demo': No such file or directory make[2]: *** [romfs] Error 1 make[2]: Leaving directory `/home/jwlam/uClinux-dist-test/user/cgi_generic' make[1]: *** [romfs] Error 2 make[1]: Leaving directory `/home/jwlam/uClinux-dist-test/user' make: *** [romfs] Error 1[/b] --- Quote End --- so i manually create tat folder n make again. it terminated successfully. there is nth for me to copy from bin, usr n var folder. but i copy the romfs/httpd folder to rootfs/home/httpd after downloading the image onto my board, boa is running well, i can view the index.html. however, when i access cgi-bin/cgi_demo, i got a 404 Not Found error. did i do anything wrong? Pls advise. Thx again! - Altera_Forum
Honored Contributor
SOS bump! http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/tongue.gif
- Altera_Forum
Honored Contributor
saturday bump... i sure miss hippo... http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif
- Altera_Forum
Honored Contributor
i'd solved my problems. thx.
- Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by jwlam@Aug 13 2006, 07:30 PM i'd solved my problems. thx.<div align='right'><{post_snapback}> (index.php?act=findpost&pid=17562)
--- quote end ---
--- Quote End --- I cannot get boa to execute a cgi from POST that works just fine with GET. How did you fix your problem?
- Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by ktroy+aug 26 2006, 11:24 pm--><div class='quotetop'>quote (ktroy @ aug 26 2006, 11:24 pm)</div>--- quote start ---
<!--quotebegin-jwlam@Aug 13 2006, 07:30 PM i'd solved my problems. thx.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=17562)
--- quote end ---
--- Quote End --- I cannot get boa to execute a cgi from POST that works just fine with GET. How did you fix your problem? <div align='right'><{post_snapback}> (index.php?act=findpost&pid=17867)</div> [/b] --- Quote End --- i'm still noob but i'll juz try to help. i suppose POST n GET both works, but u nit diff method of reading in the cgi inputs. POST sent the parameters in the environment variable, QUERY_STRING while get sent thru stdin. try putting ur executable files in the same folder with ur html files in /httpd instead of httpd/cgi-bin. (seems stupid but i think i failed to get it to run in diff folder... cant remember) search for ScriptAlias in boa.conf. i suppose u can set it to any folder whr u store ur executables. the format of the line is in the file as well. gd luck. ps. anyone correct me if i'm wrong.