|
|
|
@ -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"
|
|
|
|
|