Skip to contentSkip to conversation

spl: Print from which mmc slot spl is trying to boot

PATCH New Hans de Goede 2 participants 2 messages Mar 20, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spl: Print from which mmc slot spl is trying to boot

On some sunxi boards (and presumably also non sunxi boards) u-boot can be either loaded from a sdcard in a micro-sd slot, or from eMMC.

Print which MMC spl tries to boot from, to help debugging.

---
 common/spl/spl.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
common/spl/spl.c +3 -3
index e5167bf..82e7f58 100644
@@ -210,9 +210,9 @@ struct boot_device_name boot_name_table[] = {
 	{ BOOT_DEVICE_RAM, "RAM" },
 #endif
 #ifdef CONFIG_SPL_MMC_SUPPORT
-	{ BOOT_DEVICE_MMC1, "MMC" },
-	{ BOOT_DEVICE_MMC2, "MMC" },
-	{ BOOT_DEVICE_MMC2_2, "MMC" },
+	{ BOOT_DEVICE_MMC1, "MMC1" },
+	{ BOOT_DEVICE_MMC2, "MMC2" },
+	{ BOOT_DEVICE_MMC2_2, "MMC2_2" },
 #endif
 #ifdef CONFIG_SPL_NAND_SUPPORT
 	{ BOOT_DEVICE_NAND, "NAND" },
Signature · 1 line
2.7.3
#1 lore raw

PATCH 1/1 spl: Print from which mmc slot spl is trying to boot

Quoted 6 lines · Hans de Goede

On some sunxi boards (and presumably also non sunxi boards) u-boot can be either loaded from a sdcard in a micro-sd slot, or from eMMC.

Print which MMC spl tries to boot from, to help debugging.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160320/e324e200/attachment.sig>