wrapper: another board needs the boot.scr to uEnv.txt wrapper

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/37/head
Robert Nelson 11 years ago
parent 721f422b2a
commit 8c78513df9

@ -1227,21 +1227,25 @@ populate_boot () {
fi fi
if [ "${conf_uboot_bootscript}" ] ; then if [ "${conf_uboot_bootscript}" ] ; then
cat > ${TEMPDIR}/bootscripts/loader.cmd <<-__EOF__ case "${conf_fdtfile}" in
echo "${conf_uboot_bootscript} -> uEnv.txt wrapper..." imx6q-sabrelite.dtb)
#boundarydevices.com uses disk over mmcdev cat > ${TEMPDIR}/bootscripts/loader.cmd <<-__EOF__
if test -n \$disk; then echo "${conf_uboot_bootscript} -> uEnv.txt wrapper..."
setenv mmcdev \$disk #boundarydevices.com uses disk over mmcdev
setenv mmcpart 1 if test -n \$disk; then
fi setenv mmcdev \$disk
${conf_fileload} mmc \${mmcdev}:\${mmcpart} \${loadaddr} uEnv.txt setenv mmcpart 1
env import -t \${loadaddr} \${filesize} fi
run uenvcmd ${conf_fileload} mmc \${mmcdev}:\${mmcpart} \${loadaddr} uEnv.txt
__EOF__ env import -t \${loadaddr} \${filesize}
cat ${TEMPDIR}/bootscripts/loader.cmd run uenvcmd
echo "-----------------------------" __EOF__
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} cat ${TEMPDIR}/bootscripts/loader.cmd
cp -v ${TEMPDIR}/disk/${conf_uboot_bootscript} ${TEMPDIR}/disk/backup/${conf_uboot_bootscript} 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 fi
echo "Copying uEnv.txt based boot scripts to Boot Partition" echo "Copying uEnv.txt based boot scripts to Boot Partition"

Loading…
Cancel
Save