From fa8c8584c4265e1b1004198564d364b5b195f974 Mon Sep 17 00:00:00 2001 From: Ricardo Salveti Date: Wed, 24 Jul 2019 17:55:41 -0300 Subject: [PATCH] wic: add freedom-u540 wic for sota/ostree Wic file to be used with sota/ostree (meta-updater), as the source for root needs to be provided by the otaimage plugin. It can be maintained outside this layer, but having it maintained at the official meta-riscv layer makes it a lot easier for users experimenting with meta-updater. Signed-off-by: Ricardo Salveti --- wic/freedom-u540-opensbi-sota.wks | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 wic/freedom-u540-opensbi-sota.wks diff --git a/wic/freedom-u540-opensbi-sota.wks b/wic/freedom-u540-opensbi-sota.wks new file mode 100644 index 0000000..b0d51cf --- /dev/null +++ b/wic/freedom-u540-opensbi-sota.wks @@ -0,0 +1,7 @@ +# short-description: Create SD card image based on OSTree/OTA+ for HiFive Unleashed development board + +part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --size=100M --align 4096 +part opensbi --source rawcopy --sourceparams="file=fw_payload.bin" --ondisk mmcblk0 --size 32M --align 1 --part-type 2e54b353-1271-4842-806f-e436d6af6985 +part / --source otaimage --ondisk mmcblk0 --fstype=ext4 --align 4096 + +bootloader --ptable gpt