meta-evb: meta-evb-arm: Add new board FVP Base Board
This layer contains a reference implementation of OpenBMC for
Armv-A Base RevC AEM FVP.
Tested:
- Build success
- booted to bmc kernel shell
Change-Id: Ie1b100a78232fb986377e3b58d637b97bbf64f42
Signed-off-by: Lean Sheng Tan <sheng.tan@9elements.com>
diff --git a/meta-evb/meta-evb-arm/meta-evb-fvp-base/wic/emmc-fvp.wks.in b/meta-evb/meta-evb-arm/meta-evb-fvp-base/wic/emmc-fvp.wks.in
new file mode 100644
index 0000000..93ae7f6
--- /dev/null
+++ b/meta-evb/meta-evb-arm/meta-evb-fvp-base/wic/emmc-fvp.wks.in
@@ -0,0 +1,30 @@
+# short-description: Create an image for eMMC
+# long-description: Creates an eMMC card image for the User Data Area that can
+# be used with the Arm Base FVP.
+#
+# Assumes a minimum flash size of 16GB.
+# Assumes U-Boot is stored elsewhere, such as an eMMC boot volume or NOR flash.
+#
+# --- - ----- -------- -------- -------- -------- ------ -------- -------
+# |GPT| | env | boot-a | boot-b | rofs-a | rofs-b | rwfs | hostfw |GPT-sec|
+# --- - ----- -------- -------- -------- -------- ------ -------- -------
+# ^ 1MB 64MB 64MB 1GB 1GB 7GB 5GB
+# |
+# 0x5000
+#
+# Primary GPT size (Beginning of image):
+# 512B (Protective MBR) + 512B (Primary Header) + 16KB (Primary Table)
+# First partition (u-boot-env) is 4K-aligned, which puts it at offset 0x5000
+#
+# Secondary GPT size (End of image):
+# 16KB (Secondary Table) + 512B (Secondary Header)
+
+bootloader --ptable gpt
+
+part --align 4 --fixed-size 1M
+part --fstype=ext4 --fixed-size 64M --source bootimg-partition --label boot-a
+part --fstype=ext4 --fixed-size 64M --source bootimg-partition --label boot-b
+part --fstype=ext4 --fixed-size 1G --source rootfs --label rofs-a
+part --fstype=ext4 --fixed-size 1G --source rootfs --label rofs-b
+part --fstype=ext4 --fixed-size 7G --label rwfs
+#part --fstype=ext4 --fixed-size ${WKS_HOSTFW_SIZE} --source rootfs --rootfs-dir=${DEPLOY_DIR_IMAGE}/hostfw/image/ --label hostfw