diff options
author | Anshul Dalal <anshuld@ti.com> | 2025-06-27 11:34:13 +0530 |
---|---|---|
committer | Ryan Eatmon <reatmon@ti.com> | 2025-06-27 10:02:14 -0500 |
commit | bef9e655eb478133697ac0c594cefdfe57b17f2f (patch) | |
tree | 4f896fa300e4a9f56a40937b7b58a9d7f5db5e64 | |
parent | c60597a29e82af04ad38e1eee1b6e12590996666 (diff) | |
download | meta-ti-bef9e655eb478133697ac0c594cefdfe57b17f2f.tar.gz |
conf: machine: k3: update fitImage load address
In yocto, the UBOOT_ENTRYPOINT and UBOOT_*LOADADDRESS variables specify
the entry point and load addresses for the kernel image and the DTB when
creating the fitImage[1].
Currently the load address for the kernel is set to 0x81000000 and
0x83000000 for the DTB for all k3 platforms.
However the region 0x80080000 to 0x81880000 is reserved for OPTEE on
am62xxsip-evm, leading to boot failure[2] when using the fitImage.
This patch fixes the issue by changing the addresses to 0x82000000 for
kernel and 0x88000000 for the DTB. This also allows us to load kernel
images > 32MiB in size when not using initrd while also making the
falcon and standard boot addresses consistent.
[1]:
https://docs.yoctoproject.org/ref-manual/variables.html#term-UBOOT_ENTRYPOINT
[2]:
https://raw.githubusercontent.com/ArchUsr64/ti_boot_logs/HEAD/am62xxsip-evm/failures/fitImage_load_addr_issue.log
Signed-off-by: Anshul Dalal <anshuld@ti.com>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
-rw-r--r-- | meta-ti-bsp/conf/machine/include/k3.inc | 8 | ||||
-rw-r--r-- | meta-ti-bsp/conf/machine/include/ti-falcon.inc | 2 |
2 files changed, 4 insertions, 6 deletions
diff --git a/meta-ti-bsp/conf/machine/include/k3.inc b/meta-ti-bsp/conf/machine/include/k3.inc index ec9a8944..3af292f8 100644 --- a/meta-ti-bsp/conf/machine/include/k3.inc +++ b/meta-ti-bsp/conf/machine/include/k3.inc | |||
@@ -13,12 +13,12 @@ KERNEL_IMAGETYPES = "Image fitImage" | |||
13 | KERNEL_CLASSES += "kernel-fitimage-deprecated" | 13 | KERNEL_CLASSES += "kernel-fitimage-deprecated" |
14 | 14 | ||
15 | UBOOT_ARCH = "arm" | 15 | UBOOT_ARCH = "arm" |
16 | UBOOT_ENTRYPOINT = "0x81000000" | 16 | UBOOT_ENTRYPOINT = "0x82000000" |
17 | UBOOT_LOADADDRESS = "0x81000000" | 17 | UBOOT_LOADADDRESS = "0x82000000" |
18 | UBOOT_RD_LOADADDRESS = "0x84000000" | 18 | UBOOT_RD_LOADADDRESS = "0x84000000" |
19 | UBOOT_RD_ENTRYPOINT = "0x84000000" | 19 | UBOOT_RD_ENTRYPOINT = "0x84000000" |
20 | UBOOT_DTB_LOADADDRESS = "0x83000000" | 20 | UBOOT_DTB_LOADADDRESS = "0x88000000" |
21 | UBOOT_DTBO_LOADADDRESS = "0x83080000" | 21 | UBOOT_DTBO_LOADADDRESS = "0x88080000" |
22 | UBOOT_DTBO_OFFSET = "0x00010000" | 22 | UBOOT_DTBO_OFFSET = "0x00010000" |
23 | 23 | ||
24 | SPL_BINARY = "tispl.bin" | 24 | SPL_BINARY = "tispl.bin" |
diff --git a/meta-ti-bsp/conf/machine/include/ti-falcon.inc b/meta-ti-bsp/conf/machine/include/ti-falcon.inc index 252fb28a..e436932e 100644 --- a/meta-ti-bsp/conf/machine/include/ti-falcon.inc +++ b/meta-ti-bsp/conf/machine/include/ti-falcon.inc | |||
@@ -1,6 +1,4 @@ | |||
1 | IMAGE_INSTALL:append = " u-boot-ti-staging-falcon" | 1 | IMAGE_INSTALL:append = " u-boot-ti-staging-falcon" |
2 | KERNEL_CLASSES:remove = "kernel-fitimage-deprecated" | 2 | KERNEL_CLASSES:remove = "kernel-fitimage-deprecated" |
3 | KERNEL_CLASSES += "kernel-fitimage-legacyhs" | 3 | KERNEL_CLASSES += "kernel-fitimage-legacyhs" |
4 | UBOOT_DTB_LOADADDRESS = "0x88000000" | ||
5 | UBOOT_LOADADDRESS = "0x82000000" | ||
6 | FIT_KERNEL_COMP_ALG = "none" | 4 | FIT_KERNEL_COMP_ALG = "none" |