ARM: bootm: recalculate decompression space
According to the kernel documentation it is recommended to place the
compressed image between 32 MiB and 128 MiB. The DTB and initrd should
be placed above 128 MiB. We will follow the recommendation as long as we
have enough RAM. If this is not the case, we fall back to the scheme.
This change is required because of the ARM default kernel config changes
regarding RODATA layout, which lead to an increased compression factor
of the kernel image.
This should be regarded as an intermediate solution until there is a
mechanism for the kernel image to report the decompressed layout
requirements to the bootloader.

Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent d7fc1c1 commit 6a218d456c28960c7625c50ac924f120e448a03d
@Stefan Müller-Klieser Stefan Müller-Klieser authored on 1 Jul 2016
Sascha Hauer committed on 4 Jul 2016
Showing 1 changed file
View
arch/arm/lib/bootm.c