forked from eewiki/u-boot-patches
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0001-sama5d2_xplained-fixes.patch
58 lines (51 loc) · 1.92 KB
/
0001-sama5d2_xplained-fixes.patch
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
From 29e24cadf3247049db44292317b437da7d9a9701 Mon Sep 17 00:00:00 2001
From: Robert Nelson <[email protected]>
Date: Tue, 18 Oct 2016 15:14:29 -0500
Subject: [PATCH] sama5d2_xplained fixes
Signed-off-by: Robert Nelson <[email protected]>
---
configs/sama5d2_xplained_mmc_defconfig | 4 ++++
include/configs/sama5d2_xplained.h | 10 +++++-----
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/configs/sama5d2_xplained_mmc_defconfig b/configs/sama5d2_xplained_mmc_defconfig
index 23ab4d6..390d4ef 100644
--- a/configs/sama5d2_xplained_mmc_defconfig
+++ b/configs/sama5d2_xplained_mmc_defconfig
@@ -14,6 +14,10 @@ CONFIG_BOOTDELAY=3
# CONFIG_DISPLAY_BOARDINFO is not set
CONFIG_SPL=y
CONFIG_HUSH_PARSER=y
+CONFIG_AUTOBOOT_KEYED=y
+CONFIG_AUTOBOOT_PROMPT="Press SPACE to abort autoboot in %d seconds\n"
+CONFIG_AUTOBOOT_DELAY_STR="d"
+CONFIG_AUTOBOOT_STOP_STR=" "
CONFIG_CMD_BOOTZ=y
# CONFIG_CMD_IMI is not set
# CONFIG_CMD_IMLS is not set
diff --git a/include/configs/sama5d2_xplained.h b/include/configs/sama5d2_xplained.h
index e684d2a..95d396c 100644
--- a/include/configs/sama5d2_xplained.h
+++ b/include/configs/sama5d2_xplained.h
@@ -101,19 +101,19 @@
#endif
#ifdef CONFIG_SYS_USE_MMC
+#define CONFIG_PARTITION_UUIDS
+#define CONFIG_CMD_PART
/* bootstrap + u-boot + env in sd card */
#undef FAT_ENV_DEVICE_AND_PART
#undef CONFIG_BOOTCOMMAND
#define FAT_ENV_DEVICE_AND_PART "1"
-#define CONFIG_BOOTCOMMAND "fatload mmc 1:1 0x21000000 at91-sama5d2_xplained.dtb; " \
+#define CONFIG_BOOTCOMMAND "part uuid mmc 1:2 partuuid; " \
+ "setenv bootargs console=ttyS0,115200 root=PARTUUID=${partuuid} ro rootwait; " \
+ "fatload mmc 1:1 0x21000000 /dtbs/at91-sama5d2_xplained.dtb; " \
"fatload mmc 1:1 0x22000000 zImage; " \
"bootz 0x22000000 - 0x21000000"
-#undef CONFIG_BOOTARGS
-#define CONFIG_BOOTARGS \
- "console=ttyS0,115200 earlyprintk root=/dev/mmcblk1p2 rw rootwait"
-
#endif
/* SPL */
--
2.9.3