Forum Discussion
update to buildroot guide
Dear all,
I have updated the buildroot guide with gcc3.4.6, kernel 2.6.15.6 and new elf2flt.ld, please check out, http://forum.niosforum.com/forum/index.php?showtopic=3174 (http://forum.niosforum.com/forum/index.php?showtopic=3174)27 Replies
- Altera_Forum
Honored Contributor
update again. it is kernel 2.6.16 now.
- Altera_Forum
Honored Contributor
Awesome. Will try it soon.
- Altera_Forum
Honored Contributor
update again. provide two new kernels, 2.6.15.6 is more stable, while 2.6.16 is under testing for nios2.
- Altera_Forum
Honored Contributor
I have verified the altera pci host bridge driver, it is working well with kernel 2.6.16 .
- Altera_Forum
Honored Contributor
I have tested kernel 2.6.16 on a altera 2C35 Nios2 dev board. The jtag uart, epcs mtd, cfi mtd , and smc91111 are working well.
- Altera_Forum
Honored Contributor
the build script in build0322.zip has a bug at line# 18, it should be "patch -p1 ~/download/mx140apps.diff" . thanks to hootsmon, who pointed out this issue.
the new build0327.zip only to fix this. CF drive tested with kernel 2.6.16 . - Altera_Forum
Honored Contributor
I have verified 2.6.16 with a modified opencores MAC driver and the usual others. Good stuff!
- Altera_Forum
Honored Contributor
I got these 2 errors when compiling the new buildroot...
Problem 1:
Problem 2:/~/buildroot/toolchain_build_nios2/gcc-3.4.6-final/nios2-linux-uclibc/libstdc++-v3/include/ext/rope:939:18: macro "index" requires 2 arguments, but only 1 given
I was able to workaround both problems, using this patch....In file included from /~/buildroot/toolchain_build_nios2/elf2flt/elf2flt.c:52: /~/buildroot/toolchain_build_nios2/binutils-2.15-build/bfd/bfd.h:38:22: ansidecl.h: No such file or directory
question: Does anybody else get these errors, or are they due to some quirk of my (Debian) platform? Thx in advance hootsmon--- toolchain_build_nios2/gcc-3.4.6/libstdc++-v3/include/ext/rope 2006-03-29 10:06:26.000000000 +1000 +++ toolchain_build_nios2/gcc-3.4.6/libstdc++-v3/include/ext/rope 2006-03-29 10:06:26.000000000 +1000 68,72d67 < /* Fix potential name clash */ <# ifdef index <# undef index <# endif < --- toolchain_build_nios2/elf2flt/Makefile 2006-03-29 10:06:26.000000000 +1000 +++ toolchain_build_nios2/elf2flt/Makefile 2006-03-29 10:03:59.000000000 +1000 @@ -11,7 +11,7 @@ CPU = nios2 TARGET = nios2-linux-uclibc CFLAGS = -g -O2 -INCLUDES = -I/home/andrew/buildroot/toolchain_build_nios2/binutils-2.15-build/bfd/ +INCLUDES = -I/home/andrew/buildroot/toolchain_build_nios2/binutils-2.15-build/bfd/ -I/home/andrew/buildroot/toolchain_build_nios2/binutils-2.15/include CPPFLAGS = LDFLAGS = LIBS = /home/andrew/buildroot/toolchain_build_nios2/binutils-2.15-build/bfd/libbfd.a /home/andrew/buildroot/toolchain_build_nios2/binutils-2.15-build/libiberty/libiberty.a - Altera_Forum
Honored Contributor
Ah, I wonder if my problem could be related to using GCC-3.4.6 to build the toolchain?
- Altera_Forum
Honored Contributor
I am checking the build again. I wonder there are some updates in buildroot snapshot which break nios2 again.