[U-Boot] SPL support and secondary image size

jonsmirl at gmail.com jonsmirl at gmail.com
Fri Nov 4 00:09:26 CET 2011


On Thu, Nov 3, 2011 at 7:08 PM, jonsmirl at gmail.com <jonsmirl at gmail.com> wrote:
> On Thu, Nov 3, 2011 at 7:00 PM, Scott Wood <scottwood at freescale.com> wrote:
>> On 11/03/2011 05:20 PM, jonsmirl at gmail.com wrote:
>>> 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?
>>
>> Does it need to be exact?  Usually we just hardcode something that
>> should be big enough.
>
> NXP has written custom out of tree support for SPL on the lpc3130/31.
> I am reworking it to use the in-tree SPL code.  lpc3130 supports six
> boot modes but I have 64K of SRAM to work with.  One of those modes is
> to read the next image over the serial line, the existing NXP code
> wants to know the length to read.
>
> http://git.lpclinux.com/?p=uboot-2009.11-lpc313x.git;a=summary
>
> The way they implemented SPL was to build it and main uboot into a
> single image file. Then they used dd to cut it into two pieces.
> Building it as a single image allows the initial loader to get at
> things like the length of the second image.
>
> I will have to go through all of their code to see if the length
> require is exact.
>
>
>>
>> -Scott
>>
>>
>
>
>
> --
> Jon Smirl
> jonsmirl at gmail.com
>



-- 
Jon Smirl
jonsmirl at gmail.com


More information about the U-Boot mailing list