1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-01-12 01:20:20 +00:00

28 Commits

Author SHA1 Message Date
Koen Kooi
7b8b1fe4b8 sdcard_image bbclass: make ext4 the default
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2012-05-10 15:28:38 -04:00
Joel A Fernandes
3c4c1e3013 sdcard_image: Add image version info to root fs
Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-15 16:34:01 +01:00
Koen Kooi
eceb8e05b9 sdcard_image bbclass: run genex2fs directly on the loop device
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-14 10:34:04 +01:00
Peter A. Bigot
2cd35f07bf sdcard_image: add dependency on native ext2 utilities
Signed-off-by: Peter A. Bigot <bigotp@acm.org>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-09 20:25:02 +01:00
Koen Kooi
4402447bb4 sdcard_image bbclass: reinstate vfat copy of uImage
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-08 13:34:12 +01:00
Koen Kooi
116a42e504 sdcard_image bbclass: switch to vfat layout
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-08 13:23:16 +01:00
Koen Kooi
d51ebcf4b4 sdcard_image bbclass: add proper ext4 support, fix inode calculations, etc, etc
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-07 18:07:55 +01:00
Koen Kooi
ded88c51bc sdcard_image bbclass: add ext4 support note
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-07 10:19:59 +01:00
Koen Kooi
87abedf129 sdcard_image bbclass: increas inode count again
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-05 15:18:04 +01:00
Koen Kooi
7ea2cf4849 sdcard_image bbclass: make payload errors non-fatal 2011-11-04 15:03:55 +01:00
Koen Kooi
6ce2516808 sdcard_image bbclass: fix payload logic
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-04 13:51:12 +01:00
Koen Kooi
05d91d63dd sdcard_image bbclass: add support to copy over payload from rootfs to vfat
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-04 08:42:25 +01:00
Koen Kooi
e6fe491161 sdcard_image bbclass: add timestamp to image filename
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-04 08:38:41 +01:00
Jason Kridner
7aff70deab sdimage_class: eliminate 2GB exception for BeagleBone
Gerald has said his supply of 2GB SD cards for BeagleBone has
gone away, so we are back to 4GB cards.  No more need for this
exeption:

Signed-off-by: Jason Kridner <jdk@ti.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-04 08:16:36 +01:00
Koen Kooi
c8a6d183f3 sdcard_image bbclass: raise number of inodes to avoid out of space errors
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-01 14:56:10 +01:00
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