From 8808a72cfce36a06e9cc1176294d801ed2186265 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Tue, 14 Feb 2012 12:33:43 -0600 Subject: [PATCH] omap: switch fdisk from using old depreciated method to using sector 2048 on fdisk 2.18+, tested Beagle Bx/Cx xM, Panda, Bone Signed-off-by: Robert Nelson --- mk_mmc.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mk_mmc.sh b/mk_mmc.sh index 384fb44..7a45f27 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -1135,19 +1135,19 @@ function uboot_in_boot_partition { echo "" echo "Using fdisk to create BOOT Partition" echo "-----------------------------" + echo "Debug: now using FDISK_FIRST_SECTOR over fdisk's depreciated method..." - #With util-linux, 2.18.x/2.19.x, fdisk no longer has dos/cylinders mode on by default - unset FDISK_DOS - + #With util-linux, 2.18+, the first sector is now 2048... + FDISK_FIRST_SECTOR="1" if test $(fdisk -v | grep -o -E '2\.[0-9]+' | cut -d'.' -f2) -ge 18 ; then - FDISK_DOS="-c=dos -u=cylinders" + FDISK_FIRST_SECTOR="2048" fi -fdisk ${FDISK_DOS} ${MMC} << END +fdisk ${MMC} << END n p 1 -1 +${FDISK_FIRST_SECTOR} +64M t e