diff options
author | Ricardo Salveti <ricardo@opensourcefoundries.com> | 2017-10-18 17:04:46 -0200 |
---|---|---|
committer | Ricardo Salveti <ricardo@opensourcefoundries.com> | 2017-10-18 17:17:20 -0200 |
commit | a0b3c0a85235949963caf0e884f54d1f9b60b5e7 (patch) | |
tree | 6734294d44a4c7922ebc7449d4e88debc6bb9651 | |
parent | 371f034638691fe2942adedd2a49d7682dcc254b (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>
-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 |