diff options
author | Fabio Berton <fabio.berton@ossystems.com.br> | 2017-07-10 17:04:11 -0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2017-07-12 10:25:04 +0200 |
commit | 0f29a61c5339d667aa9243902fb42fb3033c3253 (patch) | |
tree | a5e331637e2b844a7fd6388f0d865ffc7cfc83f1 /include | |
parent | 35ba390d6256741b48823a5b70e28ea40664c83e (diff) |
embestmx6boards: 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.
Also add CONFIG_BOOTCOMMAND to run finduuid function and distro_bootcmd.
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/embestmx6boards.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/configs/embestmx6boards.h b/include/configs/embestmx6boards.h index 749a9e3bc17..61f0c95d550 100644 --- a/include/configs/embestmx6boards.h +++ b/include/configs/embestmx6boards.h @@ -15,7 +15,6 @@ #define CONFIG_MXC_UART_BASE UART2_BASE #define CONSOLE_DEV "ttymxc1" -#define CONFIG_MMCROOT "/dev/mmcblk1p2" #define PHYS_SDRAM_SIZE (1u * 1024 * 1024 * 1024) @@ -140,6 +139,10 @@ func(PXE, pxe, na) \ func(DHCP, dhcp, na) +#define CONFIG_BOOTCOMMAND \ + "run finduuid; " \ + "run distro_bootcmd" + #include <config_distro_bootcmd.h> #define CONSOLE_STDIN_SETTINGS \ @@ -157,6 +160,7 @@ CONSOLE_ENV_SETTINGS \ MEM_LAYOUT_ENV_SETTINGS \ "fdtfile=" CONFIG_FDTFILE "\0" \ + "finduuid=part uuid mmc 0:1 uuid\0" \ BOOTENV #endif /* __RIOTBOARD_CONFIG_H */ |