• Maxime Ripard's avatar
    image: android: handle default kernel address · 87f02d5a
    Maxime Ripard authored
    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: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
image-android.c 3.83 KB