Forum Discussion
Altera_Forum
Honored Contributor
20 years agobuildroot on Gentoo Linux
Hello, all. This is my first post, so please be patient with me ;-) I'm using Gentoo Linux, and trying to build the nios2 toolchain using yesterday's snapshot buildroot. As a ...
Altera_Forum
Honored Contributor
20 years agoThanks for the reply, hippo.
I tried downloading/running the zImage you posted, and it worked...a great start. I figured the next step would be to try and compile a kernel and apps using the tools you had pre-built. I ran into some problems. I followed the instructions as found on http://forum.niosforum.com/forum/index.php?showtopic=3879 (http://forum.niosforum.com/forum/index.php?showtopic=3879). I'm using the std_1s10.ptf. I got through the "hwselect" and "menuconfig" steps fine. But the zImage build failed, like this: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 I also noticed that the following Makefiles had 3 times the same content in them (i.e. 3 exact copy/paste copies of the same Make rules within the same file): arch/nios2nommu/boot/Makefile
arch/nios2nommu/boot/compressed/Makefile This was leading to a number of Makefile warnings, saying that some rules were being ignored due to other rules being present, or some such. In any case, I edited those files to remove the duplicates. Then I re-ran the build steps as follows: clean hwselect menuconfig zImage I still get the same errors I quoted above. Any ideas? Thanks, -- therrien