• Heiner Kallweit's avatar
    powerpc/boot: Fix boot on systems with uncompressed kernel image · 65bc3ece
    Heiner Kallweit authored
    This commit broke boot on systems with an uncompressed kernel image,
    namely systems using a cuImage. On such systems the compressed boot
    image (boot wrapper, uncompressed kernel image, ..) is decompressed
    by u-boot already, therefore the boot wrapper code sees an
    uncompressed kernel image.
    
    The old decompression code silently assumed an uncompressed kernel
    image if it found no valid gzip signature, whilst the new code
    bailed out in this case.
    
    Fix this by re-introducing such a fallback if no valid compressed
    image is found.
    
    Fixes: 1b7898ee ("Use the pre-boot decompression API")
    Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    65bc3ece
main.c 7.17 KB