[meta-ti] [PATCH] sdcard_image: align partitions with flash pages
Kridner, Jason
jdk at ti.com
Wed Oct 26 18:38:04 PDT 2011
See http://github.com/jadonk/meta-texasinstruments for-upstream branch for this patch as well.
________________________________________
From: Kridner, Jason
Sent: Wednesday, October 26, 2011 9:36 PM
To: meta-ti at yoctoproject.org
Cc: Kridner, Jason
Subject: [PATCH] sdcard_image: align partitions with flash pages
See
http://sakoman.com/OMAP/a-script-for-partitioningformatting-a-bootable-sdmicrosd-card.html
Signed-off-by: Jason Kridner <jdk at ti.com>
---
classes/sdcard_image.bbclass | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/classes/sdcard_image.bbclass b/classes/sdcard_image.bbclass
index 4ebc998..9e4a959 100644
--- a/classes/sdcard_image.bbclass
+++ b/classes/sdcard_image.bbclass
@@ -46,9 +46,9 @@ IMAGE_CMD_sdimg () {
SIZE=$(/sbin/fdisk -l ${LOOPDEV} | grep Disk | grep bytes | awk '{print $5}')
CYLINDERS=$(echo $SIZE/255/63/512 | bc)
{
- echo ,9,0x0C,*
- echo ,,,-
- } | /sbin/sfdisk -D -H 255 -S 63 -C ${CYLINDERS} ${LOOPDEV}
+ echo 128,130944,0x0C,*
+ echo 131072,,,-
+ } | /sbin/sfdisk -D -uS -H 255 -S 63 -C ${CYLINDERS} ${LOOPDEV}
# Prepare loop devices for boot and filesystem partitions
BOOT_OFFSET=32256
--
1.7.4.1
More information about the meta-ti
mailing list