[meta-arm,6/7] arm-bsp/wic: Introduce WIC support for sgi575

Submitted by Prabin CA on Aug. 10, 2020, 5:32 p.m. | Patch ID: 175203

Details

Message ID 20200810173216.10411-6-prabin.ca@arm.com
State New
Headers show

Commit Message

Prabin CA Aug. 10, 2020, 5:32 p.m.
- Add custom wks script for SGI575.
            - Add grub.cfg for SGI575
            - Add documentation for sgi575

Change-Id: I9d371426a1bd75b49f6fbc89e2f2c255d4b8c0ac
Signed-off-by: Prabin CA <prabin.ca@arm.com>
---
 meta-arm-bsp/conf/machine/sgi575.conf |  5 ++++-
 meta-arm-bsp/wic/sgi575-efidisk.wks   | 11 +++++++++++
 meta-arm-bsp/wic/sgi575-grub.cfg      |  9 +++++++++
 3 files changed, 24 insertions(+), 1 deletion(-)
 create mode 100644 meta-arm-bsp/wic/sgi575-efidisk.wks
 create mode 100644 meta-arm-bsp/wic/sgi575-grub.cfg

Patch hide | download patch | download mbox

diff --git a/meta-arm-bsp/conf/machine/sgi575.conf b/meta-arm-bsp/conf/machine/sgi575.conf
index a2e13be..f8ad7a0 100644
--- a/meta-arm-bsp/conf/machine/sgi575.conf
+++ b/meta-arm-bsp/conf/machine/sgi575.conf
@@ -26,4 +26,7 @@  SERIAL_CONSOLES = "115200;ttyAMA0"
 EFI_PROVIDER ?= "grub-efi"
 MACHINE_FEATURES += "efi"
 
-IMAGE_FSTYPES += "cpio.gz"
+IMAGE_FSTYPES += "cpio.gz wic"
+
+WKS_FILE ?= "sgi575-efidisk.wks"
+WKS_FILE_DEPENDS_append = " ${EXTRA_IMAGEDEPENDS}"
diff --git a/meta-arm-bsp/wic/sgi575-efidisk.wks b/meta-arm-bsp/wic/sgi575-efidisk.wks
new file mode 100644
index 0000000..d4c79d3
--- /dev/null
+++ b/meta-arm-bsp/wic/sgi575-efidisk.wks
@@ -0,0 +1,11 @@ 
+# short-description: Create an EFI disk image
+# long-description: Creates a partitioned EFI disk image that the user
+# can directly dd to boot media. Uses a custom grub.cfg file to configure the boot.
+
+part /boot --source bootimg-efi --sourceparams="loader=grub-efi" --ondisk sda --label msdos --active --align 1024
+
+part / --source rootfs --ondisk sda --fstype=ext4 --label root --align 1024 --uuid=9c53a91b-e182-4ff1-aeac-6ee2c432ae94
+
+part swap --ondisk sda --size 44 --label swap1 --fstype=swap
+
+bootloader --ptable gpt --configfile="sgi575-grub.cfg" --timeout=5
diff --git a/meta-arm-bsp/wic/sgi575-grub.cfg b/meta-arm-bsp/wic/sgi575-grub.cfg
new file mode 100644
index 0000000..a176389
--- /dev/null
+++ b/meta-arm-bsp/wic/sgi575-grub.cfg
@@ -0,0 +1,9 @@ 
+set debug="loader,mm"
+set term="vt100"
+set default="0"
+set timeout="1"
+
+menuentry 'Arm reference image boot on sgi575' {
+        linux /Image acpi=force console=ttyAMA0,115200 ip=dhcp root=PARTUUID=9c53a91b-e182-4ff1-aeac-6ee2c432ae94 rootwait verbose debug
+}
+