[Buildroot] Buildroot ARM build error for initramfs?

Arun Reddy reddyac at gmail.com
Thu May 29 07:22:54 UTC 2008


Hi Rex,

Thanks for all the suggestions. I checked the size of the .cpio and it's
about 50 megs. I took a look at the vmlinux.lds.S script and I am unsure how
to actually move the start and end around. Are you suggesting I take the
whole line __initramfs_start = .; and __initramfs_end = .; and move them
both immediately after __init_begin = _stext; ? Right under
__initramfs_start I see an indented line "usr/built-in.o(.init.ramfs)".
Should I leave this alone or is it needed for the start line above it?

Just making sure I clear these things up before doing trial and error with
the lengthy builds. Thanks!

On Wed, May 28, 2008 at 5:19 PM, Rex Ashbaugh <rexonator at gmail.com> wrote:

> If you really need such a big initramfs (have you checked the size of your
> /usr/initramfs_data.cpio ? ),
> I believe the solution would be to edit /arch/arm/kernel/vmlinux.lds.S (the
> kernel linker script), and move __initramfs_start and __initramfs_end to the
> end of the binary image, after _stext, instead of in the middle of the
> binary where it is now. I have not tried this myself but it should work.
> -Rex
>
> On Wed, May 28, 2008 at 2:17 PM, Arun Reddy <reddyac at gmail.com> wrote:
>
>> Hi everyone,
>>
>> I am trying to rebuild my Buildroot project with initramfs support enabled
>> (selected within the Buildroot menuconfig). I also have RAM disk support
>> enabled in the kernel. I am getting the following error after some time.
>>
>> makedevs: line 53: regular file
>> '/root/buildroot/project_build_arm/uclibc/root/usr/share/udhcpc/default.script'
>> does not exist: No such file or directory
>> <stdin>:1097:2: warning: #warning syscall fadvise64 not implemented
>> <stdin>:1265:2: warning: #warning syscall migrate_pages not implemented
>> <stdin>:1321:2: warning: #warning syscall pselect6 not implemented
>> <stdin>:1325:2: warning: #warning syscall ppoll not implemented
>> <stdin>:1365:2: warning: #warning syscall epoll_pwait not implemented
>> init/build-in.o: In function 'loglevel':
>> calibrate.c:(.init.text+0x168): relocation truncated to fit: R_ARM_PC24
>> against symbol 'get_option' defined in .text section in lib/lib.a(cmdline.o)
>> init/built-in.o: In function 'unknown_bootoption":
>> calibrate.c:(.init.text+0x190): relocation truncated to fit: R_ARM_PC24
>> against symbol 'strlen' defined in .text section lib in lib/lib.a(string.o)
>>
>> ... repeats for 'strlen', 'memmove', '__bug', 'strlen', 'strncmp',
>> 'strchr', 'printk', 'strncmp', 'strchr', 'printk', and 'strncmp'.
>>
>> init/built-in.o: In function 'parse_early_param':
>> calibrate.c:(.init.text+0x3cc): additional relocation overflows omitted
>> from the output
>> make: ***
>> [/root/buildroot/project_build_arm/uclibc/linux-2.6.24.4/arch/arm/boot/uImage]
>> Error 2
>>
>> I looked online and found some information here:
>>
>> http://www.spinics.net/lists/arm/msg14152.html
>>
>> Where someone mentions that the initramfs could be too large, or it needs
>> to be placed at the end of the kernel image layout. Has anyone received this
>> error when building with initramfs support? I am unsure how what to do with
>> the initramfs to actually make it "fit" if the problem really is due to the
>> size. Anyone have any suggestions? Thanks a lot!
>>
>> _______________________________________________
>> buildroot mailing list
>> buildroot at uclibc.org
>> http://busybox.net/mailman/listinfo/buildroot
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildroot.org/pipermail/buildroot/attachments/20080529/169db24a/attachment-0001.html>


More information about the buildroot mailing list