From 8c78513df96d8832a3502c675977db11b5868804 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Wed, 14 May 2014 12:10:23 -0500 Subject: [PATCH] wrapper: another board needs the boot.scr to uEnv.txt wrapper Signed-off-by: Robert Nelson --- mk_mmc.sh | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/mk_mmc.sh b/mk_mmc.sh index f5f84b4..bd0e4b9 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -1227,21 +1227,25 @@ populate_boot () { fi if [ "${conf_uboot_bootscript}" ] ; then - cat > ${TEMPDIR}/bootscripts/loader.cmd <<-__EOF__ - echo "${conf_uboot_bootscript} -> uEnv.txt wrapper..." - #boundarydevices.com uses disk over mmcdev - if test -n \$disk; then - setenv mmcdev \$disk - setenv mmcpart 1 - fi - ${conf_fileload} mmc \${mmcdev}:\${mmcpart} \${loadaddr} uEnv.txt - env import -t \${loadaddr} \${filesize} - run uenvcmd - __EOF__ - cat ${TEMPDIR}/bootscripts/loader.cmd - echo "-----------------------------" - mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "wrapper" -d ${TEMPDIR}/bootscripts/loader.cmd ${TEMPDIR}/disk/${conf_uboot_bootscript} - cp -v ${TEMPDIR}/disk/${conf_uboot_bootscript} ${TEMPDIR}/disk/backup/${conf_uboot_bootscript} + case "${conf_fdtfile}" in + imx6q-sabrelite.dtb) + cat > ${TEMPDIR}/bootscripts/loader.cmd <<-__EOF__ + echo "${conf_uboot_bootscript} -> uEnv.txt wrapper..." + #boundarydevices.com uses disk over mmcdev + if test -n \$disk; then + setenv mmcdev \$disk + setenv mmcpart 1 + fi + ${conf_fileload} mmc \${mmcdev}:\${mmcpart} \${loadaddr} uEnv.txt + env import -t \${loadaddr} \${filesize} + run uenvcmd + __EOF__ + cat ${TEMPDIR}/bootscripts/loader.cmd + echo "-----------------------------" + mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "wrapper" -d ${TEMPDIR}/bootscripts/loader.cmd ${TEMPDIR}/disk/${conf_uboot_bootscript} + cp -v ${TEMPDIR}/disk/${conf_uboot_bootscript} ${TEMPDIR}/disk/backup/${conf_uboot_bootscript} + ;; + esac fi echo "Copying uEnv.txt based boot scripts to Boot Partition"