Altera_Forum
Honored Contributor
20 years agonioswiki instructions: buildroot fialed!
I followed the buildroot guide of "http://nioswiki.jot.com/WikiHome/OperatingSystems/BuildrootGuide".
Because i donot know where to download the old SNAPSHOT .I edited the build file as follows : SNAPSHOT=20060506 The final message of the build is: ------------------------------------------------message1--------------------------------------------------- bzcat /home/gege/buildroot/dl/gdb.tar.bz2 | tar -C /home/gege/buildroot/toolchain_build_nios2 -xf - GDB_REAL_DIR=gdb-6.5.50.20060715 ln -sf /home/gege/buildroot/toolchain_build_nios2/gdb-6.5.50.20060715 /home/gege/buildroot/toolchain_build_nios2/gdb-snapshot toolchain/patch-kernel.sh /home/gege/buildroot/toolchain_build_nios2/gdb-snapshot toolchain/gdb/snapshot \*.patch Applying 100-uclibc-conf.patch using plaintext: patching file bfd/config.bfd Hunk# 1 succeeded at 753 (offset 28 lines). patching file bfd/configure Hunk# 1 succeeded at 3579 with fuzz 1 (offset -6 lines). patching file libtool.m4 Hunk# 1 succeeded at 751 (offset 98 lines). patching file ltconfig patching file opcodes/configure Hunk# 1 succeeded at 3590 (offset -6 lines). Applying 200-uclibc-readline-conf.patch using plaintext: patching file readline/configure Hunk# 1 succeeded at 7871 (offset 1148 lines). Applying 400-mips-nptl-support.patch using plaintext: patching file gdb/Makefile.in Hunk# 1 FAILED at 2282. 1 out of 1 hunk FAILED -- saving rejects to file gdb/Makefile.in.rej patching file gdb/gdbserver/Makefile.in Reversed (or previously applied) patch detected! Assume -R? [n] r Apply anyway? [n] n Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file gdb/gdbserver/Makefile.in.rej patching file gdb/gdbserver/linux-mips-low.c Hunk# 1 succeeded at 30 with fuzz 2 (offset 8 lines). Hunk# 2 succeeded at 177 with fuzz 1 (offset 17 lines). patching file gdb/mips-linux-nat.c Hunk# 1 succeeded at 45 with fuzz 2 (offset 21 lines). Hunk# 2 succeeded at 246 with fuzz 2 (offset 168 lines). Patch failed! Please fix 400-mips-nptl-support.patch! make: *** [/home/gege/buildroot/toolchain_build_nios2/gdb-snapshot/.unpacked] 错误 1 ------------------------------------------------message1--------------------------------------------------- I donot know what has happened. I test 'nios2-linux-uclibc-gcc -v',it's ok. Then test 'nios2-linux-uclibc-flthdr ~/rootfs/bin/busybox',it tells cannot open busybox. I found /rootfs/bin/ exists nothing. I configured the kernel by 'make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- hwselect SYSPTF=your_system.ptf' and 'make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- menuconfig',it's ok. But after executes "make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- zImage',it reports: ------------------------------------------------message2--------------------------------------------------- ''''''''''''''''''''''''''''''''' CHK include/linux/compile.h UPD include/linux/compile.h CC init/version.o LD init/built-in.o LD .tmp_vmlinux1 /home/xuxing/buildroot/build_nios2/staging_dir/bin/nios2-linux-uclibc-ld.real: region ram is full (.tmp_vmlinux1 section .text) /home/xuxing/buildroot/build_nios2/staging_dir/bin/nios2-linux-uclibc-ld.real: section .data [00980000 -> 0098bfff] overlaps section .text [00980000 -> 00a2c92f] /home/xuxing/buildroot/build_nios2/staging_dir/bin/nios2-linux-uclibc-ld.real: section .init [0098c000 -> 009993bf] overlaps section .text [00980000 -> 00a2c92f] /home/xuxing/buildroot/build_nios2/staging_dir/bin/nios2-linux-uclibc-ld.real: section .bss [009993c0 -> 009a47c7] overlaps section .text [00980000 -> 00a2c92f]/home/xuxing/buildroot/build_nios2/staging_dir/bin/nios2-linux-uclibc-ld.real: section .sbss [009a47c8 -> 009a47e6] overlaps section .text [00980000 -> 00a2c92f] make: *** [.tmp_vmlinux1] 错误 1 ------------------------------------------------message2--------------------------------------------------- Please give me some hints, thanks!