]> code.ossystems Code Review - bsp/u-boot.git/commitdiff
mx6cuboxi: Use PARTUUID to specify the rootfs location
authorFabio Berton <fabio.berton@ossystems.com.br>
Tue, 18 Oct 2016 13:59:36 +0000 (11:59 -0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 21 Oct 2016 17:40:29 +0000 (15:40 -0200)
Currently the rootfs location is passed via mmcblk number and the
problem with this approach is that the mmcblk number for the eMMC
changes depending on the kernel version.

In order to avoid such issue, use UUID method to specify the rootfs
location.

This change was made based on U-Boot commit:

  - ca4f338e2efece5196eb2178e5f7d07be828da6e

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
include/configs/mx6cuboxi.h

index 237ef04481fdfc78588ec57dfefec7ab94d635b5..69172486ccc23d1705b4994f08168ff4656cb008 100644 (file)
@@ -78,6 +78,9 @@
 #define CONFIG_SYS_FSL_USDHC_NUM       1
 #define CONFIG_SYS_MMC_ENV_DEV         0       /* SDHC2 */
 
+#define CONFIG_PARTITION_UUIDS
+#define CONFIG_CMD_PART
+
 #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
 #ifndef CONFIG_SPL_BUILD
 #define CONFIG_EXTRA_ENV_SETTINGS \
@@ -95,6 +98,7 @@
        "console=" CONFIG_CONSOLE_DEV "\0" \
        "bootm_size=0x10000000\0" \
        "mmcdev=" __stringify(CONFIG_SYS_MMC_ENV_DEV) "\0" \
+       "finduuid=part uuid mmc 0:2 uuid\0" \
        "update_sd_firmware=" \
                "if test ${ip_dyn} = yes; then " \
                        "setenv get_cmd dhcp; " \
 
 #define CONFIG_BOOTCOMMAND \
        "run findfdt; " \
+       "run finduuid; " \
        "run distro_bootcmd"
 
 #define BOOT_TARGET_DEVICES(func) \