summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Krummenacher <max.oss.09@gmail.com>2019-01-28 16:05:50 +0100
committerOtavio Salvador <otavio@ossystems.com.br>2019-02-27 15:29:52 -0300
commit161cc22724169fa407a3c037295acc555f945849 (patch)
tree405b65c3faebbad35149e431ad258c76814cb317
parent88f9ce2b2e3ed8be7ef666985151f9eacfc64e9f (diff)
downloadmeta-freescale-161cc22724169fa407a3c037295acc555f945849.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>
-rw-r--r--conf/machine/include/imx-base.inc2
-rw-r--r--wic/imx-imx-boot-bootpart.wks.in (renamed from wic/imx-imx-boot-bootpart.wks)5
2 files changed, 4 insertions, 3 deletions
diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc
index 32c83e91..92959ee2 100644
--- a/conf/machine/include/imx-base.inc
+++ b/conf/machine/include/imx-base.inc
@@ -305,7 +305,7 @@ WKS_FILE_DEPENDS ?= " \
305WKS_FILE_DEPENDS_mx8 += "imx-boot" 305WKS_FILE_DEPENDS_mx8 += "imx-boot"
306 306
307SOC_DEFAULT_WKS_FILE ?= "imx-uboot-bootpart.wks" 307SOC_DEFAULT_WKS_FILE ?= "imx-uboot-bootpart.wks"
308SOC_DEFAULT_WKS_FILE_mx8 ?= "imx-imx-boot-bootpart.wks" 308SOC_DEFAULT_WKS_FILE_mx8 ?= "imx-imx-boot-bootpart.wks.in"
309SOC_DEFAULT_WKS_FILE_mxs ?= "imx-uboot-mxs-bootpart.wks.in" 309SOC_DEFAULT_WKS_FILE_mxs ?= "imx-uboot-mxs-bootpart.wks.in"
310 310
311WKS_FILE ?= "${SOC_DEFAULT_WKS_FILE}" 311WKS_FILE ?= "${SOC_DEFAULT_WKS_FILE}"
diff --git a/wic/imx-imx-boot-bootpart.wks b/wic/imx-imx-boot-bootpart.wks.in
index 11b90492..601b9340 100644
--- a/wic/imx-imx-boot-bootpart.wks
+++ b/wic/imx-imx-boot-bootpart.wks.in
@@ -10,9 +10,10 @@
10# - ---------- -------------- -------------- 10# - ---------- -------------- --------------
11# ^ ^ ^ ^ 11# ^ ^ ^ ^
12# | | | | 12# | | | |
13# 0 33kiB 4MiB 16MiB + rootfs + IMAGE_EXTRA_SPACE (default 10MiB) 13# 0 | 4MiB 16MiB + rootfs + IMAGE_EXTRA_SPACE (default 10MiB)
14# ${IMX_BOOT_SEEK} 32 or 33kiB, see reference manual
14# 15#
15part u-boot --source rawcopy --sourceparams="file=imx-boot" --ondisk mmcblk --no-table --align 33 16part u-boot --source rawcopy --sourceparams="file=imx-boot" --ondisk mmcblk --no-table --align ${IMX_BOOT_SEEK}
16part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 4096 --size 16 17part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 4096 --size 16
17part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4096 18part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4096
18 19