
On Thu, Nov 3, 2011 at 10:11 PM, Aneesh V aneesh@ti.com wrote:
Hi Jon,
On Friday 04 November 2011 04:30 AM, Scott Wood wrote:
On 11/03/2011 05:20 PM, jonsmirl@gmail.com wrote:
Looks like I am not seeing some mails in this thread. I didn't get your first mail, neither Tom Rini's mails.
My primary SPL image needs the size of the secondary image built into it. How do I access that size while building the primary SPL image?
For OMAP we find this run-time by loading u-boot.img instead of u-boot.bin. u-boot.img has a 64 byte header with all necessary information such as size, load address, image type etc. The OMAP SPL can in fact load any image that has a standard u-boot header(mkimage header), including a uImage. This scheme was suggested by Wolfgang.
I was starting to think along those lines too. I could have the SPL boot straight to Linux when booting from NAND. Then if I use a DFU USB stick have it boot to full u-boot. It could be modified to give some options on the touch screen to rewrite the NAND since there is no keyboard.
Does it need to be exact? Usually we just hardcode something that should be big enough.
-Scott
U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot