Commit 35ba390d6256741b48823a5b70e28ea40664c83e

Authored by Fabio Berton
Committed by Stefano Babic
1 parent 84b4690f26

mx6cuboxi: 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 <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

include/configs/mx6cuboxi.h
... ... @@ -95,6 +95,7 @@
95 95 "console=" CONSOLE_DEV ",115200\0" \
96 96 "bootm_size=0x10000000\0" \
97 97 "mmcdev=" __stringify(CONFIG_SYS_MMC_ENV_DEV) "\0" \
  98 + "finduuid=part uuid mmc 0:1 uuid\0" \
98 99 "update_sd_firmware=" \
99 100 "if test ${ip_dyn} = yes; then " \
100 101 "setenv get_cmd dhcp; " \
... ... @@ -123,6 +124,7 @@
123 124  
124 125 #define CONFIG_BOOTCOMMAND \
125 126 "run findfdt; " \
  127 + "run finduuid; " \
126 128 "run distro_bootcmd"
127 129  
128 130 #define BOOT_TARGET_DEVICES(func) \