summaryrefslogtreecommitdiffstats
path: root/0008-beaglebone-HACK-change-mmc-order-to-avoid-u-boot-cra.patch
blob: 7db47a2bbabb484f2a25dfddf431b611e1f5c303 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From eb995f5314a6419f09646b6f520fd5aade42dec4 Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Wed, 3 Apr 2013 11:47:14 +0200
Subject: [PATCH 08/14] beaglebone: HACK: change mmc order to avoid u-boot
 crashing

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
 include/configs/am335x_evm.h | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index afe7348..485f26b 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -154,11 +154,12 @@
 #define CONFIG_BOOTCOMMAND \
 	"i2c mw 0x24 1 0x3e; " \
 	"run findfdt; " \
-	"if mmc dev 1; then " \
-		"echo eMMC found;" \
-		"setenv mmcdev 1;"\
+	"mmc dev 0; if mmc rescan ; then " \
+		"echo micro SD card found;" \
+		"setenv mmcdev 0;"\
 	"else " \
-		"echo No eMMC found;" \
+		"echo No micro SD card found, setting mmcdev to 1;" \
+		"setenv mmcdev 1;"\
 	"fi;" \
 	"mmc dev ${mmcdev}; if mmc rescan; then " \
 		"echo SD/MMC found on device ${mmcdev};" \
-- 
1.8.3.1