From e7945ac079926319d013bad93aa380d97e174d47 Mon Sep 17 00:00:00 2001 From: INSUN PYO Date: Tue, 16 Feb 2021 15:17:37 +0900 Subject: Apply squashfs filesystem to the initrd(ramdisk) of IOT squashfs supports compression. ===================================== | ext4 (M byte) | squashfs (M byte) | ====================================| | 6.5 | 3.7 | | 10.0 | 5.5 | ------------------------------------- | 13.0 | 7.0 | | 13.4 | 7.3 | ------------------------------------- | 13.8 | 7.7 | | 14.3 | 7.9 | ------------------------------------- | 15.0 | 8.2 | | 16.3 | 9.1 | ===================================== Change-Id: I07d2fed88494009cb7b19dc30ec4cdec1818a16f --- partitions/btrfs-rootfs-2parts-ramdisk-recovery | 2 +- partitions/btrfs-rootfs-3parts-ramdisk-recovery | 2 +- partitions/common-3parts-artik530_710-ramdisk-recovery | 2 +- partitions/common-3parts-ramdisk-recovery | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/partitions/btrfs-rootfs-2parts-ramdisk-recovery b/partitions/btrfs-rootfs-2parts-ramdisk-recovery index bfd99d1..e46b2c7 100644 --- a/partitions/btrfs-rootfs-2parts-ramdisk-recovery +++ b/partitions/btrfs-rootfs-2parts-ramdisk-recovery @@ -1,4 +1,4 @@ part / --size=1024 --ondisk mmcblk0p --fstype=btrfs --label=rootfs --fsoptions=defaults,noatime,compress-force=lzo part /opt/ --size=512 --ondisk mmcblk0p --fstype=ext4 --label=system-data --extoptions="-m 0" -part /mnt/initrd --size=8 --ondisk mmcblk0p --fstype=ext4 --label=ramdisk --extoptions="-b 1024 -O ^has_journal" +part /mnt/initrd --size=14 --ondisk mmcblk0p --fstype=squashfs --label=ramdisk --extoptions="-b 1024 -O ^has_journal" part /mnt/initrd-recovery --size=32 --ondisk mmcblk0p --fstype=ext4 --label=ramdisk-recovery --extoptions="-b 1024 -O ^has_journal" diff --git a/partitions/btrfs-rootfs-3parts-ramdisk-recovery b/partitions/btrfs-rootfs-3parts-ramdisk-recovery index 09a147d..6c868ab 100644 --- a/partitions/btrfs-rootfs-3parts-ramdisk-recovery +++ b/partitions/btrfs-rootfs-3parts-ramdisk-recovery @@ -1,5 +1,5 @@ part / --fstype="btrfs" --size=1300 --ondisk=mmcblk0 --label rootfs --fsoptions=defaults,noatime,compress-force=lzo part /opt --fstype="ext4" --size=512 --ondisk=mmcblk0 --label system-data --fsoptions=defaults,noatime part /opt/usr --fstype="ext4" --size=3500 --ondisk=mmcblk0 --label user --fsoptions=defaults,noatime -part /mnt/initrd --size=8 --ondisk mmcblk0p --fstype=ext4 --label=ramdisk --extoptions="-b 1024 -O ^has_journal" +part /mnt/initrd --size=14 --ondisk mmcblk0p --fstype=squashfs --label=ramdisk --extoptions="-b 1024 -O ^has_journal" part /mnt/initrd-recovery --size=32 --ondisk mmcblk0p --fstype=ext4 --label=ramdisk-recovery --extoptions="-b 1024 -O ^has_journal" diff --git a/partitions/common-3parts-artik530_710-ramdisk-recovery b/partitions/common-3parts-artik530_710-ramdisk-recovery index d6414ff..d39128b 100644 --- a/partitions/common-3parts-artik530_710-ramdisk-recovery +++ b/partitions/common-3parts-artik530_710-ramdisk-recovery @@ -1,5 +1,5 @@ part / --fstype="ext4" --size=3500 --ondisk=mmcblk0 --label rootfs --fsoptions=defaults,noatime part /opt --fstype="ext4" --size=512 --ondisk=mmcblk0 --label system-data --fsoptions=defaults,noatime part /opt/usr --fstype="ext4" --size=3500 --ondisk=mmcblk0 --label user --fsoptions=defaults,noatime -part /mnt/initrd --size=8 --ondisk mmcblk0p --fstype=ext4 --label=ramdisk --extoptions="-b 1024 -O ^has_journal" +part /mnt/initrd --size=14 --ondisk mmcblk0p --fstype=squashfs --label=ramdisk --extoptions="-b 1024 -O ^has_journal" part /mnt/initrd-recovery --size=12 --ondisk mmcblk0p --fstype=ext4 --label=ramdisk-recovery --extoptions="-b 1024 -O ^has_journal" diff --git a/partitions/common-3parts-ramdisk-recovery b/partitions/common-3parts-ramdisk-recovery index 5f87833..3786b96 100644 --- a/partitions/common-3parts-ramdisk-recovery +++ b/partitions/common-3parts-ramdisk-recovery @@ -1,5 +1,5 @@ part / --fstype="ext4" --size=3500 --ondisk=mmcblk0 --label rootfs --fsoptions=defaults,noatime part /opt --fstype="ext4" --size=512 --ondisk=mmcblk0 --label system-data --fsoptions=defaults,noatime part /opt/usr --fstype="ext4" --size=3500 --ondisk=mmcblk0 --label user --fsoptions=defaults,noatime -part /mnt/initrd --size=8 --ondisk mmcblk0p --fstype=ext4 --label=ramdisk --extoptions="-b 1024 -O ^has_journal" +part /mnt/initrd --size=14 --ondisk mmcblk0p --fstype=squashfs --label=ramdisk --extoptions="-b 1024 -O ^has_journal" part /mnt/initrd-recovery --size=32 --ondisk mmcblk0p --fstype=ext4 --label=ramdisk-recovery --extoptions="-b 1024 -O ^has_journal" -- cgit v1.2.3