From 6f2acb17c68e7a9c594b28d08e6611716b541ccd Mon Sep 17 00:00:00 2001 From: Hector Palacios Date: Wed, 6 Jul 2016 13:39:24 +0200 Subject: [PATCH] install_linux_fw_sd: parametrize the mmc device index containing the firmware Signed-off-by: Hector Palacios --- .../u-boot-dey-2015.04/ccimx6/install_linux_fw_sd.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey-2015.04/ccimx6/install_linux_fw_sd.txt b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey-2015.04/ccimx6/install_linux_fw_sd.txt index 4006c9927..6b6cad2cd 100644 --- a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey-2015.04/ccimx6/install_linux_fw_sd.txt +++ b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey-2015.04/ccimx6/install_linux_fw_sd.txt @@ -60,12 +60,13 @@ else exit; fi; +setenv INSTALL_MMCDEV 1 setenv INSTALL_LINUX_FILENAME dey-image-qt-##GRAPHICAL_BACKEND##-ccimx6sbc.boot.vfat setenv INSTALL_ROOTFS_FILENAME dey-image-qt-##GRAPHICAL_BACKEND##-ccimx6sbc.ext4 # Check for presence of firmware files on the SD card for install_f in ${INSTALL_UBOOT_FILENAME} ${INSTALL_LINUX_FILENAME} ${INSTALL_ROOTFS_FILENAME}; do - if test ! -e mmc 1:1 ${install_f}; then + if test ! -e mmc ${INSTALL_MMCDEV}:1 ${install_f}; then echo "ERROR: Could not find file ${install_f}"; install_abort=1; fi; @@ -91,7 +92,7 @@ echo "" echo ">> Installing U-Boot boot loader (target will reset)" echo "" echo "" -update uboot mmc 1 fat ${INSTALL_UBOOT_FILENAME} +update uboot mmc ${INSTALL_MMCDEV} fat ${INSTALL_UBOOT_FILENAME} if test $? -eq 1; then echo "[ERROR] Failed to update U-Boot boot loader!"; echo ""; @@ -126,7 +127,7 @@ setenv bootcmd " echo \">> Installing Linux kernel and device tree files\"; echo \"\"; echo \"\"; - update linux mmc 1 fat ${INSTALL_LINUX_FILENAME}; + update linux mmc ${INSTALL_MMCDEV} fat ${INSTALL_LINUX_FILENAME}; if test \$? -eq 1; then echo \"[ERROR] Failed to update linux partition!\"; echo \"\"; @@ -138,7 +139,7 @@ setenv bootcmd " echo \">> Installing Linux root file system\"; echo \"\"; echo \"\"; - update rootfs mmc 1 fat ${INSTALL_ROOTFS_FILENAME}; + update rootfs mmc ${INSTALL_MMCDEV} fat ${INSTALL_ROOTFS_FILENAME}; if test \$? -eq 1; then echo \"[ERROR] Failed to update rootfs partition!\"; echo \"\";