1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-07-27 22:37:56 +00:00
Commit Graph

13 Commits

Author SHA1 Message Date
Koen Kooi ff69dee7b8 Revert "sdcard_image: align partitions with flash pages"
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 ed09701ebe.
2011-11-01 07:17:17 +01:00
Jason Kridner ed09701ebe sdcard_image: align partitions with flash pages
* Align partitions for SD card performance/wear optimization. For more
details, please see:
http://sakoman.com/OMAP/a-script-for-partitioningformatting-a-bootable-sdmicrosd-card.html

# Modifications to align partitioning by Steve Sakoman
# based on work by Arnd Bergmann
# Align partitions for SD card performance/wear optimization
# FAT partition size is 131072 sectors (64MB) less:
#       MBR - 1 sector
#       padding to align to the page size of the underlying flash - 127 sectors
# so we start the first partition at sector 128 and make it 131072 - 128 = 130944 sectors
# second partition starts at 131072 and continues to fill the card

Signed-off-by: Jason Kridner <jdk@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2011-10-27 21:57:52 -04:00
Koen Kooi a3b48d3291 sdcard_image bbclass: reinstate uEnv.txt copying
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-10-24 08:37:17 +02:00
Koen Kooi 6743f427e7 sdcard image bbclass: don't copy uEnv.txt for the time being
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-10-22 14:58:23 +02:00
Koen Kooi 68ad65aab3 sdcard_image bblass: set beaglebone VFAT label to 'BEAGLE_BONE' 2011-10-20 09:22:16 +02:00
Joel A Fernandes 9c078a61ed sdcard_image: Copy user.txt/uEnv.txt if it exists in /boot
Fixed a bug where the U-boot environment files are not copied to the boot partition if they
were installed in /boot by other recipes.

We should copy the uEnv.txt and user.txt always without placing a condition for the presence
of anything else in /boot. This is the original behavior of sdcard_image before the recent
wave of changes to it.

Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-10-20 09:19:40 +02:00
Koen Kooi 9c6d6d9490 sdcard_image bbclass: make VFAT partition name overridable
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-10-18 18:22:02 +02:00
Koen Kooi 99ce37e4a9 sdcard_image bbclass: default to 4GiB, but use 2GiB for beaglebone
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-10-15 13:48:24 +02:00
Koen Kooi a3226f913d sdcard_image bbclass: move back to 2GB images, clarify LOOPDEV* usage
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-10-14 12:37:10 +02:00
Koen Kooi 244e839892 sdcard_image bblass: all machines load from ext2/ext3 now, remove uImage copying
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-10-13 12:38:17 +02:00
Koen Kooi c26aa8ee7d sdcard_image bbclass: make it work with older losetup versions among other things
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-10-08 21:08:03 +02:00
Jason Kridner 4ab77fb919 classes: sdcardimage: move to 4GiB image
The card image size should be a multiple of clusters and should
reserve space smaller than the card.

Signed-off-by: Jason Kridner <jdk@ti.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-10-08 21:07:52 +02:00
Joel A Fernandes fa4d0789fa sdcard_image: Helper class to create SD Card images
Tested with 3 different beagleboard image release builds so far

For ideas, referenced Narcissus image builder written by Koen Kooi <k-kooi@ti.com>

Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-09-25 16:43:25 +02:00