summaryrefslogtreecommitdiff
path: root/wic
diff options
context:
space:
mode:
authorRicardo Salveti <ricardo@opensourcefoundries.com>2017-10-18 17:04:46 -0200
committerRicardo Salveti <ricardo@opensourcefoundries.com>2017-10-18 17:17:20 -0200
commita0b3c0a85235949963caf0e884f54d1f9b60b5e7 (patch)
tree6734294d44a4c7922ebc7449d4e88debc6bb9651 /wic
parent371f034638691fe2942adedd2a49d7682dcc254b (diff)
cl-som-imx7: add default wks file
To be used by wic when creating the image file. Fixes https://git.foundries.io/development/microplatforms/linux/meta-osf/issues/1 Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
Diffstat (limited to 'wic')
-rw-r--r--wic/cl-som-imx7.wks19
1 files changed, 19 insertions, 0 deletions
diff --git a/wic/cl-som-imx7.wks b/wic/cl-som-imx7.wks
new file mode 100644
index 0000000..1575505
--- /dev/null
+++ b/wic/cl-som-imx7.wks
@@ -0,0 +1,19 @@
+# short-description: Create SD card image with a boot partition
+# long-description:
+# Create an image that can be written onto a SD card using dd for use
+# with i.MX SoC family
+# It uses u-boot
+#
+# The disk layout used is:
+# - --------- -------------- --------------
+# | | u-boot | boot | rootfs |
+# - --------- -------------- --------------
+# ^ ^ ^ ^
+# | | | |
+# 0 1kiB 4MiB 16MiB + rootfs + IMAGE_EXTRA_SPACE (default 10MiB)
+#
+part u-boot --source rawcopy --sourceparams="file=u-boot.imx" --ondisk mmcblk0 --no-table --align 1
+part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --align 4096 --size 16
+part / --source rootfs --ondisk mmcblk0 --fstype=ext4 --label root --align 4096
+
+bootloader --ptable msdos