• Tom Rini's avatar
    common/image.c: Make boot_get_ramdisk() perform a check for Android images · 1fec3c5d
    Tom Rini authored
    In 2dd46328 the check for where a ramdisk is found on an Android image
    was got moved into the "normal" loop here, causing people to have to
    pass the kernel address in the ramdisk address location in order to have
    Android boot still.  This changed previous behavior so perform a check
    early in the function to see if we have an Android image and if so use
    that as where to look for the ramdisk (which is what the rest of the
    code here expects).  We allow for this to still be overridden with an
    explicit ramdisk address to be passed as normal.
    
    Cc: Rob Herring <robh@kernel.org>
    Reported-by: default avatarPaul Kocialkowski <contact@paulk.fr>
    Signed-off-by: default avatarTom Rini <trini@konsulko.com>
    1fec3c5d
image.c 36.2 KB