]> git.dujemihanovic.xyz Git - u-boot.git/commit
spl_mmc.c: Detect missing kernel image in RAW MMC
authorTom Rini <trini@ti.com>
Fri, 28 Jun 2013 18:43:01 +0000 (14:43 -0400)
committerTom Rini <trini@ti.com>
Fri, 26 Jul 2013 20:39:10 +0000 (16:39 -0400)
commite4c444b34b6ff6b347e552805ee89c48f85785bb
tree819affbbcf26cb4657003c9d880f31deec82ff83
parent3864cb2133b8d4a45dbad603f7b0b9f051d617ff
spl_mmc.c: Detect missing kernel image in RAW MMC

Currently, we assume that if we can read from MMC correctly, we have
found a valid image.  This is not the case as an empty area will read
just fine.  Add a check for a valid IH_MAGIC.

Signed-off-by: Tom Rini <trini@ti.com>
Reviewed-by: Peter Korsgaard <jacmet@sunsite.dk>
common/spl/spl_mmc.c