summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classes/lmp-machine-custom.bbclass5
-rw-r--r--wic/freedom-u540-bbl-sota.wks6
2 files changed, 11 insertions, 0 deletions
diff --git a/classes/lmp-machine-custom.bbclass b/classes/lmp-machine-custom.bbclass
index 9fb416e..f26d57b 100644
--- a/classes/lmp-machine-custom.bbclass
+++ b/classes/lmp-machine-custom.bbclass
@@ -51,6 +51,11 @@ IMAGE_FSTYPES_remove_qemuriscv64 = "wic.gz wic.bmap"
INITRAMFS_IMAGE_BUNDLE_qemuriscv64 = "1"
KERNEL_INITRAMFS_qemuriscv64 = '-initramfs'
RISCV_BBL_PAYLOAD_qemuriscv64 = "${KERNEL_IMAGETYPE}${KERNEL_INITRAMFS}-${MACHINE}.bin"
+## Freedom U540 target doesn't yet support standard bootloaders (e.g. u-boot)
+INITRAMFS_IMAGE_BUNDLE_freedom-u540 = "1"
+KERNEL_INITRAMFS_freedom-u540 = '-initramfs'
+RISCV_BBL_PAYLOAD_freedom-u540 = "${KERNEL_IMAGETYPE}${KERNEL_INITRAMFS}-${MACHINE}.bin"
+WKS_FILE_sota_freedom-u540 = "freedom-u540-bbl-sota.wks"
# Intel
IMAGE_INSTALL_remove_intel-corei7-64 = " minnowboard-efi-startup"
diff --git a/wic/freedom-u540-bbl-sota.wks b/wic/freedom-u540-bbl-sota.wks
new file mode 100644
index 0000000..b4e9eba
--- /dev/null
+++ b/wic/freedom-u540-bbl-sota.wks
@@ -0,0 +1,6 @@
+# short-description: Create OTA-enabled SD card image for RISC-V boards that depends on BBL
+
+part bbl --source rawcopy --sourceparams="file=bbl.bin" --ondisk mmcblk --align 1 --part-type 2e54b353-1271-4842-806f-e436d6af6985
+part / --source otaimage --ondisk mmcblk --fstype=ext4 --align 4096
+
+bootloader --ptable gpt