conf: machine: k3: Add DTB and DTBO load address for FIT image
PATCH v2 1/1 conf: machine: k3: Add DTB and DTBO load address for FIT image
From: Sinthu Raja <[email protected]>
K3 platforms include the fit image-based kernel as the default. The fit image loads the kernel and DTB. The DTB/DTBOs, however, are added to the fit image, but the load address is not included in the image section of each DTB/DTBO, for non-HS platforms. This load address is determined by the LOADADDRESS macros in the kernel-fitmage class.
Hence, in K3, include the DTB/DTBOs load address and offset macros, which will be used by all K3 platforms.
---
Hi,
Build tested locally and validated the fitImage on AM68 SK.
Changes in V2:
=============
Address review comment:
- Move the change to k3.inc as the fit image is included as default image across all platforms
V1: https://lists.yoctoproject.org/g/meta-ti/message/15754
conf/machine/include/k3.inc | 3 +++ 1 file changed, 3 insertions(+)
conf/machine/include/k3.inc +3 -0
@@ -21,6 +21,9 @@ KERNEL_CLASSES += "kernel-fitimage" UBOOT_ARCH = "arm" UBOOT_ENTRYPOINT = "0x80008000" UBOOT_LOADADDRESS = "0x80008000" +UBOOT_DTB_LOADADDRESS = "0x83000000" +UBOOT_DTBO_LOADADDRESS = "0x83080000" +UBOOT_DTBO_OFFSET = "0x00010000" SPL_BINARY = "tispl.bin" SPL_BINARYNAME = "tispl.bin"
Signature · 1 line
2.36.1
Quoted 3 lines · Sinthu Raja M via lists.yoctoproject.org
From: Sinthu Raja <[email protected]>
K3 platforms include the fit image-based kernel as the default. The fit
Not "as the default", rather "by default". Only HS has it as "the" default.
Quoted 1 line
image loads the kernel and DTB. The DTB/DTBOs, however, are added to the
The FIT image does not do the loading, U-Boot/SBL does. Recommend change the wording to "The bootloader loads the kernel and DTB from the FIT image".
Remove ", however,".
Quoted 6 lines
fit image, but the load address is not included in the image section of each DTB/DTBO, for non-HS platforms. This load address is determined by the LOADADDRESS macros in the kernel-fitmage class.
Hence, in K3, include the DTB/DTBOs load address and offset macros, which will be used by all K3 platforms.
Include them where? The whole point of the patch is you are now including them in a common include file, that should be stated.
"FIT" is an acronym, capitalize it everywhere.
Quoted 23 lines
Signed-off-by Sinthu Raja <[email protected]>---
Hi,
Build tested locally and validated the fitImage on AM68 SK.Changes in V2:
=============
Address review comment:
- Move the change to k3.inc as the fit image is included as default image across all platformsV1: https://lists.yoctoproject.org/g/meta-ti/message/15754
conf/machine/include/k3.inc | 3 +++ 1 file changed, 3 insertions(+)conf/machine/include/k3.inc +0
-0
conf/machine/include/k3.inc KERNEL_CLASSES += "kernel-fitimage" · line 26
Quoted 6 lines
conf/machine/include/k3.inc +3
-0@@ -21,6 +21,9 @@ KERNEL_CLASSES += "kernel-fitimage" UBOOT_ARCH = "arm" UBOOT_ENTRYPOINT = "0x80008000" UBOOT_LOADADDRESS = "0x80008000" +UBOOT_DTB_LOADADDRESS = "0x83000000" +UBOOT_DTBO_LOADADDRESS = "0x83080000" +UBOOT_DTBO_OFFSET = "0x00010000"
Should include UBOOT_RD_* also.
Now that you add this info here, all other files that include this file should have these lines removed.
Andrew
Quoted 14 lines
conf/machine/include/k3.inc +0
-1SPL_BINARY = "tispl.bin" SPL_BINARYNAME = "tispl.bin" -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#15768): https://lists.yoctoproject.org/g/meta-ti/message/15768
Mute This Topic: https://lists.yoctoproject.org/mt/96849292/3619733
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-