wandboard: Change finduuid to find on first partition
PATCH 1/3 wandboard: Change finduuid to find on first partition
meta-freescale bsp is moving to use wic image creator tool and also change sdcard layout to use only one partition. So all files will be in the same partition. We need to change finduuid to get uuid of firt mmc partition.
--- include/configs/wandboard.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/wandboard.h +1 -1
@@ -108,7 +108,7 @@"ip_dyn=yes\0" \ "mmcdev=" __stringify(CONFIG_SYS_MMC_ENV_DEV) "\0" \"mmcpart=1\0" \ -"finduuid=part uuid mmc 0:2 uuid\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 " \
Signature · 1 line
2.1.4
PATCH 2/3 mx6cuboxi: Change finduuid to find on first partition
meta-freescale bsp is moving to use wic image creator tool and also change sdcard layout to use only one partition. So all files will be in the same partition. We need to change finduuid to get uuid of firt mmc partition.
--- include/configs/mx6cuboxi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/mx6cuboxi.h +1 -1
@@ -100,7 +100,7 @@"console=" CONFIG_CONSOLE_DEV "\0" \"bootm_size=0x10000000\0" \ "mmcdev=" __stringify(CONFIG_SYS_MMC_ENV_DEV) "\0" \ -"finduuid=part uuid mmc 0:2 uuid\0" \ +"finduuid=part uuid mmc 0:1 uuid\0" \"update_sd_firmware=" \"if test ${ip_dyn} = yes; then " \"setenv get_cmd dhcp; " \
Signature · 1 line
2.1.4
PATCH 3/3 embestmx6boards: Use PARTUUID to specify the rootfs location
In reply to Fabio BertonCurrently 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
--- include/configs/embestmx6boards.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
include/configs/embestmx6boards.h +5 -1
@@ -15,7 +15,6 @@#define CONFIG_MXC_UART_BASE UART2_BASE#define CONFIG_CONSOLE_DEV "ttymxc1" -#define CONFIG_MMCROOT "/dev/mmcblk0p2"#define PHYS_SDRAM_SIZE (1u * 1024 * 1024 * 1024)
@@ -154,6 +153,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 \
@@ -171,6 +174,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 */
Signature · 1 line
2.1.4