summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2024-03-01 18:19:31 +0100
committerJaehoon Chung <jh80.chung@samsung.com>2024-07-09 08:08:29 +0900
commit6215b53e24157b9042629db3cd2ec0bc463747c0 (patch)
tree4e46c1783e2cd0f15aa65807aa83249fa67c709b
parent9fe0903f6dc285f999ab5b19e4aef9d4e1175e24 (diff)
downloadmeta-accepted/tizen/unified/dev/20240710.032413.tar.gz
meta-accepted/tizen/unified/dev/20240710.032413.tar.bz2
meta-accepted/tizen/unified/dev/20240710.032413.zip
Initrd-style booting is deprecated since Linux kernel commit 9acc17baf1fd ("initrd: mark initrd support as deprecated") included in v5.9 release. Since commit ff26956875c2 ("brd: remove support for BLKFLSBUF") included in Linux kernel v4.10 it is no longer possible to free the memory occupied by the initrd. Switch Tizen ramdisk images to initramfs format (cpio.gz based) to comply with the new approach of starting Linux based systems. During build arm64 on QB, ramdisk-recovery is failed because of no space issue. - It's a strange issue, so increase the ramdisk-recovery size from 32MB to 64MB. Change-Id: I67ab60d95b751958f7a42f088047b8f289c58bc5 Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
-rw-r--r--partitions/btrfs-rootfs-2parts-ramdisk-recovery4
-rw-r--r--partitions/common-2parts-ramdisk-recovery4
-rw-r--r--partitions/common-3parts-ramdisk2
-rw-r--r--partitions/common-3parts-ramdisk-recovery4
4 files changed, 7 insertions, 7 deletions
diff --git a/partitions/btrfs-rootfs-2parts-ramdisk-recovery b/partitions/btrfs-rootfs-2parts-ramdisk-recovery
index 7f9bfae..1f71b27 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=32 --ondisk mmcblk0p --fstype=ext4 --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"
+part /mnt/initrd --size=32 --ondisk mmcblk0p --fstype=cpio --label=ramdisk --cpiooptions="--format=newc"
+part /mnt/initrd-recovery --size=64 --ondisk mmcblk0p --fstype=cpio --label=ramdisk-recovery --cpiooptions="--format=newc"
diff --git a/partitions/common-2parts-ramdisk-recovery b/partitions/common-2parts-ramdisk-recovery
index 85c2748..e4c1e24 100644
--- a/partitions/common-2parts-ramdisk-recovery
+++ b/partitions/common-2parts-ramdisk-recovery
@@ -1,4 +1,4 @@
part / --size=1024 --ondisk mmcblk0p --fstype=ext4 --label=rootfs --extoptions="-J size=16"
part /opt/ --size=512 --ondisk mmcblk0p --fstype=ext4 --label=system-data --extoptions="-m 0"
-part /mnt/initrd --size=32 --ondisk mmcblk0p --fstype=ext4 --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"
+part /mnt/initrd --size=32 --ondisk mmcblk0p --fstype=cpio --label=ramdisk --cpiooptions="--format=newc"
+part /mnt/initrd-recovery --size=64 --ondisk mmcblk0p --fstype=cpio --label=ramdisk-recovery --cpiooptions="--format=newc"
diff --git a/partitions/common-3parts-ramdisk b/partitions/common-3parts-ramdisk
index fd3d2ba..233af0e 100644
--- a/partitions/common-3parts-ramdisk
+++ b/partitions/common-3parts-ramdisk
@@ -1,4 +1,4 @@
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=8 --ondisk mmcblk0p --fstype=cpio --label=ramdisk --cpiooptions="--format=newc"
diff --git a/partitions/common-3parts-ramdisk-recovery b/partitions/common-3parts-ramdisk-recovery
index 3ffd01a..5180726 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="f2fs" --size=500 --ondisk=mmcblk0 --label user --fsoptions=defaults,noatime
-part /mnt/initrd --size=32 --ondisk mmcblk0p --fstype=ext4 --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"
+part /mnt/initrd --size=32 --ondisk mmcblk0p --fstype=cpio --label=ramdisk --cpiooptions="--format=newc"
+part /mnt/initrd-recovery --size=64 --ondisk mmcblk0p --fstype=cpio --label=ramdisk-recovery --cpiooptions="--format=newc"