ARM: bootm: be more clever while deciding where to put zImage
For small systems we would put the zImage at 8MiB after
the start of memory, and put the DT a bit after the zImage.
When we encounter an image which is bigger than 8MiB
uncompressed, the kernel would try to relocate itself
and overwrite the DT.

Try to be more clever at zImage placement to avoid
triggering the kernel relocation.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent c61ba23 commit 6a1606c82e16fcca2bfe275c326ef6d792219074
@Lucas Stach Lucas Stach authored on 1 May 2014
Sascha Hauer committed on 9 Jul 2014
Showing 1 changed file
View
arch/arm/lib/bootm.c