[PATCH u-boot v2019.04-aspeed-openbmc 2/5] spl: mmc: Switch partition error to debug

Eddie James eajames at linux.ibm.com
Tue Sep 1 05:01:27 AEST 2020


The partition error is normal when loading U-Boot from the eMMC
boot partition. This is because the partition is switched first,
and then the SPL attempts to get partition info, but it will read
it from the wrong spot. The raw load will still work after the
error, so make it a debug statement.

Signed-off-by: Eddie James <eajames at linux.ibm.com>
---
 common/spl/spl_mmc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c
index 324d91c884..aa0bcea937 100644
--- a/common/spl/spl_mmc.c
+++ b/common/spl/spl_mmc.c
@@ -173,9 +173,7 @@ static int mmc_load_image_raw_partition(struct spl_image_info *spl_image,
 
 	err = part_get_info(mmc_get_blk_desc(mmc), partition, &info);
 	if (err) {
-#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
-		puts("spl: partition error\n");
-#endif
+		debug("spl: partition error\n");
 		return -1;
 	}
 
-- 
2.26.2



More information about the openbmc mailing list