forked from eewiki/u-boot-patches
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0001-sama5d4_xplained-uEnv.txt-bootz-n-fixes.patch
58 lines (53 loc) · 2.01 KB
/
0001-sama5d4_xplained-uEnv.txt-bootz-n-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 9b205b9fa9ca5d61726e554dedf814202c8f0812 Mon Sep 17 00:00:00 2001
From: Robert Nelson <[email protected]>
Date: Tue, 18 Oct 2016 15:23:34 -0500
Subject: [PATCH] sama5d4_xplained: uEnv.txt, bootz, n fixes
Signed-off-by: Robert Nelson <[email protected]>
---
configs/sama5d4_xplained_mmc_defconfig | 4 ++++
include/configs/at91-sama5_common.h | 9 +++++----
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/configs/sama5d4_xplained_mmc_defconfig b/configs/sama5d4_xplained_mmc_defconfig
index 5ff4688..9d90f37 100644
--- a/configs/sama5d4_xplained_mmc_defconfig
+++ b/configs/sama5d4_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/at91-sama5_common.h b/include/configs/at91-sama5_common.h
index b09ef33..c528275 100644
--- a/include/configs/at91-sama5_common.h
+++ b/include/configs/at91-sama5_common.h
@@ -45,6 +45,8 @@
*/
#ifdef CONFIG_SYS_USE_MMC
+#define CONFIG_PARTITION_UUIDS
+#define CONFIG_CMD_PART
#ifdef CONFIG_ENV_IS_IN_MMC
/* Use raw reserved sectors to save environment */
@@ -64,12 +66,11 @@
#define CONFIG_BOOTCOMMAND "if test ! -n ${dtb_name}; then " \
"setenv dtb_name at91-${board_name}.dtb; " \
"fi; " \
- "fatload mmc 0:1 0x21000000 ${dtb_name}; " \
+ "part uuid mmc 0:2 partuuid; " \
+ "setenv bootargs console=ttyS0,115200 root=PARTUUID=${partuuid} ro rootwait; " \
+ "fatload mmc 0:1 0x21000000 /dtbs/${dtb_name}; " \
"fatload mmc 0:1 0x22000000 zImage; " \
"bootz 0x22000000 - 0x21000000"
-#define CONFIG_BOOTARGS \
- "console=ttyS0,115200 earlyprintk " \
- "root=/dev/mmcblk0p2 rw rootwait"
#else
#define CONFIG_BOOTARGS \
"console=ttyS0,115200 earlyprintk " \
--
2.9.3