diff options
-rw-r--r-- | conf/machine/cl-som-imx7.conf | 1 | ||||
-rw-r--r-- | wic/cl-som-imx7.wks | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/conf/machine/cl-som-imx7.conf b/conf/machine/cl-som-imx7.conf index c1539a2..8c80203 100644 --- a/conf/machine/cl-som-imx7.conf +++ b/conf/machine/cl-som-imx7.conf @@ -36,4 +36,5 @@ MACHINE_FIRMWARE += " \ linux-firmware-iwlwifi-6000g2b-6 \ " +SOC_DEFAULT_WKS_FILE = "cl-som-imx7.wks" IMAGE_FSTYPES = "tar.bz2 ext4 wic.gz" 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 |