kernel-fitimage: add DTB_LOAD to set dtb address
PATCH 1/1 kernel-fitimage: add DTB_LOAD to set dtb address
From: Chunrong Guo <[email protected]>
kernel-fitimage for arm64 and arm need dynamically sets dtb address, thus we need a flexible way to load dtb address value.
--- meta/classes/kernel-fitimage.bbclass | 3 +++ 1 file changed, 3 insertions(+)
meta/classes/kernel-fitimage.bbclass +3 -0
@@ -36,6 +36,8 @@ python __anonymous () { # Options for the device tree compiler passed to mkimage '-D' feature: UBOOT_MKIMAGE_DTCOPTS ??= "" +# Options for load dtb address +DTB_LOAD ??= "" # # Emit the fitImage ITS header #
@@ -137,6 +139,7 @@ fitimage_emit_section_dtb() { type = "flat_dt"; arch = "${UBOOT_ARCH}"; compression = "none"; + load = <${DTB_LOAD}>; hash@1 { algo = "${dtb_csum}"; };
Signature · 1 line
1.9.0
Quoted 24 lines · Chunrong Guo
From: Chunrong Guo <[email protected]>
kernel-fitimage for arm64 and arm need dynamically sets dtb address, thus we need a flexible way to load dtb address value.
Signed-off-by Chunrong Guo <[email protected]>--- meta/classes/kernel-fitimage.bbclass | 3 +++ 1 file changed, 3 insertions(+)meta/classes/kernel-fitimage.bbclass +2
-0@@ -36,6 +36,8 @@ python __anonymous () { # Options for the device tree compiler passed to mkimage '-D' feature: UBOOT_MKIMAGE_DTCOPTS ??= "" +# Options for load dtb address +DTB_LOAD ??= "" # # Emit the fitImage ITS header #
meta/classes/kernel-fitimage.bbclass fitimage_emit_section_dtb() { · line 142
Quoted 4 lines
meta/classes/kernel-fitimage.bbclass +1
-0@@ -137,6 +139,7 @@ fitimage_emit_section_dtb() { type = "flat_dt"; arch = "${UBOOT_ARCH}"; compression = "none"; + load = <${DTB_LOAD}>;
What happens if it is empty?
Quoted 11 lines
meta/classes/kernel-fitimage.bbclass +0
-1hash@1 { algo = "${dtb_csum}"; }; --1.9.0
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
Hi,
it would seem that it is also necessary to add the entry field on some targets.
I think the best would to be do as for UBOOT_RD_LOADADDRESS and UBOOT_RD_ENTRYPOINT.
Best regards,
Thomas P.
Quoted 59 lines · Otavio Salvador
meta/classes/kernel-
Quoted 11 lines · Chunrong Guo
From: Chunrong Guo <[email protected]>
kernel-fitimage for arm64 and arm need dynamically sets dtb address, thus we need a flexible way to load dtb address value.
Signed-off-by Chunrong Guo <[email protected]>--- meta/classes/kernel-fitimage.bbclass | 3 +++ 1 file changed, 3 insertions(+)meta/classes/kernel- renamed from meta/classes/kernel-fitimage.bbclass +0
-0fitimage.bbclass
Quoted 13 lines
index 179185b..479ffd4 100644
meta/classes/kernel-fitimage.bbclass +2
-0@@ -36,6 +36,8 @@ python __anonymous () { # Options for the device tree compiler passed to mkimage '-D' feature: UBOOT_MKIMAGE_DTCOPTS ??= "" +# Options for load dtb address +DTB_LOAD ??= "" # # Emit the fitImage ITS header #meta/classes/kernel-fitimage.bbclass fitimage_emit_section_dtb() { · line 142
Quoted 4 lines
meta/classes/kernel-fitimage.bbclass +1
-0@@ -137,6 +139,7 @@ fitimage_emit_section_dtb() { type = "flat_dt"; arch = "${UBOOT_ARCH}"; compression = "none"; + load = <${DTB_LOAD}>;What happens if it is empty?
Quoted 11 lines
meta/classes/kernel-fitimage.bbclass +0
-1hash@1 { algo = "${dtb_csum}"; }; --1.9.0
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core--
Otavio SalvadorO.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core