All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] u-boot-with-spl.bin don't include the dtb image when enable CONFIG_OF_SEPARATE
@ 2015-07-15  8:42 Wang Haikun
  2015-07-15 23:17 ` Simon Glass
  0 siblings, 1 reply; 3+ messages in thread
From: Wang Haikun @ 2015-07-15  8:42 UTC (permalink / raw)
  To: u-boot

Hi Simon,

It seems that we don't update the source image name to u-boot-dtb.bin in 
case of enabling CONFIG_OF_SEPARATE when generate u-boot-with-spl.bin file.


ifdef CONFIG_TPL
SPL_PAYLOAD := tpl/u-boot-with-tpl.bin
else
SPL_PAYLOAD := u-boot.bin
endif

OBJCOPYFLAGS_u-boot-with-spl.bin = -I binary -O binary \
                                     --pad-to=$(CONFIG_SPL_PAD_TO)
u-boot-with-spl.bin: spl/u-boot-spl.bin $(SPL_PAYLOAD) FORCE
          $(call if_changed,pad_cat)

Best regards,
Wang Haikun

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

* [U-Boot] u-boot-with-spl.bin don't include the dtb image when enable CONFIG_OF_SEPARATE
  2015-07-15  8:42 [U-Boot] u-boot-with-spl.bin don't include the dtb image when enable CONFIG_OF_SEPARATE Wang Haikun
@ 2015-07-15 23:17 ` Simon Glass
  2015-07-19 11:06   ` Hans de Goede
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Glass @ 2015-07-15 23:17 UTC (permalink / raw)
  To: u-boot

Hi,

On 15 July 2015 at 02:42, Wang Haikun <Haikun.Wang@freescale.com> wrote:
> Hi Simon,
>
> It seems that we don't update the source image name to u-boot-dtb.bin in
> case of enabling CONFIG_OF_SEPARATE when generate u-boot-with-spl.bin file.
>
>
> ifdef CONFIG_TPL
> SPL_PAYLOAD := tpl/u-boot-with-tpl.bin
> else
> SPL_PAYLOAD := u-boot.bin
> endif
>
> OBJCOPYFLAGS_u-boot-with-spl.bin = -I binary -O binary \
>                                      --pad-to=$(CONFIG_SPL_PAD_TO)
> u-boot-with-spl.bin: spl/u-boot-spl.bin $(SPL_PAYLOAD) FORCE
>           $(call if_changed,pad_cat)
>

At least for sunxi this worked for me. But perhaps sunxi is a special
case? You could send a patch if you like.

Regards,
Simon

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

* [U-Boot] u-boot-with-spl.bin don't include the dtb image when enable CONFIG_OF_SEPARATE
  2015-07-15 23:17 ` Simon Glass
@ 2015-07-19 11:06   ` Hans de Goede
  0 siblings, 0 replies; 3+ messages in thread
From: Hans de Goede @ 2015-07-19 11:06 UTC (permalink / raw)
  To: u-boot

Hi,

On 16-07-15 01:17, Simon Glass wrote:
> Hi,
>
> On 15 July 2015 at 02:42, Wang Haikun <Haikun.Wang@freescale.com> wrote:
>> Hi Simon,
>>
>> It seems that we don't update the source image name to u-boot-dtb.bin in
>> case of enabling CONFIG_OF_SEPARATE when generate u-boot-with-spl.bin file.
>>
>>
>> ifdef CONFIG_TPL
>> SPL_PAYLOAD := tpl/u-boot-with-tpl.bin
>> else
>> SPL_PAYLOAD := u-boot.bin
>> endif
>>
>> OBJCOPYFLAGS_u-boot-with-spl.bin = -I binary -O binary \
>>                                       --pad-to=$(CONFIG_SPL_PAD_TO)
>> u-boot-with-spl.bin: spl/u-boot-spl.bin $(SPL_PAYLOAD) FORCE
>>            $(call if_changed,pad_cat)
>>
>
> At least for sunxi this worked for me. But perhaps sunxi is a special
> case?

Yes I believe that sunxi has special code for this since we need to run
an utility to add a header to the spl binary.

Regards,

Hans

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

end of thread, other threads:[~2015-07-19 11:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-15  8:42 [U-Boot] u-boot-with-spl.bin don't include the dtb image when enable CONFIG_OF_SEPARATE Wang Haikun
2015-07-15 23:17 ` Simon Glass
2015-07-19 11:06   ` Hans de Goede

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.