]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
image: android: handle default kernel address
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 24 Apr 2015 10:53:12 +0000 (12:53 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:38:41 +0000 (22:38 +0200)
commit255f3e34bbdcfc992244dd916b5c230b8f364834
tree0ff859076b6c7aaaadcabdd497278869443acf7a
parent726b123ea2d98c73ceba546bde612b788c314a6e
image: android: handle default kernel address

The two tools that create android boot images, mkbootimg and the fastboot
client, set the kernel address by default to 0x10008000.

U-boot always honors this field, and will try to relocate the kernel to
whatever value is set in the header, which won't be mapped to the actual RAM on
most platforms, resulting in the kernel obviously not booting.

All the targets in U-Boot right now will download the android boot image to
CONFIG_SYS_LOAD_ADDR, which means that it will already have been downloaded to
some location that is suitable for execution.

In order to have the kernel booting even with the default boot image kernel
address, if that address is used, just execute the kernel where it is.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
common/image-android.c