]> code.ossystems Code Review - bsp/u-boot.git/commitdiff
wandboard: Use PARTUUID to specify the rootfs location
authorFabio Berton <fabio.berton@ossystems.com.br>
Mon, 10 Jul 2017 20:04:09 +0000 (17:04 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 12 Jul 2017 12:05:02 +0000 (09:05 -0300)
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>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
include/configs/wandboard.h

index 2a6c6fbb703b4cccc909ebc519a086a25ed95a6f..58077efcf1fcb44ed7218809b98a6d5bd460c850 100644 (file)
@@ -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 " \
 
 #define CONFIG_BOOTCOMMAND \
           "run findfdt; " \
+          "run finduuid; " \
           "run distro_bootcmd"
 
 #include <config_distro_bootcmd.h>