public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v3 12/20] mips: enable support for appending dtb to spl binary
@ 2020-01-21  8:19 Weijie Gao
  2020-01-21  8:45 ` Stefan Roese
  2020-02-10 17:10 ` Daniel Schwierzeck
  0 siblings, 2 replies; 3+ messages in thread
From: Weijie Gao @ 2020-01-21  8:19 UTC (permalink / raw)
  To: u-boot

If CONFIG_SPL_OF_CONTROL is enabled for SPL and CONFIG_OF_SEPARATE is also
enabled, the dtb will be appended to the u-boot-spl.bin.

When calling dm_init_and_scan() in SPL, fdtdec_setup() will try to locate
dtb at the end of u-boot-spl.bin, by referencing to _image_binary_end.

However _image_binary_end is currently missing in u-boot-spl.lds.
This patch adds _image_binary_end to u-boot-spl.lds to make sure linking
u-boot-spl will not fail.

Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
---
Changes since v2: none
---
 arch/mips/cpu/u-boot-spl.lds | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/mips/cpu/u-boot-spl.lds b/arch/mips/cpu/u-boot-spl.lds
index d08d6222c4..e467491639 100644
--- a/arch/mips/cpu/u-boot-spl.lds
+++ b/arch/mips/cpu/u-boot-spl.lds
@@ -37,6 +37,8 @@ SECTIONS
 	. = ALIGN(4);
 	__image_copy_end = .;
 
+	_image_binary_end = .;
+
 	.bss (NOLOAD) : {
 		__bss_start = .;
 		*(.bss*)
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH v3 12/20] mips: enable support for appending dtb to spl binary
  2020-01-21  8:19 [PATCH v3 12/20] mips: enable support for appending dtb to spl binary Weijie Gao
@ 2020-01-21  8:45 ` Stefan Roese
  2020-02-10 17:10 ` Daniel Schwierzeck
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Roese @ 2020-01-21  8:45 UTC (permalink / raw)
  To: u-boot

On 21.01.20 09:19, Weijie Gao wrote:
> If CONFIG_SPL_OF_CONTROL is enabled for SPL and CONFIG_OF_SEPARATE is also
> enabled, the dtb will be appended to the u-boot-spl.bin.
> 
> When calling dm_init_and_scan() in SPL, fdtdec_setup() will try to locate
> dtb at the end of u-boot-spl.bin, by referencing to _image_binary_end.
> 
> However _image_binary_end is currently missing in u-boot-spl.lds.
> This patch adds _image_binary_end to u-boot-spl.lds to make sure linking
> u-boot-spl will not fail.
> 
> Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
> Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
> ---
> Changes since v2: none

Reviewed-by: Stefan Roese <sr@denx.de>

Thanks,
Stefan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH v3 12/20] mips: enable support for appending dtb to spl binary
  2020-01-21  8:19 [PATCH v3 12/20] mips: enable support for appending dtb to spl binary Weijie Gao
  2020-01-21  8:45 ` Stefan Roese
@ 2020-02-10 17:10 ` Daniel Schwierzeck
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel Schwierzeck @ 2020-02-10 17:10 UTC (permalink / raw)
  To: u-boot



Am 21.01.20 um 09:19 schrieb Weijie Gao:
> If CONFIG_SPL_OF_CONTROL is enabled for SPL and CONFIG_OF_SEPARATE is also
> enabled, the dtb will be appended to the u-boot-spl.bin.
> 
> When calling dm_init_and_scan() in SPL, fdtdec_setup() will try to locate
> dtb at the end of u-boot-spl.bin, by referencing to _image_binary_end.
> 
> However _image_binary_end is currently missing in u-boot-spl.lds.
> This patch adds _image_binary_end to u-boot-spl.lds to make sure linking
> u-boot-spl will not fail.
> 
> Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
> Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
> ---
> Changes since v2: none
> ---
>  arch/mips/cpu/u-boot-spl.lds | 2 ++
>  1 file changed, 2 insertions(+)
> 

applied to u-boot-mips, thanks.

-- 
- Daniel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-02-10 17:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-21  8:19 [PATCH v3 12/20] mips: enable support for appending dtb to spl binary Weijie Gao
2020-01-21  8:45 ` Stefan Roese
2020-02-10 17:10 ` Daniel Schwierzeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox