From 1bcfc3430904a7b2ab083e9de0a91dfa55dc47e1 Mon Sep 17 00:00:00 2001 From: Fabio Berton Date: Tue, 18 Oct 2016 11:59:35 -0200 Subject: [PATCH] wandboard: Use PARTUUID to specify the rootfs location 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 Signed-off-by: Otavio Salvador --- include/configs/wandboard.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/configs/wandboard.h b/include/configs/wandboard.h index 7401baeb4c..395141db79 100644 --- a/include/configs/wandboard.h +++ b/include/configs/wandboard.h @@ -91,6 +91,9 @@ #define CONFIG_IMX_HDMI #define CONFIG_IMX_VIDEO_SKIP +#define CONFIG_PARTITION_UUIDS +#define CONFIG_CMD_PART + #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG #define CONFIG_EXTRA_ENV_SETTINGS \ "console=ttymxc0,115200\0" \ @@ -102,6 +105,7 @@ "fdt_addr=0x18000000\0" \ "ip_dyn=yes\0" \ "mmcdev=" __stringify(CONFIG_SYS_MMC_ENV_DEV) "\0" \ + "finduuid=part uuid mmc 0:2 uuid\0" \ "update_sd_firmware_filename=u-boot.imx\0" \ "update_sd_firmware=" \ "if test ${ip_dyn} = yes; then " \ @@ -143,6 +147,7 @@ #define CONFIG_BOOTCOMMAND \ "run findfdt; " \ + "run finduuid; " \ "run distro_bootcmd" #include -- 2.40.1