Skip to contentSkip to conversation

board: tbs2910: Add CMD_PART

PATCH New Soeren Moch 2 participants 2 messages Sep 22, 2016 – Oct 4, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 board: tbs2910: Add CMD_PART

There is no stable mmcblk device numbering over different linux versions. Enable CMD_PART to be able to query the UUID of the root filesystem partition. So we can pass root=PARTUUID=XXX instead of root=/dev/mmcblkXpY in bootargs. Leave the default environment as is for now to stay compatible with original TBS settings.

---
Cc: Stefano Babic <[email protected]>
Cc: u-boot at lists.denx.de

---
 include/configs/tbs2910.h | 2 ++
 1 file changed, 2 insertions(+)
include/configs/tbs2910.h +2 -0
index facd9cf..d877336 100644
@@ -56,9 +56,11 @@
 
 /* *** Command definition *** */
 #define CONFIG_CMD_BMODE
+#define CONFIG_CMD_PART
 
 /* Filesystems / image support */
 #define CONFIG_EFI_PARTITION
+#define CONFIG_PARTITION_UUIDS
 
 /* MMC */
 #define CONFIG_SYS_FSL_USDHC_NUM	3
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 board: tbs2910: Add CMD_PART

Quoted 21 lines · Soeren Moch

There is no stable mmcblk device numbering over different linux versions. Enable CMD_PART to be able to query the UUID of the root filesystem partition. So we can pass root=PARTUUID=XXX instead of root=/dev/mmcblkXpY in bootargs. Leave the default environment as is for now to stay compatible with original TBS settings.

---
Cc: Stefano Babic <[email protected]>
Cc: u-boot at lists.denx.de

---
 include/configs/tbs2910.h | 2 ++
 1 file changed, 2 insertions(+)
include/configs/tbs2910.h +0 -0
index facd9cf..d877336 100644
@@ -56,9 +56,11 @@
 

include/configs/tbs2910.h line 66

Quoted 10 lines
include/configs/tbs2910.h +2 -0
 /* *** Command definition *** */
 #define CONFIG_CMD_BMODE
+#define CONFIG_CMD_PART
 
 /* Filesystems / image support */
 #define CONFIG_EFI_PARTITION
+#define CONFIG_PARTITION_UUIDS
 
 /* MMC */
 #define CONFIG_SYS_FSL_USDHC_NUM	3

Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================