From fcd24905923e8e32761780709dac14994cb7feb1 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Wed, 29 Dec 2010 16:26:04 -0600 Subject: [PATCH] add fdisk 2.18 qwerk Signed-off-by: Robert Nelson --- mk_mmc.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/mk_mmc.sh b/mk_mmc.sh index 2857f4f..240a2c4 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -37,6 +37,14 @@ PARTITION_PREFIX="" DIR=$PWD TEMPDIR=$(mktemp -d) +#Software Qwerks +#fdisk 2.18, dos no longer default +unset FDISK_DOS + +if fdisk -v | grep 2.18 >/dev/null ; then + FDISK_DOS="-c=dos -u=cylinders" +fi + function dl_xload_uboot { echo "" @@ -298,7 +306,7 @@ NUM_MOUNTS=$(mount | grep -v none | grep "$MMC" | wc -l) function create_partitions { -sudo fdisk -H 255 -S 63 ${MMC} << END +sudo fdisk ${FDISK_DOS} ${MMC} << END n p 1