Re: [U-Boot] u-boot-with-spl.bin don't include the dtb image when enable CONFIG_OF_SEPARATE

2015-07-19 Thread Hans de Goede

Hi,

On 16-07-15 01:17, Simon Glass wrote:

Hi,

On 15 July 2015 at 02:42, Wang Haikun haikun.w...@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
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] u-boot-with-spl.bin don't include the dtb image when enable CONFIG_OF_SEPARATE

2015-07-15 Thread Simon Glass
Hi,

On 15 July 2015 at 02:42, Wang Haikun haikun.w...@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
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot