Re: [U-Boot] [PATCH v3 01/10] binman: Introduce binman, a tool for building binary images

2016-10-13 Thread Simon Glass
Hi Masahiro,

On 4 October 2016 at 22:08, Masahiro Yamada
 wrote:
> Hi Simon,
>
>
> 2016-10-05 9:25 GMT+09:00 Simon Glass :
>
>> +
>> +Image description format
>> +
>> +
>> +The binman node is called 'binman'. An example image description is shown
>> +below:
>> +
>> +   binman {
>> +   filename = "u-boot-sunxi-with-spl.bin";
>> +   pad-byte = <0xff>;
>> +   blob {
>> +   filename = "spl/sunxi-spl.bin";
>> +   };
>> +   u-boot {
>> +   pos = ;
>> +   };
>> +   };
>
>
> Oh my, finally CONFIG_ in device tree.
>
> If CONFIG_SPL_OF_CONTROL is enabled, SPL can parse "/binman/u-boot/pos" 
> property
> to know which offset address SPL should load U-Boot proper from,
> then remove CONFIG_SPL_PAD_TO.
> Otherwise, I have no idea to avoid this.

Yes we can do that. but in any case we need this CONFIG in the DT. I
think this CONFIG (or one depending on it) is also used in the build
to provide the link address for U-Boot.

Regards,
Simon
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v3 01/10] binman: Introduce binman, a tool for building binary images

2016-10-04 Thread Masahiro Yamada
Hi Simon,


2016-10-05 9:25 GMT+09:00 Simon Glass :

> +
> +Image description format
> +
> +
> +The binman node is called 'binman'. An example image description is shown
> +below:
> +
> +   binman {
> +   filename = "u-boot-sunxi-with-spl.bin";
> +   pad-byte = <0xff>;
> +   blob {
> +   filename = "spl/sunxi-spl.bin";
> +   };
> +   u-boot {
> +   pos = ;
> +   };
> +   };


Oh my, finally CONFIG_ in device tree.

If CONFIG_SPL_OF_CONTROL is enabled, SPL can parse "/binman/u-boot/pos" property
to know which offset address SPL should load U-Boot proper from,
then remove CONFIG_SPL_PAD_TO.
Otherwise, I have no idea to avoid this.




-- 
Best Regards
Masahiro Yamada
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot