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 <robertcnelson@gmail.com>
pull/8/head
Robert Nelson 13 years ago
parent 6450b64926
commit 8808a72cfc

@ -1135,19 +1135,19 @@ function uboot_in_boot_partition {
echo "" echo ""
echo "Using fdisk to create BOOT Partition" echo "Using fdisk to create BOOT Partition"
echo "-----------------------------" 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 #With util-linux, 2.18+, the first sector is now 2048...
unset FDISK_DOS FDISK_FIRST_SECTOR="1"
if test $(fdisk -v | grep -o -E '2\.[0-9]+' | cut -d'.' -f2) -ge 18 ; then 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 fi
fdisk ${FDISK_DOS} ${MMC} << END fdisk ${MMC} << END
n n
p p
1 1
1 ${FDISK_FIRST_SECTOR}
+64M +64M
t t
e e

Loading…
Cancel
Save