From 6be9d197386b5c3bd72023981df805d42f87684c Mon Sep 17 00:00:00 2001 From: Joris Offouga Date: Thu, 11 Jul 2019 07:43:07 +0200 Subject: wic: Fix image generation for i.MX with SPL and U-Boot Some boards expects a specific binary name. Example : Pico i.MX7D required the u-boot-dtb.img file (instead of u-boot.img). Signed-off-by: Joris Offouga --- wic/imx-uboot-spl-bootpart.wks.in | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 wic/imx-uboot-spl-bootpart.wks.in (limited to 'wic/imx-uboot-spl-bootpart.wks.in') diff --git a/wic/imx-uboot-spl-bootpart.wks.in b/wic/imx-uboot-spl-bootpart.wks.in new file mode 100644 index 00000000..8062c51e --- /dev/null +++ b/wic/imx-uboot-spl-bootpart.wks.in @@ -0,0 +1,20 @@ +# 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 SPL and u-boot +# +# 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=${UBOOT_BINARY}" --ondisk mmcblk --no-table --align 69 +part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 4096 --size 16 +part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4096 + +bootloader --ptable msdos -- cgit v1.2.3-54-g00ecf