pico-imx6ul: Add function to create gpt partitions
authorFabio Berton <fabio.berton@ossystems.com.br>
Thu, 16 Nov 2017 11:59:48 +0000 (09:59 -0200)
committerStefano Babic <sbabic@denx.de>
Mon, 20 Nov 2017 08:54:09 +0000 (09:54 +0100)
Command run setup_emmc will create gpt partitions for mmc 0 device
based on patitions variable.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
configs/pico-imx6ul_defconfig
include/configs/pico-imx6ul.h

index e00f9f34a3262692f4eb23858dc4d3b8f89bb60c..f28f9b7a4eea73bfbc5f69891040ec1b255030e5 100644 (file)
@@ -12,6 +12,7 @@ CONFIG_CMD_MEMTEST=y
 CONFIG_CMD_DFU=y
 # CONFIG_CMD_FLASH is not set
 CONFIG_CMD_GPIO=y
+CONFIG_CMD_GPT=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_PART=y
 CONFIG_CMD_USB=y
index 1ea79b9c18e24cd5932edeb472218d668052f5ac..310fceb14b861235613ae88049dc3e799b2c7610 100644 (file)
@@ -71,6 +71,7 @@
        "partitions=" \
                "uuid_disk=${uuid_gpt_disk};" \
                "name=boot,size=16MiB;name=rootfs,size=0,uuid=${uuid_gpt_rootfs}\0" \
+       "setup_emmc=gpt write mmc 0 $partitions; reset;\0" \
        "mmcargs=setenv bootargs console=${console},${baudrate} " \
                "root=PARTUUID=${uuid} rootwait rw\0" \
        "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \