Bug 15952

Summary: Grub fails to load large rootfs files
Product: buildroot Reporter: Dr I J Ormshaw <ian_ormshaw>
Component: OtherAssignee: unassigned
Status: RESOLVED INVALID    
Severity: critical CC: buildroot, yann.morin.1998
Priority: P5    
Version: 2023.11.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: x86_64 Target: x86_64
Build:
Attachments: Patch file

Description Dr I J Ormshaw 2024-02-20 11:33:44 UTC
Created attachment 9715 [details]
Patch file

In some systems grub fails to load the rootfs.cpio as an initrd if it is too large.

On the system I am currently testing a 61MB file load successfully while a 174MB file does not.  With the larger file grub outputs an out of memory error.  The attached patch file allows the system to boot successfully.
Comment 1 Yann E. MORIN 2024-02-20 16:27:14 UTC
Dr I J Ormshaw, All,

This is a grub limitation, so please work with grub upstream to lift that
limitation. Once they have accepted a fix, then we can see whether we can
backport it or not.

Regards,
Yann E. MORIN.