diff options
author | Robert Marko <robert.marko@sartura.hr> | 2023-07-10 13:40:26 +0200 |
---|---|---|
committer | Robert Marko <robert.marko@sartura.hr> | 2024-06-17 20:16:20 +0200 |
commit | 23191b407564d81d28f709c5a05fb93edb7b96ba (patch) | |
tree | 9adc5cfda72c6d59b314e3a39b6fec7d71f1e4e5 /target/linux | |
parent | 793b925f8b35e278114bb3ab92564bae8b678122 (diff) | |
download | openwrt-23191b407564d81d28f709c5a05fb93edb7b96ba.tar.gz openwrt-23191b407564d81d28f709c5a05fb93edb7b96ba.tar.bz2 openwrt-23191b407564d81d28f709c5a05fb93edb7b96ba.zip |
mvebu: uDPU/eDPU: format F2FS partitons with compression support
In order to prolong the eMMC life and utilize ZSTD compression on Methode
devices, we must format the F2FS rootfs and misc partition with xattr and
compression support feature flags first.
This will only happen if partitions are broken currently, but later
commits will add support to convert existing boards to use compression.
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/mvebu/cortexa53/base-files/lib/upgrade/uDPU.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/mvebu/cortexa53/base-files/lib/upgrade/uDPU.sh b/target/linux/mvebu/cortexa53/base-files/lib/upgrade/uDPU.sh index b01ad607ee..a8d803ff59 100644 --- a/target/linux/mvebu/cortexa53/base-files/lib/upgrade/uDPU.sh +++ b/target/linux/mvebu/cortexa53/base-files/lib/upgrade/uDPU.sh @@ -42,7 +42,7 @@ udpu_do_part_check() { # Format the /misc part right away as we will need it for the firmware printf "Formating /misc partition, this make take a while..\n" udpu_part_prep ${emmc_dev}p4 - if mkfs.f2fs -q -l misc ${emmc_dev}p4; then + if mkfs.f2fs -q -l misc -O extra_attr,compression ${emmc_dev}p4; then printf "/misc partition formated successfully\n" else printf "/misc partition formatting failed\n" @@ -66,7 +66,7 @@ udpu_do_misc_prep() { format_count=0 while [ "$format_count" -lt "1" ]; do udpu_part_prep ${emmc_dev}p4 - mkfs.f2fs -q -l misc ${emmc_dev}p4 + mkfs.f2fs -q -l misc -O extra_attr,compression ${emmc_dev}p4 if ! mount ${emmc_dev}p4 /misc; then umount -l /misc printf "Failed while mounting /misc\n" @@ -92,7 +92,7 @@ udpu_do_initial_setup() { # Prepare /root partition printf "Formating /root partition, this may take a while..\n" udpu_part_prep ${emmc_dev}p3 - mkfs.f2fs -q -l rootfs ${emmc_dev}p3 && printf "/root partition reformated\n" + mkfs.f2fs -q -l rootfs -O extra_attr,compression ${emmc_dev}p3 && printf "/root partition reformated\n" } udpu_do_regular_upgrade() { |