Skip to contentSkip to conversation

Small default of 8MB for CONFIG_SYS_BOOTM_LEN

U-Boot Alexander Holler 1 participant 2 messages Oct 28, 2010

lore
Share & tools
lore
#0 lore raw

Hello,

is there a reason why CONFIG_SYS_BOOTM_LEN is defined to 8MB by default?

I've build me a kernel containing a small initramfs (just busybox and some modules) and already hit that limit (for having a bootable kernel which doesn't need anything else).

If raising that limit doesn't consume any memory, I would like it to have something around 16MB or even larger. That would eleminate the need to rebuild u-boot just for such a use case.

Regards,

Alexander

#1 lore raw

Am 28.10.2010 12:46, schrieb Alexander Holler:

Quoted 11 lines

Hello,

is there a reason why CONFIG_SYS_BOOTM_LEN is defined to 8MB by default?

I've build me a kernel containing a small initramfs (just busybox and some modules) and already hit that limit (for having a bootable kernel which doesn't need anything else).

If raising that limit doesn't consume any memory, I would like it to have something around 16MB or even larger. That would eleminate the need to rebuild u-boot just for such a use case.

Sorry, I'm thinking to slowly, so I have to send another mail.

Maybe (size of available DRAM)/2 or something similiar would be reasonable.

Having looked at some code, it seems it's nowhere checked if that limit hits any other limits (e.g. on machines which just have 8MB).

Regards,

Alexander