Re: [U-Boot] [PATCH] spl_mmc.c: Detect missing kernel image in RAW MMC

2013-06-28 Thread Peter Korsgaard
> "Tom" == Tom Rini writes: Tom> Currently, we assume that if we can read from MMC correctly, we have Tom> found a valid image. This is not the case as an empty area will read Tom> just fine. Add a check for a valid IH_MAGIC. Tom> Signed-off-by: Tom Rini Reviewed-by: Peter Korsgaard

[U-Boot] [PATCH] spl_mmc.c: Detect missing kernel image in RAW MMC

2013-06-28 Thread Tom Rini
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 --- common/spl/spl_mmc.c |4 1 file changed, 4 insertions(+) diff --git a/com