Skip to content

config.txt: Update documented max ramdisk size - #4321

Open
brooswajne wants to merge 1 commit into
raspberrypi:masterfrom
brooswajne:patch-1
Open

config.txt: Update documented max ramdisk size#4321
brooswajne wants to merge 1 commit into
raspberrypi:masterfrom
brooswajne:patch-1

Conversation

@brooswajne

Copy link
Copy Markdown

The Raspberry Pi 4 firmware release notes state that this limit was bumped to 128MB in 2022:

2022-03-10 - Promote the 2022-03-10 beta release to LATEST/STABLE

  • ...
  • Increase the max ramdisk size to 128MB
  • ...

Note that it might be more appropriate to remove this bulletpoint entirely, I couldn't find whether this limit actually applies to Raspberry Pi 5... but from testing I was able to boot a 160MB ramdisk file without issues:

  9.15 Loading boot.img ...
 16.41 Read boot.img bytes 167772160 hnd 0x6070
 16.75 MBR: 0x00000000,  328608 type: 0x0c
 16.75 MBR: 0x00000000,       0 type: 0x00
 16.76 MBR: 0x00000000,       0 type: 0x00
 16.76 MBR: 0x00000000,       0 type: 0x00
 16.69 Trying partition: 0
 16.71 type: 32 lba: 0 'MTOO4049' ' bootfs     ' clusters 81825 (4)
 16.77 rsc 32 fat-sectors 638 root dir cluster 2 sectors 0 entries 0
...

So it's possible this limit has been entirely removed? Would be nice to have this confirmed if so. But in the absence of official confirmation, documenting a 128MB limit seems more accurate either way.

The Raspberry Pi 4 firmware release notes state that this limit
[was bumped to 128MB in 2022][1]:

> Increase the max ramdisk size to 128MB

Note that it might be more appropriate to remove this bulletpoint
entirely, I couldn't find whether this limit actually applies to
Raspberry Pi 5... but from testing I was able to boot a 160MB
ramdisk file without issues:

```
  9.15 Loading boot.img ...
 16.41 Read boot.img bytes 167772160 hnd 0x6070
 16.75 MBR: 0x00000000,  328608 type: 0x0c
 16.75 MBR: 0x00000000,       0 type: 0x00
 16.76 MBR: 0x00000000,       0 type: 0x00
 16.76 MBR: 0x00000000,       0 type: 0x00
 16.69 Trying partition: 0
 16.71 type: 32 lba: 0 'MTOO4049' ' bootfs     ' clusters 81825 (4)
 16.77 rsc 32 fat-sectors 638 root dir cluster 2 sectors 0 entries 0
...
```

So it's possible this limit has been entirely removed? Would be
nice to have this confirmed if so. But in the absence of official
confirmation, documenting a 128MB limit seems more accurate
either way.

[1]: https://github.com/raspberrypi/rpi-eeprom/blob/master/firmware-2711/release-notes.md#2022-03-10---promote-the-2022-03-10-beta-release-to-lateststable
@katshann-raspberry

Copy link
Copy Markdown
Contributor

@brooswajne Thank you for your contribution. We'll work on getting this change published if appropriate.

@timg236 Can you advise on this one? Cheers!

@timg236

timg236 commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

I think the limit on Pi5 is 180MB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants