diff mbox series

[meta-ti,master/kirkstone,v2] conf: machine: k3: Use ARM64 kernel load address in FIT

Message ID 20230705220737.3951895-1-afd@ti.com
State Accepted
Delegated to: Ryan Eatmon
Headers show
Series [meta-ti,master/kirkstone,v2] conf: machine: k3: Use ARM64 kernel load address in FIT | expand

Commit Message

Andrew Davis July 5, 2023, 10:07 p.m. UTC
The address 0x80008000 was used in pre-K3 devices. ARM64 requires the
kernel loaded to a 2MB aligned address when not using KASLR. For FIT
set the address to 0x81000000 which gives the kernel 32MB before running
into the FDT at 0x83000000.

If you get this error someday then your kernel is too large and either it
or FDT needs relocated in memory:
    ERROR: image is not a fdt - must RESET the board to recover.

Signed-off-by: Andrew Davis <afd@ti.com>
Tested-by: Praneeth Bajjuri <praneeth@ti.com>
---

Changes from v1:
 - Use 0x81000000 to allow more space for the kernel image

 meta-ti-bsp/conf/machine/include/k3.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta-ti-bsp/conf/machine/include/k3.inc b/meta-ti-bsp/conf/machine/include/k3.inc
index 494c667e..8f6f4014 100644
--- a/meta-ti-bsp/conf/machine/include/k3.inc
+++ b/meta-ti-bsp/conf/machine/include/k3.inc
@@ -19,8 +19,8 @@  KERNEL_IMAGETYPES = "Image fitImage"
 KERNEL_CLASSES += "kernel-fitimage"
 
 UBOOT_ARCH = "arm"
-UBOOT_ENTRYPOINT = "0x80008000"
-UBOOT_LOADADDRESS = "0x80008000"
+UBOOT_ENTRYPOINT = "0x81000000"
+UBOOT_LOADADDRESS = "0x81000000"
 UBOOT_RD_LOADADDRESS = "0x84000000"
 UBOOT_RD_ENTRYPOINT = "0x84000000"
 UBOOT_DTB_LOADADDRESS = "0x83000000"