diff --git a/mk_mmc.sh b/mk_mmc.sh index 2e5f713..853fe7e 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -679,6 +679,18 @@ finish_installing_device () { fi fi + if [ ! \${got_boot_drive} ] ; then + if [ -b /dev/mmcblk3p1 ] ; then + mount /dev/mmcblk3p1 /target/boot/uboot + if [ -f /target/boot/uboot/SOC.sh ] ; then + got_boot_drive=1 + echo "/dev/mmcblk3" > /target/boot/uboot/bootdrive + else + umount /target/boot/uboot + fi + fi + fi + if [ -d /lib/firmware/ ] ; then cp -rf /lib/firmware/ /target/lib/ || true fi