[RFC 0/1] use lmb to calculate ram left for the kernel
Sughosh Ganu
sughosh.ganu at linaro.org
Tue Aug 5 13:17:05 CEST 2025
On Tue, 5 Aug 2025 at 16:34, Tomas Alvarez Vanoli
<tomas.alvarez-vanoli at hitachienergy.com> wrote:
>
> > 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.
I am confused here. You mention above that the address of the rootfs
is determined based on its size. So you do know the memory that would
be needed for the rootfs? Also, how does calculating the amount of RAM
left over for the kernel help. I mean, what if the kernel is bigger
than the amount of left over memory? Can that not happen if you don't
know the amount of memory that would be needed for the kernel as you
mention above.
-sughosh
>
> Tomas Alvarez Vanoli
More information about the U-Boot
mailing list