summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Zhizhikin <andrey.z@gmail.com>2020-12-18 11:06:16 +0000
committerOtavio Salvador <otavio@ossystems.com.br>2021-05-04 14:07:09 -0300
commit542ed8136611eeffda5cde475ec2abf32cda0c71 (patch)
treee05ba9b62ef4c0939371a8c1079f67f8effe9466
parent8bb147f9396d8fbe9385b41511d7f88163cf5149 (diff)
downloadmeta-freescale-542ed8136611eeffda5cde475ec2abf32cda0c71.tar.gz
wic: add new wks file to use boot container for mx8m
Add new WKS template file, which uses the boot container provided by mainline U-Boot. Boot container built as a part of U-Boot packs binary components into two separate files, namely 'flash.bin' and 'u-boot.itb'. First file contains SPL, while second one represents the FIT image containing U-Boot and ATF blob. Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
-rw-r--r--wic/imx-boot-container-bootpart.wks.in27
1 files changed, 27 insertions, 0 deletions
diff --git a/wic/imx-boot-container-bootpart.wks.in b/wic/imx-boot-container-bootpart.wks.in
new file mode 100644
index 00000000..88679a68
--- /dev/null
+++ b/wic/imx-boot-container-bootpart.wks.in
@@ -0,0 +1,27 @@
1# short-description: Create SD card image with a boot partition for i.MX8M
2# long-description:
3# Create an image that can be written onto a SD card using dd for use
4# with i.MX8M SoC family
5# It uses binary boot container called flash.bin provided directly by
6# the U-Boot recipe, and U-Boot ITB files which is created by binman utility
7# of U-Boot.
8# Those files are added it into the boot partition, which is populated as a
9# raw copy into the image.
10# Boot container prepared by U-Boot already container SPL, U-Boot itself,
11# U-Boot DTB file, ATF, and optional OP-TEE components.
12#
13# The disk layout used is:
14# - ----------- -------------- ----------------------------
15# | | flash.bin | u-boot.itb | boot | rootfs |
16# - ----------- -------------- ----------------------------
17# ^ ^ ^ ^ ^ ^
18# | | | | | |
19# 0 | 384KiB 8MiB 72MiB 72MiB + rootfs + IMAGE_EXTRA_SPACE (default 10MiB)
20# ${IMX_BOOT_SEEK} 32 or 33kiB, see reference manual
21#
22part u-boot --source rawcopy --sourceparams="file=flash.bin" --ondisk mmcblk --no-table --align ${IMX_BOOT_SEEK}
23part u-boot-itb --source rawcopy --sourceparams="file=u-boot.itb" --ondisk mmcblk --no-table --align 384
24part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 8192 --size 64
25part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 8192
26
27bootloader --ptable msdos