All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] arm-bsp/fvp-base*: Introduce WIC support for fvp-base* machines
@ 2021-06-21 15:59 Kamil Dziezyk
  2021-06-21 15:59 ` [PATCH 2/2] arm-autonomy/fvp-base: Make usage of wic images Kamil Dziezyk
  0 siblings, 1 reply; 2+ messages in thread
From: Kamil Dziezyk @ 2021-06-21 15:59 UTC (permalink / raw)
  To: meta-arm; +Cc: nd

Add wks script that contains two partitions.
Rootfs is populated to second partition, because the first one is empty,
to keep compatibility with image_types_disk_img.bbclass
and use the same root device set in u-boot bootargs parameter.

Both wic and disk.img files are built by default.

Issue-Id: SCM-2698
Signed-off-by: Kamil Dziezyk <kamil.dziezyk@arm.com>
Change-Id: Ib5b5c3a7aa6e8fe9fa90a2955ae1e461caa01356
---
 meta-arm-bsp/conf/machine/fvp-common.inc | 4 +++-
 meta-arm-bsp/wic/fvp-base.wks            | 6 ++++++
 2 files changed, 9 insertions(+), 1 deletion(-)
 create mode 100644 meta-arm-bsp/wic/fvp-base.wks

diff --git a/meta-arm-bsp/conf/machine/fvp-common.inc b/meta-arm-bsp/conf/machine/fvp-common.inc
index c4a5f6b..ddf6b1c 100644
--- a/meta-arm-bsp/conf/machine/fvp-common.inc
+++ b/meta-arm-bsp/conf/machine/fvp-common.inc
@@ -8,7 +8,9 @@
 MACHINE_FEATURES = "optee"
 
 IMAGE_CLASSES += "image_types_disk_img"
-IMAGE_FSTYPES += "disk.img"
+IMAGE_FSTYPES += "disk.img wic"
+
+WKS_FILE ?= "fvp-base.wks"
 
 # Disk image configuration
 # We don't use the first partition
diff --git a/meta-arm-bsp/wic/fvp-base.wks b/meta-arm-bsp/wic/fvp-base.wks
new file mode 100644
index 0000000..ef08c81
--- /dev/null
+++ b/meta-arm-bsp/wic/fvp-base.wks
@@ -0,0 +1,6 @@
+# For fvp-base* machines we just need to populate the rootfs partition
+# but to keep backwards compatibility with disk.img,
+# we need to create first partition empty
+
+part --label empty --source empty --ondisk sda --size="1M" --system-id 8e --align 1024
+part / --source rootfs --ondisk sda --fstype=ext4 --label root --size="2048"
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-21 16:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-21 15:59 [PATCH 1/2] arm-bsp/fvp-base*: Introduce WIC support for fvp-base* machines Kamil Dziezyk
2021-06-21 15:59 ` [PATCH 2/2] arm-autonomy/fvp-base: Make usage of wic images Kamil Dziezyk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.