bcm2835-bootloader: create flash/sdcard optimized ext4 filesystem

See http://blogofterje.wordpress.com/2012/01/14/optimizing-fs-on-sd-card/ for
reference:
- disable journaling
- set stride and stripe-width
- set block size to 4k
This commit is contained in:
Steeve Morin 2014-03-17 12:56:45 +01:00 committed by Stephan Raue
parent 70391fbdf0
commit c02f928cb2

View File

@ -210,8 +210,10 @@ echo "#########################################################"
echo "creating filesystem on $PART1..."
mkfs.vfat "$PART1" -I -n System
# create ext4 partition with optimized settings for running on flash/sd
# See http://blogofterje.wordpress.com/2012/01/14/optimizing-fs-on-sd-card/ for reference.
echo "creating filesystem on $PART2..."
mkfs.ext4 "$PART2" -L Storage
mkfs.ext4 -O ^has_journal -E stride=2,stripe-width=1024 -b 4096 "$PART2" -L Storage
# remount loopback device
if [ "$DISK" = "/dev/loop0" ]; then