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 15db8b7 commit d79618aa663bca31db5c50455aa73e951c41ae0d
@Lucas Stach Lucas Stach authored on 1 May 2014
Sascha Hauer committed on 5 May 2014
Showing 1 changed file
View
arch/arm/lib/bootm.c