summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Salveti <ricardo@opensourcefoundries.com>2018-02-28 19:11:25 -0300
committerRicardo Salveti <ricardo@opensourcefoundries.com>2018-03-27 22:10:35 -0300
commitec91fc4932572c930c13502a1aaf42814b2985fe (patch)
treed957b3d07af7e80458745af89748f1d34ea5bf70
parent10821014986e4d563b679c6b541881a894e62931 (diff)
Add sdimage-imx6-spl-sota.wks
OTA-enabled SD card image for iMX6 devices, which requires both SPL and u-boot flashed in a specific offset. Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
-rw-r--r--wic/sdimage-imx6-spl-sota.wks19
1 files changed, 19 insertions, 0 deletions
diff --git a/wic/sdimage-imx6-spl-sota.wks b/wic/sdimage-imx6-spl-sota.wks
new file mode 100644
index 0000000..d8978ba
--- /dev/null
+++ b/wic/sdimage-imx6-spl-sota.wks
@@ -0,0 +1,19 @@
+# short-description: Create OTA-enabled SD card image with a boot partition
+# long-description: Creates a partitioned SD card image with OSTree
+# physical sysroot as a payload. Boot files are located in the
+# first vfat partition.
+#
+# The disk layout used is:
+# - ----- --------- -------------- --------------
+# | | SPL | u-boot | boot | rootfs |
+# - ----- --------- -------------- --------------
+# ^ ^ ^ ^ ^
+# | | | | |
+# 0 1kiB 69kiB 4MiB 16MiB + rootfs + IMAGE_EXTRA_SPACE (default 10MiB)
+#
+part SPL --source rawcopy --sourceparams="file=SPL" --ondisk mmcblk --no-table --align 1
+part u-boot --source rawcopy --sourceparams="file=u-boot.img" --ondisk mmcblk --no-table --align 69
+part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 4096 --size 16
+part / --source otaimage --ondisk mmcblk --fstype=ext4 --align 4096
+
+bootloader --ptable msdos