From ae05d9633a8b94cdb54aad0dbe34d5182e125d53 Mon Sep 17 00:00:00 2001 From: Gonzalo Ruiz Date: Thu, 20 Aug 2020 10:36:12 +0200 Subject: [PATCH] u-boot-dey: add mmc partconf command to uuu scripts Add running 'mmc partconf 0 1 1 1' command to the uuu scripts after writing the new U-Boot into the internal eMMC. This is required for blank eMMCs on CC8MN and CC8X SOMs where the 'update' command has never been run to be able to boot from eMMC. Signed-off-by: Gonzalo Ruiz --- .../u-boot/u-boot-dey/ccimx8mn-dvk/install_linux_fw_uuu.sh | 3 +++ .../u-boot/u-boot-dey/ccimx8x-sbc-pro/install_linux_fw_uuu.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx8mn-dvk/install_linux_fw_uuu.sh b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx8mn-dvk/install_linux_fw_uuu.sh index 6ef574712..920860858 100755 --- a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx8mn-dvk/install_linux_fw_uuu.sh +++ b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx8mn-dvk/install_linux_fw_uuu.sh @@ -53,6 +53,9 @@ uuu fb: ucmd setenv forced_update 1 # Update U-Boot uuu fb: flash bootloader ${INSTALL_UBOOT_FILENAME} +# Set MMC to boot from BOOT1 partition +uuu fb: ucmd mmc partconf 0 1 1 1 + # Set 'bootcmd' for the second part of the script that will # - Reset environment to defaults # - Save the environment diff --git a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx8x-sbc-pro/install_linux_fw_uuu.sh b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx8x-sbc-pro/install_linux_fw_uuu.sh index 8f40ea9b4..91fc2c772 100644 --- a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx8x-sbc-pro/install_linux_fw_uuu.sh +++ b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx8x-sbc-pro/install_linux_fw_uuu.sh @@ -115,6 +115,9 @@ uuu fb: ucmd setenv forced_update 1 # Update U-Boot uuu fb: flash bootloader ${INSTALL_UBOOT_FILENAME} +# Set MMC to boot from BOOT1 partition +uuu fb: ucmd mmc partconf 0 1 1 1 + # Set 'bootcmd' for the second part of the script that will # - Reset environment to defaults # - Save the environment