From a0b3c0a85235949963caf0e884f54d1f9b60b5e7 Mon Sep 17 00:00:00 2001 From: Ricardo Salveti Date: Wed, 18 Oct 2017 17:04:46 -0200 Subject: 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 --- wic/cl-som-imx7.wks | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 wic/cl-som-imx7.wks (limited to 'wic') 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 -- cgit v1.2.3