[RFC 0/1] use lmb to calculate ram left for the kernel

Tomas Alvarez Vanoli tomas.alvarez-vanoli at hitachienergy.com
Tue Aug 5 13:03:05 CEST 2025


> Do you know what would be the size of memory that the kernel would be occupying?

No, we don't.

This code is common to many of our architectures and boards, and the root filesystem size depends on a lot of variables.
The idea behind the mechanism is to assign as much memory as possible after the space for the rootfs is assigned.
In other words, it calculates the address of where to load the rootfs depending on its size and then calculates how much ram is left over for the kernel.

Tomas Alvarez Vanoli


More information about the U-Boot mailing list