summaryrefslogtreecommitdiffstats
path: root/wic/imx-imx-boot-bootpart.wks.in
diff options
context:
space:
mode:
authorMax Krummenacher <max.oss.09@gmail.com>2019-01-28 16:05:50 +0100
committerDaiane Angolini <daiane.angolini@nxp.com>2019-01-29 15:03:40 -0200
commit3083912e9a7209280d8e24f7c450fbcab60b6822 (patch)
tree6dfeff56af0a9724d54f4d63a95cf70ac0ac2f49 /wic/imx-imx-boot-bootpart.wks.in
parent95c1f9561b94ce3fadfa105a1773440898b5564b (diff)
downloadmeta-freescale-3083912e9a7209280d8e24f7c450fbcab60b6822.tar.gz
imx-imx-boot-bootpart.wks: change default offset of bootloader
The i.MX 8QXP bootrom in B0 silicon reads the 1st image container at offset 32k while tha A0 silicon started at 33k. The machine configurations already contain the variable IMX_BOOT_SEEK to specify the needed offset. Change the wks file accordingly. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'wic/imx-imx-boot-bootpart.wks.in')
-rw-r--r--wic/imx-imx-boot-bootpart.wks.in21
1 files changed, 21 insertions, 0 deletions
diff --git a/wic/imx-imx-boot-bootpart.wks.in b/wic/imx-imx-boot-bootpart.wks.in
new file mode 100644
index 00000000..601b9340
--- /dev/null
+++ b/wic/imx-imx-boot-bootpart.wks.in
@@ -0,0 +1,21 @@
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 u-boot + other binaries gathered together on imx-boot file
6#
7# The disk layout used is:
8# - ---------- -------------- --------------
9# | | imx-boot | boot | rootfs |
10# - ---------- -------------- --------------
11# ^ ^ ^ ^
12# | | | |
13# 0 | 4MiB 16MiB + rootfs + IMAGE_EXTRA_SPACE (default 10MiB)
14# ${IMX_BOOT_SEEK} 32 or 33kiB, see reference manual
15#
16part u-boot --source rawcopy --sourceparams="file=imx-boot" --ondisk mmcblk --no-table --align ${IMX_BOOT_SEEK}
17part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 4096 --size 16
18part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4096
19
20bootloader --ptable msdos
21