[U-Boot] [PATCH] powerpc/CoreNet: add tool to support pbl image build.

Xie Shaohui-B21989 B21989 at freescale.com
Wed Jun 6 04:45:41 CEST 2012


>-----Original Message-----
>From: Wood Scott-B07421
>Sent: Wednesday, June 06, 2012 2:14 AM
>To: Xie Shaohui-B21989
>Cc: Wood Scott-B07421; u-boot at lists.denx.de; Tabi Timur-B04825
>Subject: Re: [U-Boot] [PATCH] powerpc/CoreNet: add tool to support pbl
>image build.
>
>On 06/05/2012 12:35 AM, Xie Shaohui-B21989 wrote:
>>>> +++ b/board/freescale/corenet_ds/config.mk
>>>> @@ -0,0 +1,26 @@
>>>> +#
>>>> +
>>>> +#PBL preamble and RCW header
>>>> +aa55aa55 010e0100
>>>> +#64 bytes RCW data for P4080, replace it when building image #for
>>>> +P3041DS or P5020DS.
>>>> +4c580000 00000000 18185218 0000cccc 40464000 3c3c2000 58000000
>>>> +61000000 00000000 00000000 00000000 008b6000 00000000 00000000
>>>> +00000000 00000000
>>>
>>> Could you have the tool source this from a separate file, rather than
>>> require the user to replace it manually?
>>
>> [Xie Shaohui] Then I have to prepare a separate file and a tool...
>> It is quite simple to replace, just copy and paste, and users may need
>> to modify the RCW when the default one does not fit their use case,
>> they will always have to do it manually. It's simple to do it here.
>
>I disagree that copy and paste is good enough, though taking an external
>RCW source (such as output from Timur's tool) could be a future
>enhancement.
[Xie Shaohui] OK. Suppose we got the output from Timur's tool, what should we do for the input if we need to change the RCW? Can Timur's tool do it automatically, or by some arguments provided? And even though, there will be two files for configuration, one is RCW output from Timur's tool, and another is PBI commands. This is too much for the tool; it has only one entry for configuration file.

>
>>> Talk to Timur (when he gets back from vacation in a couple weeks)
>>> about his RCW tool and how best to accept the output it produces.
>>>
>>> Why is eSPI in here?  Isn't this supposed to just generically write
>>> an image into CPC SRAM?
>>
>> [Xie Shaohui] No. some interfaces need to be pre-initialized before
>> PBL start to load stuff from it, and default configurations for SPI is
>> suitable, this tool provides a more compatible configurations.
>
>What do you mean by a more compatible configuration?  If the default is
>good enough to load the first few PBL commands, why is it not goot enough
>to load the rest?
[Xie Shaohui] the default configurations for SPI is too slow, it will take more than half minutes to finish the loading.

>
>>>> diff --git a/doc/README.pblimage b/doc/README.pblimage new file mode
>>>> 100644 index 0000000..73d90f1
>>>> --- /dev/null
>>>> +++ b/doc/README.pblimage
>>>> @@ -0,0 +1,140 @@
>>>> +	3). Boot from Nand
>>>> +	Write u-boot.pbl to Nand from offset 0x0, Note that in case of
>>>> +eLBC
>>> NAND
>>>> +	flash, the address starts from the first good block.
>>>> +	for ex in u-boot:
>>>> +	=>tftp 100000 u-boot.pbl
>>>> +	=>nand info
>>>> +	=>nand erase 0 100000
>>>> +	=>nand write 100000 0 $filesize
>>>> +	Change SW1[1:5] = off on off off on
>>>> +	Change SW7[1:4] = on off off on
>>>
>>> How do you load the environment?  We should find a way, possibly
>>> using SPL, to have the environment ready early.  We do not want to
>>> wait post relocation for the full NAND/SD/SPI driver to load the
>environment.
>>
>> [Xie Shaohui] This tool did not intend to provide a way to load the
>> environment. The ENV thing should belong to the boot Image, this tool
>> is a wrapper.
>
>This isn't a comment on this tool specifically, but rather on this method
>of booting.  This is a problem that needs to be solved.
[Xie Shaohui] OK. This is will be a new work.

Best Regards, 
Shaohui Xie




More information about the U-Boot mailing list