From 7076d9f24e2580eb42495bd3d544f7e026d0dd0f Mon Sep 17 00:00:00 2001 From: Gonzalo Ruiz Date: Tue, 6 Jul 2021 18:08:36 +0200 Subject: [PATCH] install_linux_fw_uuu: reconfigure fastboot after partitioning Fastboot is configured on boot with the current MMC configuration. If we create a GPT partition table, we need to restart fastboot before we try to program any partition with the 'flash' fastboot command. Set 'fastboot_dev' to a different device, 'sata' for example an back to 'mmc' to trigger a fastboot restart after creating the partition table on blank devices. Signed-off-by: Gonzalo Ruiz --- .../u-boot/u-boot-dey/ccimx8m/install_linux_fw_uuu.sh | 4 ++++ .../u-boot/u-boot-dey/ccimx8x/install_linux_fw_uuu.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx8m/install_linux_fw_uuu.sh b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx8m/install_linux_fw_uuu.sh index 811f895cb..3f023b794 100755 --- a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx8m/install_linux_fw_uuu.sh +++ b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx8m/install_linux_fw_uuu.sh @@ -201,6 +201,10 @@ uuu fb: acmd reset # Wait for the target to reset sleep 3 +# Restart fastboot with the latest MMC partition configuration +uuu fb: ucmd setenv fastboot_dev sata +uuu fb: ucmd setenv fastboot_dev mmc + # Update Linux part_update "linux" "${INSTALL_LINUX_FILENAME}" diff --git a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx8x/install_linux_fw_uuu.sh b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx8x/install_linux_fw_uuu.sh index cbe7960d7..d86079624 100644 --- a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx8x/install_linux_fw_uuu.sh +++ b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx8x/install_linux_fw_uuu.sh @@ -260,6 +260,10 @@ uuu fb: acmd reset # Wait for the target to reset sleep 3 +# Restart fastboot with the latest MMC partition configuration +uuu fb: ucmd setenv fastboot_dev sata +uuu fb: ucmd setenv fastboot_dev mmc + # Set fastboot buffer address to $loadaddr, just in case uuu fb: ucmd setenv fastboot_buffer \${loadaddr}