
On 27/05/13 18:18, Xie Shaohui-B21989 wrote:
Hi, Chris,
For the init value of "next_pbl_cmd", there was a patch at below link
can be used:
http://lists.denx.de/pipermail/u-boot/2013-March/150260.html
Thanks for the pointer. I did check the main u-boot.git tree but didn't search the list.
I don't know if it's a concern for u-boot but the patch linked above assumes something that isn't quite true for my usage. My board uses the SPI booting option for factory boot-strap. The "normal" method is booting from NOR. When I build a NOR image I prepend a standalone application image to the bootloader for convenience of only having to program one image to NOR. In my case CONFIG_SYS_TEXT_BASE is not the base address of the binary I'm trying to wrap in a pbl image.
Another advantage of my version is that you don't necessarily have to be using mkimage/pblimage on the current u-boot configuration. It could be an externally built image and we're just using mkimage/pblimage to wrap it into something that we can program into SPI.
[S.H] OK. I see what is your requirement. ACK.
Best Regards, Shaohui Xie