public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] spl_mmc: allow to load raw image
@ 2016-02-29 11:31 Masahiro Yamada
  2016-03-01  1:58 ` Tom Rini
                   ` (2 more replies)
  0 siblings, 3 replies; 27+ messages in thread
From: Masahiro Yamada @ 2016-02-29 11:31 UTC (permalink / raw)
  To: u-boot

The function spl_parse_image_header() falls back to a raw image
if the U-Boot header is missing and CONFIG_SPL_PANIC_ON_RAW_IMAGE
is undefined.  While, the bad magic checking here makes the
spl_parse_image_header() unreachable in case of the missing header.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 common/spl/spl_mmc.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c
index c27a250..df406e3 100644
--- a/common/spl/spl_mmc.c
+++ b/common/spl/spl_mmc.c
@@ -33,11 +33,6 @@ static int mmc_load_image_raw_sector(struct mmc *mmc, unsigned long sector)
 	if (count == 0)
 		goto end;
 
-	if (image_get_magic(header) != IH_MAGIC) {
-		puts("bad magic\n");
-		return -1;
-	}
-
 	spl_parse_image_header(header);
 
 	/* convert size to sectors - round up */
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2016-05-02 21:19 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-29 11:31 [U-Boot] [PATCH] spl_mmc: allow to load raw image Masahiro Yamada
2016-03-01  1:58 ` Tom Rini
2016-03-15 19:23 ` [U-Boot] " Tom Rini
2016-03-16  3:10   ` Masahiro Yamada
2016-03-17  2:04 ` Tom Rini
2016-03-17 16:07   ` Masahiro Yamada
2016-03-17 16:12     ` Tom Rini
2016-04-29 14:59       ` Adam Ford
2016-04-29 17:53         ` Tom Rini
2016-04-29 18:06           ` Adam Ford
2016-04-29 18:06             ` Tom Rini
2016-05-01  8:37             ` Masahiro Yamada
2016-05-01 13:46               ` Tom Rini
2016-05-02  1:32               ` Derald D. Woods
2016-05-02  1:57                 ` Tom Rini
2016-05-02  2:04                   ` Masahiro Yamada
2016-05-02  2:17                   ` Derald D. Woods
2016-05-02  2:29                     ` Derald D. Woods
2016-05-02  7:08                       ` Alexander Graf
2016-05-02 12:44                         ` Tom Rini
2016-05-02  7:35                       ` Alexander Graf
2016-05-02  8:58                         ` Guillaume Gardet
2016-05-02  9:12                           ` Alexander Graf
2016-05-02  9:45                             ` Guillaume Gardet
2016-05-02 11:21                               ` Alexander Graf
2016-05-02 16:14                             ` Tom Rini
2016-05-02 21:19                               ` Alexander Graf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox