From 0ada2d6caf4bf1c9e3fc5e5b61f4e1f927c77a34 Mon Sep 17 00:00:00 2001 From: Fabio Berton Date: Mon, 10 Jul 2017 17:04:09 -0300 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 Reviewed-by: Fabio Estevam --- include/configs/wandboard.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/wandboard.h b/include/configs/wandboard.h index 2a6c6fbb70..58077efcf1 100644 --- a/include/configs/wandboard.h +++ b/include/configs/wandboard.h @@ -89,6 +89,7 @@ "fdt_addr=0x18000000\0" \ "ip_dyn=yes\0" \ "mmcdev=" __stringify(CONFIG_SYS_MMC_ENV_DEV) "\0" \ + "finduuid=part uuid mmc 0:1 uuid\0" \ "update_sd_firmware_filename=u-boot.imx\0" \ "update_sd_firmware=" \ "if test ${ip_dyn} = yes; then " \ @@ -130,6 +131,7 @@ #define CONFIG_BOOTCOMMAND \ "run findfdt; " \ + "run finduuid; " \ "run distro_bootcmd" #include -- 2.40.1