Revert "sdcard_image: align partitions with flash pages"
authorKoen Kooi <koen@dominion.thruhere.net>
Tue, 1 Nov 2011 06:17:17 +0000 (07:17 +0100)
committerKoen Kooi <koen@dominion.thruhere.net>
Tue, 1 Nov 2011 06:17:17 +0000 (07:17 +0100)
This has 2 problems:

1) | Warning: partition 1 does not end at a cylinder boundary
   |
   | sfdisk: I don't like these partitions - nothing changed.

2) CCCCCCCCC on the beaglebone, the ROM code doesn't accept it after fixing 1) with --force

This reverts commit ed09701ebe89d4ce0802cf734aa25c29e94febe8.

classes/sdcard_image.bbclass

index 9e4a959c5847fe34d76687a1651e61f92b4ca14e..4ebc9986aec153b4dbdc94a51947404d1f21f5c7 100644 (file)
@@ -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 128,130944,0x0C,*
-       echo 131072,,,-
-       } | /sbin/sfdisk -D -uS -H 255 -S 63 -C ${CYLINDERS} ${LOOPDEV}
+       echo ,9,0x0C,*
+       echo ,,,-
+       } | /sbin/sfdisk -D -H 255 -S 63 -C ${CYLINDERS} ${LOOPDEV}
 
        # Prepare loop devices for boot and filesystem partitions
        BOOT_OFFSET=32256