diff options
| author | Joris Offouga <offougajoris@gmail.com> | 2019-07-11 07:43:07 +0200 |
|---|---|---|
| committer | Otavio Salvador <otavio@ossystems.com.br> | 2019-07-11 09:59:17 -0300 |
| commit | 6be9d197386b5c3bd72023981df805d42f87684c (patch) | |
| tree | 4f9be603fe9a5a524a7ab012439675fbaeea7bcf /wic/imx-uboot-spl.wks.in | |
| parent | b45f35d42655c2074f0db7c2bf6a13679f8e869a (diff) | |
| download | meta-freescale-6be9d197386b5c3bd72023981df805d42f87684c.tar.gz | |
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 <offougajoris@gmail.com>
Diffstat (limited to 'wic/imx-uboot-spl.wks.in')
| -rw-r--r-- | wic/imx-uboot-spl.wks.in | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/wic/imx-uboot-spl.wks.in b/wic/imx-uboot-spl.wks.in new file mode 100644 index 000000000..db2f89ddb --- /dev/null +++ b/wic/imx-uboot-spl.wks.in | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | # short-description: Create SD card image with a boot partition | ||
| 2 | # long-description: | ||
| 3 | # Create an image that can be written onto a SD card using dd for use | ||
| 4 | # with i.MX SoC family. | ||
| 5 | # It uses SPL and u-boot | ||
| 6 | # | ||
| 7 | # The disk layout used is: | ||
| 8 | # - ----- --------- -------------- | ||
| 9 | # | | SPL | u-boot | rootfs | | ||
| 10 | # - ----- --------- -------------- | ||
| 11 | # ^ ^ ^ ^ ^ | ||
| 12 | # | | | | | | ||
| 13 | # 0 1kiB 69kiB 4MiB + rootfs + IMAGE_EXTRA_SPACE (default 10MiB) | ||
| 14 | # | ||
| 15 | part SPL --source rawcopy --sourceparams="file=SPL" --ondisk mmcblk --no-table --align 1 | ||
| 16 | part u-boot --source rawcopy --sourceparams="file=${UBOOT_BINARY}" --ondisk mmcblk --no-table --align 69 | ||
| 17 | part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4096 | ||
| 18 | |||
| 19 | bootloader --ptable msdos | ||
