diff options
-rw-r--r-- | wic/imx-boot-container-bootpart.wks.in | 27 |
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 | # | ||
22 | part u-boot --source rawcopy --sourceparams="file=flash.bin" --ondisk mmcblk --no-table --align ${IMX_BOOT_SEEK} | ||
23 | part u-boot-itb --source rawcopy --sourceparams="file=u-boot.itb" --ondisk mmcblk --no-table --align 384 | ||
24 | part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 8192 --size 64 | ||
25 | part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 8192 | ||
26 | |||
27 | bootloader --ptable msdos | ||