From 8417e82ba7b20f71eb3585829a0d6ed46ecc4450 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Fri, 25 Jul 2014 20:13:53 -0500 Subject: [PATCH] mk_mmc.sh: give back an extra 32Mb for conf_smart_uboot Signed-off-by: Robert Nelson --- mk_mmc.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/mk_mmc.sh b/mk_mmc.sh index 6721154..8204762 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -941,10 +941,16 @@ unmount_all_drive_partitions () { umount ${DRIVE} >/dev/null 2>&1 || true done + if [ ! "x${conf_smart_uboot}" = "xenable" ] ; then + count="100" + else + count="70" + fi + echo "Zeroing out Partition Table" - dd if=/dev/zero of=${media} bs=1M count=108 || drive_error_ro + dd if=/dev/zero of=${media} bs=1M count=${count} || drive_error_ro sync - dd if=${media} of=/dev/null bs=1M count=108 + dd if=${media} of=/dev/null bs=1M count=${count} sync } @@ -1301,7 +1307,11 @@ process_dtb_conf () { #defaults, if not set... conf_boot_startmb=${conf_boot_startmb:-"1"} - conf_boot_endmb=${conf_boot_endmb:-"96"} + if [ ! "x${conf_smart_uboot}" = "xenable" ] ; then + conf_boot_endmb=${conf_boot_endmb:-"96"} + else + conf_boot_endmb=${conf_boot_endmb:-"64"} + fi conf_root_device=${conf_root_device:-"/dev/mmcblk0"} #error checking...