From 3b3f2857a9c89ba4bfe44cbb11f1f66ec97c7084 Mon Sep 17 00:00:00 2001 From: Christopher Hall Date: Mon, 9 Mar 2009 12:00:57 +0000 Subject: [PATCH] Possible mistake in qi/6410-partition.sh Hello Andy, I am in the process of making a modified 6410-partition.sh and I wonder if there is a mistake in the VFAT partition size: Shouldn't the "+ $REARSECTORS" in the FATSECTORS calculation be a subtraction, otherwise the backupfs will overlap the space reserved for Qi at the end of the SD Card. Please look at this dif to see what I mean: --- qiboot/6410-partition-sd.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qiboot/6410-partition-sd.sh b/qiboot/6410-partition-sd.sh index d692ed1..81db829 100755 --- a/qiboot/6410-partition-sd.sh +++ b/qiboot/6410-partition-sd.sh @@ -70,8 +70,8 @@ echo "$1 is $SECTORS 512-byte blocks" if [ -z "$4" ] ; then - FATSECTORS=$(( $SECTORS - $EXT3_TOTAL_SECTORS + $REARSECTORS )) - FATMB=$(( $FATSECTORS / 2048 - 16 )) + FATSECTORS=$(( $SECTORS - $EXT3_TOTAL_SECTORS - $REARSECTORS )) + FATMB=$(( $FATSECTORS / 2048 )) echo "Creating VFAT section $FATMB MB"