* [PATCH v1 1/2] conf: machine: k3: update fitImage load address
@ 2025-06-27 6:04 Anshul Dalal
2025-06-27 6:04 ` [PATCH v1 2/2] conf: machine: move UBOOR_*ADDRESS to top level ti-soc Anshul Dalal
2025-06-27 6:06 ` [PATCH v1 1/2] conf: machine: k3: update fitImage load address Anshul Dalal
0 siblings, 2 replies; 6+ messages in thread
From: Anshul Dalal @ 2025-06-27 6:04 UTC (permalink / raw)
To: meta-ti; +Cc: Anshul Dalal, c-shilwant, reatmon, vigneshr, praneeth
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>
---
meta-ti-bsp/conf/machine/include/k3.inc | 8 ++++----
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 9b85f867..28785173 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"
KERNEL_CLASSES += "kernel-fitimage"
UBOOT_ARCH = "arm"
-UBOOT_ENTRYPOINT = "0x81000000"
-UBOOT_LOADADDRESS = "0x81000000"
+UBOOT_ENTRYPOINT = "0x82000000"
+UBOOT_LOADADDRESS = "0x82000000"
UBOOT_RD_LOADADDRESS = "0x84000000"
UBOOT_RD_ENTRYPOINT = "0x84000000"
-UBOOT_DTB_LOADADDRESS = "0x83000000"
-UBOOT_DTBO_LOADADDRESS = "0x83080000"
+UBOOT_DTB_LOADADDRESS = "0x88000000"
+UBOOT_DTBO_LOADADDRESS = "0x88080000"
UBOOT_DTBO_OFFSET = "0x00010000"
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 0b938470..84a62b22 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 @@
IMAGE_INSTALL:append = " u-boot-ti-staging-falcon"
KERNEL_CLASSES:remove = "kernel-fitimage"
KERNEL_CLASSES += "kernel-fitimage-legacyhs"
-UBOOT_DTB_LOADADDRESS = "0x88000000"
-UBOOT_LOADADDRESS = "0x82000000"
FIT_KERNEL_COMP_ALG = "none"
--
2.49.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v1 2/2] conf: machine: move UBOOR_*ADDRESS to top level ti-soc
2025-06-27 6:04 [PATCH v1 1/2] conf: machine: k3: update fitImage load address Anshul Dalal
@ 2025-06-27 6:04 ` Anshul Dalal
2025-06-27 14:32 ` Ryan Eatmon
2025-06-27 6:06 ` [PATCH v1 1/2] conf: machine: k3: update fitImage load address Anshul Dalal
1 sibling, 1 reply; 6+ messages in thread
From: Anshul Dalal @ 2025-06-27 6:04 UTC (permalink / raw)
To: meta-ti; +Cc: Anshul Dalal, c-shilwant, reatmon, vigneshr, praneeth
Since all k3 and legacy platforms share common load addresses for kernel
and initrd in the fitImage, move them to top level ti-soc.inc.
No functional change is intended from this patch.
Signed-off-by: Anshul Dalal <anshuld@ti.com>
---
meta-ti-bsp/conf/machine/am335x-hs-evm.conf | 5 -----
meta-ti-bsp/conf/machine/am437x-hs-evm.conf | 5 -----
meta-ti-bsp/conf/machine/am57xx-hs-evm.conf | 5 -----
meta-ti-bsp/conf/machine/dra7xx-hs-evm.conf | 5 -----
meta-ti-bsp/conf/machine/include/k3.inc | 4 ----
meta-ti-bsp/conf/machine/include/ti-soc.inc | 6 ++++++
6 files changed, 6 insertions(+), 24 deletions(-)
diff --git a/meta-ti-bsp/conf/machine/am335x-hs-evm.conf b/meta-ti-bsp/conf/machine/am335x-hs-evm.conf
index ca102961..652496c2 100644
--- a/meta-ti-bsp/conf/machine/am335x-hs-evm.conf
+++ b/meta-ti-bsp/conf/machine/am335x-hs-evm.conf
@@ -10,11 +10,6 @@ UBOOT_CONFIG ??= "uart mmc"
UBOOT_CONFIG[uart] = "am335x_hs_evm_uart_config"
UBOOT_CONFIG[mmc] = "am335x_hs_evm_config"
-UBOOT_ENTRYPOINT = "0x82000000"
-UBOOT_LOADADDRESS = "0x82000000"
-UBOOT_RD_LOADADDRESS = "0x84000000"
-UBOOT_RD_ENTRYPOINT = "0x84000000"
-
# FIT image for legacy secure devices
KERNEL_CLASSES += " kernel-fitimage-legacyhs"
KERNEL_IMAGETYPES += " fitImage"
diff --git a/meta-ti-bsp/conf/machine/am437x-hs-evm.conf b/meta-ti-bsp/conf/machine/am437x-hs-evm.conf
index 632b4995..fde38d39 100644
--- a/meta-ti-bsp/conf/machine/am437x-hs-evm.conf
+++ b/meta-ti-bsp/conf/machine/am437x-hs-evm.conf
@@ -6,11 +6,6 @@ require conf/machine/am437x-evm.conf
UBOOT_MACHINE = "am43xx_hs_evm_config"
-UBOOT_ENTRYPOINT = "0x82000000"
-UBOOT_LOADADDRESS = "0x82000000"
-UBOOT_RD_LOADADDRESS = "0x84000000"
-UBOOT_RD_ENTRYPOINT = "0x84000000"
-
OPTEEMACHINE = "ti-am43xx"
OPTEEFLAVOR = "am43xx"
diff --git a/meta-ti-bsp/conf/machine/am57xx-hs-evm.conf b/meta-ti-bsp/conf/machine/am57xx-hs-evm.conf
index 4f36a847..fcdc5c0b 100644
--- a/meta-ti-bsp/conf/machine/am57xx-hs-evm.conf
+++ b/meta-ti-bsp/conf/machine/am57xx-hs-evm.conf
@@ -6,11 +6,6 @@ require conf/machine/am57xx-evm.conf
UBOOT_MACHINE = "am57xx_hs_evm_config"
-UBOOT_ENTRYPOINT = "0x82000000"
-UBOOT_LOADADDRESS = "0x82000000"
-UBOOT_RD_LOADADDRESS = "0x84000000"
-UBOOT_RD_ENTRYPOINT = "0x84000000"
-
OPTEEMACHINE = "ti-am57xx"
OPTEEFLAVOR = "am57xx"
OPTEEPAGER = "y"
diff --git a/meta-ti-bsp/conf/machine/dra7xx-hs-evm.conf b/meta-ti-bsp/conf/machine/dra7xx-hs-evm.conf
index 8e57a154..37ffef31 100644
--- a/meta-ti-bsp/conf/machine/dra7xx-hs-evm.conf
+++ b/meta-ti-bsp/conf/machine/dra7xx-hs-evm.conf
@@ -6,11 +6,6 @@ require conf/machine/dra7xx-evm.conf
UBOOT_MACHINE = "dra7xx_hs_evm_config"
-UBOOT_ENTRYPOINT = "0x82000000"
-UBOOT_LOADADDRESS = "0x82000000"
-UBOOT_RD_LOADADDRESS = "0x84000000"
-UBOOT_RD_ENTRYPOINT = "0x84000000"
-
OPTEEMACHINE = "ti-dra7xx"
OPTEEFLAVOR = "dra7xx"
OPTEEPAGER = "y"
diff --git a/meta-ti-bsp/conf/machine/include/k3.inc b/meta-ti-bsp/conf/machine/include/k3.inc
index 28785173..feb5a543 100644
--- a/meta-ti-bsp/conf/machine/include/k3.inc
+++ b/meta-ti-bsp/conf/machine/include/k3.inc
@@ -13,10 +13,6 @@ KERNEL_IMAGETYPES = "Image fitImage"
KERNEL_CLASSES += "kernel-fitimage"
UBOOT_ARCH = "arm"
-UBOOT_ENTRYPOINT = "0x82000000"
-UBOOT_LOADADDRESS = "0x82000000"
-UBOOT_RD_LOADADDRESS = "0x84000000"
-UBOOT_RD_ENTRYPOINT = "0x84000000"
UBOOT_DTB_LOADADDRESS = "0x88000000"
UBOOT_DTBO_LOADADDRESS = "0x88080000"
UBOOT_DTBO_OFFSET = "0x00010000"
diff --git a/meta-ti-bsp/conf/machine/include/ti-soc.inc b/meta-ti-bsp/conf/machine/include/ti-soc.inc
index 5d77e719..5125856f 100644
--- a/meta-ti-bsp/conf/machine/include/ti-soc.inc
+++ b/meta-ti-bsp/conf/machine/include/ti-soc.inc
@@ -3,6 +3,12 @@
SOC_FAMILY = "ti-soc"
require conf/machine/include/soc-family.inc
+# kernel, initrd load addresses for the fitImage in all TI platforms
+UBOOT_ENTRYPOINT = "0x82000000"
+UBOOT_LOADADDRESS = "0x82000000"
+UBOOT_RD_LOADADDRESS = "0x84000000"
+UBOOT_RD_ENTRYPOINT = "0x84000000"
+
# TI platforms all use devicetrees with overlays
MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree"
KERNEL_DTB_OVERLAY_SUPPORT ?= "1"
--
2.49.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v1 1/2] conf: machine: k3: update fitImage load address
2025-06-27 6:04 [PATCH v1 1/2] conf: machine: k3: update fitImage load address Anshul Dalal
2025-06-27 6:04 ` [PATCH v1 2/2] conf: machine: move UBOOR_*ADDRESS to top level ti-soc Anshul Dalal
@ 2025-06-27 6:06 ` Anshul Dalal
1 sibling, 0 replies; 6+ messages in thread
From: Anshul Dalal @ 2025-06-27 6:06 UTC (permalink / raw)
To: Anshul Dalal, meta-ti; +Cc: c-shilwant, reatmon, vigneshr, praneeth
On Fri Jun 27, 2025 at 11:34 AM IST, Anshul Dalal wrote:
> 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>
> ---
Sorry I forgot to add prefix in the subject, this patch set is meant for
scarthgap-next.
Regards,
Anshul
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v1 2/2] conf: machine: move UBOOR_*ADDRESS to top level ti-soc
2025-06-27 6:04 ` [PATCH v1 2/2] conf: machine: move UBOOR_*ADDRESS to top level ti-soc Anshul Dalal
@ 2025-06-27 14:32 ` Ryan Eatmon
2025-06-27 14:39 ` Anshul Dalal
0 siblings, 1 reply; 6+ messages in thread
From: Ryan Eatmon @ 2025-06-27 14:32 UTC (permalink / raw)
To: Anshul Dalal, meta-ti; +Cc: c-shilwant, vigneshr, praneeth
UBOOR ? Typo in the subject.
On 6/27/2025 1:04 AM, Anshul Dalal wrote:
> Since all k3 and legacy platforms share common load addresses for kernel
> and initrd in the fitImage, move them to top level ti-soc.inc.
>
> No functional change is intended from this patch.
>
> Signed-off-by: Anshul Dalal <anshuld@ti.com>
> ---
> meta-ti-bsp/conf/machine/am335x-hs-evm.conf | 5 -----
> meta-ti-bsp/conf/machine/am437x-hs-evm.conf | 5 -----
> meta-ti-bsp/conf/machine/am57xx-hs-evm.conf | 5 -----
> meta-ti-bsp/conf/machine/dra7xx-hs-evm.conf | 5 -----
> meta-ti-bsp/conf/machine/include/k3.inc | 4 ----
> meta-ti-bsp/conf/machine/include/ti-soc.inc | 6 ++++++
> 6 files changed, 6 insertions(+), 24 deletions(-)
>
> diff --git a/meta-ti-bsp/conf/machine/am335x-hs-evm.conf b/meta-ti-bsp/conf/machine/am335x-hs-evm.conf
> index ca102961..652496c2 100644
> --- a/meta-ti-bsp/conf/machine/am335x-hs-evm.conf
> +++ b/meta-ti-bsp/conf/machine/am335x-hs-evm.conf
> @@ -10,11 +10,6 @@ UBOOT_CONFIG ??= "uart mmc"
> UBOOT_CONFIG[uart] = "am335x_hs_evm_uart_config"
> UBOOT_CONFIG[mmc] = "am335x_hs_evm_config"
>
> -UBOOT_ENTRYPOINT = "0x82000000"
> -UBOOT_LOADADDRESS = "0x82000000"
> -UBOOT_RD_LOADADDRESS = "0x84000000"
> -UBOOT_RD_ENTRYPOINT = "0x84000000"
> -
> # FIT image for legacy secure devices
> KERNEL_CLASSES += " kernel-fitimage-legacyhs"
> KERNEL_IMAGETYPES += " fitImage"
> diff --git a/meta-ti-bsp/conf/machine/am437x-hs-evm.conf b/meta-ti-bsp/conf/machine/am437x-hs-evm.conf
> index 632b4995..fde38d39 100644
> --- a/meta-ti-bsp/conf/machine/am437x-hs-evm.conf
> +++ b/meta-ti-bsp/conf/machine/am437x-hs-evm.conf
> @@ -6,11 +6,6 @@ require conf/machine/am437x-evm.conf
>
> UBOOT_MACHINE = "am43xx_hs_evm_config"
>
> -UBOOT_ENTRYPOINT = "0x82000000"
> -UBOOT_LOADADDRESS = "0x82000000"
> -UBOOT_RD_LOADADDRESS = "0x84000000"
> -UBOOT_RD_ENTRYPOINT = "0x84000000"
> -
> OPTEEMACHINE = "ti-am43xx"
> OPTEEFLAVOR = "am43xx"
>
> diff --git a/meta-ti-bsp/conf/machine/am57xx-hs-evm.conf b/meta-ti-bsp/conf/machine/am57xx-hs-evm.conf
> index 4f36a847..fcdc5c0b 100644
> --- a/meta-ti-bsp/conf/machine/am57xx-hs-evm.conf
> +++ b/meta-ti-bsp/conf/machine/am57xx-hs-evm.conf
> @@ -6,11 +6,6 @@ require conf/machine/am57xx-evm.conf
>
> UBOOT_MACHINE = "am57xx_hs_evm_config"
>
> -UBOOT_ENTRYPOINT = "0x82000000"
> -UBOOT_LOADADDRESS = "0x82000000"
> -UBOOT_RD_LOADADDRESS = "0x84000000"
> -UBOOT_RD_ENTRYPOINT = "0x84000000"
> -
> OPTEEMACHINE = "ti-am57xx"
> OPTEEFLAVOR = "am57xx"
> OPTEEPAGER = "y"
> diff --git a/meta-ti-bsp/conf/machine/dra7xx-hs-evm.conf b/meta-ti-bsp/conf/machine/dra7xx-hs-evm.conf
> index 8e57a154..37ffef31 100644
> --- a/meta-ti-bsp/conf/machine/dra7xx-hs-evm.conf
> +++ b/meta-ti-bsp/conf/machine/dra7xx-hs-evm.conf
> @@ -6,11 +6,6 @@ require conf/machine/dra7xx-evm.conf
>
> UBOOT_MACHINE = "dra7xx_hs_evm_config"
>
> -UBOOT_ENTRYPOINT = "0x82000000"
> -UBOOT_LOADADDRESS = "0x82000000"
> -UBOOT_RD_LOADADDRESS = "0x84000000"
> -UBOOT_RD_ENTRYPOINT = "0x84000000"
> -
> OPTEEMACHINE = "ti-dra7xx"
> OPTEEFLAVOR = "dra7xx"
> OPTEEPAGER = "y"
> diff --git a/meta-ti-bsp/conf/machine/include/k3.inc b/meta-ti-bsp/conf/machine/include/k3.inc
> index 28785173..feb5a543 100644
> --- a/meta-ti-bsp/conf/machine/include/k3.inc
> +++ b/meta-ti-bsp/conf/machine/include/k3.inc
> @@ -13,10 +13,6 @@ KERNEL_IMAGETYPES = "Image fitImage"
> KERNEL_CLASSES += "kernel-fitimage"
>
> UBOOT_ARCH = "arm"
> -UBOOT_ENTRYPOINT = "0x82000000"
> -UBOOT_LOADADDRESS = "0x82000000"
> -UBOOT_RD_LOADADDRESS = "0x84000000"
> -UBOOT_RD_ENTRYPOINT = "0x84000000"
> UBOOT_DTB_LOADADDRESS = "0x88000000"
> UBOOT_DTBO_LOADADDRESS = "0x88080000"
> UBOOT_DTBO_OFFSET = "0x00010000"
> diff --git a/meta-ti-bsp/conf/machine/include/ti-soc.inc b/meta-ti-bsp/conf/machine/include/ti-soc.inc
> index 5d77e719..5125856f 100644
> --- a/meta-ti-bsp/conf/machine/include/ti-soc.inc
> +++ b/meta-ti-bsp/conf/machine/include/ti-soc.inc
> @@ -3,6 +3,12 @@
> SOC_FAMILY = "ti-soc"
> require conf/machine/include/soc-family.inc
>
> +# kernel, initrd load addresses for the fitImage in all TI platforms
> +UBOOT_ENTRYPOINT = "0x82000000"
> +UBOOT_LOADADDRESS = "0x82000000"
> +UBOOT_RD_LOADADDRESS = "0x84000000"
> +UBOOT_RD_ENTRYPOINT = "0x84000000"
> +
> # TI platforms all use devicetrees with overlays
> MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree"
> KERNEL_DTB_OVERLAY_SUPPORT ?= "1"
--
Ryan Eatmon reatmon@ti.com
-----------------------------------------
Texas Instruments, Inc. - LCPD - MGTS
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v1 2/2] conf: machine: move UBOOR_*ADDRESS to top level ti-soc
2025-06-27 14:32 ` Ryan Eatmon
@ 2025-06-27 14:39 ` Anshul Dalal
2025-06-27 14:43 ` Ryan Eatmon
0 siblings, 1 reply; 6+ messages in thread
From: Anshul Dalal @ 2025-06-27 14:39 UTC (permalink / raw)
To: Ryan Eatmon, meta-ti; +Cc: c-shilwant, vigneshr, praneeth
On Fri Jun 27, 2025 at 8:02 PM IST, Ryan Eatmon wrote:
>
> UBOOR ? Typo in the subject.
>
My bad, didn't catch that earlier. Sorry for the inconvenience but could
you reword it locally please :)
- Anshul
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v1 2/2] conf: machine: move UBOOR_*ADDRESS to top level ti-soc
2025-06-27 14:39 ` Anshul Dalal
@ 2025-06-27 14:43 ` Ryan Eatmon
0 siblings, 0 replies; 6+ messages in thread
From: Ryan Eatmon @ 2025-06-27 14:43 UTC (permalink / raw)
To: Anshul Dalal, meta-ti; +Cc: c-shilwant, vigneshr, praneeth
Ok...
On 6/27/2025 9:39 AM, Anshul Dalal wrote:
> On Fri Jun 27, 2025 at 8:02 PM IST, Ryan Eatmon wrote:
>>
>> UBOOR ? Typo in the subject.
>>
>
> My bad, didn't catch that earlier. Sorry for the inconvenience but could
> you reword it locally please :)
>
> - Anshul
--
Ryan Eatmon reatmon@ti.com
-----------------------------------------
Texas Instruments, Inc. - LCPD - MGTS
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-06-27 14:43 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-27 6:04 [PATCH v1 1/2] conf: machine: k3: update fitImage load address Anshul Dalal
2025-06-27 6:04 ` [PATCH v1 2/2] conf: machine: move UBOOR_*ADDRESS to top level ti-soc Anshul Dalal
2025-06-27 14:32 ` Ryan Eatmon
2025-06-27 14:39 ` Anshul Dalal
2025-06-27 14:43 ` Ryan Eatmon
2025-06-27 6:06 ` [PATCH v1 1/2] conf: machine: k3: update fitImage load address Anshul Dalal
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.