[U-Boot] [PATCH 12/19] powerpc: ppc4xx: Use CONFIG_OF_CONTROL for canyonlands boards

Bin Meng bmeng.cn at gmail.com
Mon Jan 26 14:39:55 CET 2015


Hi Simon,

On Mon, Jan 26, 2015 at 9:31 PM, Simon Glass <sjg at chromium.org> wrote:
> Hi Stefan,
>
> On 26 January 2015 at 06:17, Stefan Roese <sr at denx.de> wrote:
>> On 15.12.2014 15:19, Simon Glass wrote:
>>>
>>> Enable CONFIG_OF_CONTROL so that U-Boot on these three boards uses a
>>> device
>>> tree for its configuration.
>>>
>>> Signed-off-by: Simon Glass <sjg at chromium.org>
>>
>>
>> This need further work on the ppc4xx platforms to get it booting from flash.
>> As now the dtb is appended to the "normal" U-Boot image. And this image is
>> fine-tuned to fit into currently 512KiB. With the last word (reset vector of
>> the ppc4xx) located at 0xffff.fffc. So we need to include this dtb into the
>> image this way:
>>
>> 0xfff8.0000     U-Boot code / text etc
>> ...
>>                 dtb
>> 0xffff.fffc     reset vector
>>
>> Looking for the current options shows that perhaps CONFIG_OF_EMBED seems to
>> be exactly what we are need. I'll got it working on Canyonlands after a bit
>> of debugging. I'll post the necessary small patches soon...
>
> Sounds good, thanks!
>

We need do the same for Freescale BookE powerpc series too.

> It almost feels like you should have a mkimage image for this, to
> create a 512KB blob from u-boot.bin and u-boot.dtb. There must be
> linker magic to make this all hold together. But yes the embed option
> will build it in, so avoiding that.
>

Or maybe we can extend x86 solution (like ifdtool) to non-x86
architectures like BookE powerpc?

Regards,
Bin


More information about the U-Boot mailing list