Skip to contentSkip to conversation

kmake: include DTB section into u-boot.bin if CONFIG_OF_EMBED enabled

PATCH In review Alexey Ignatov 2 participants 2 messages Jul 6, 2014 – Jul 8, 2014 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kmake: include DTB section into u-boot.bin if CONFIG_OF_EMBED enabled

Fixes a bug when objcopy doesn't put .dtb.init.rodata section to resulting u-boot.bin, so u-boot was unable to find embedded DTB.

---
 arch/arm/config.mk | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/config.mk +4 -0
index 66ecc2e..5fa1825 100644
@@ -116,6 +116,10 @@ else
 OBJCOPYFLAGS += -j .text -j .rodata -j .hash -j .data -j .got.plt -j .u_boot_list -j .rel.dyn
 endif
 
+ifdef CONFIG_OF_EMBED
+OBJCOPYFLAGS += -j .dtb.init.rodata
+endif
+
 ifneq ($(CONFIG_IMX_CONFIG),)
 ifdef CONFIG_SPL
 ifndef CONFIG_SPL_BUILD
Signature · 1 line
1.8.5.3
#1 lore raw
Quoted 2 lines · Alexey Ignatov

Fixes a bug when objcopy doesn't put .dtb.init.rodata section to resulting u-boot.bin, so u-boot was unable to find embedded DTB.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140707/30f1de8d/attachment.pgp>