[U-Boot] Use .data section in SPL ?
Simon Glass
sjg at chromium.org
Thu Dec 11 03:13:51 CET 2014
Hi Tom,
On 10 December 2014 at 19:04, Tom Rini <trini at ti.com> wrote:
> On Wed, Dec 10, 2014 at 06:56:02PM -0700, Simon Glass wrote:
>> Hi Tom,
>>
>> On 10 December 2014 at 07:06, Tom Rini <trini at ti.com> wrote:
>> > On Wed, Dec 10, 2014 at 04:39:39PM +0900, Masahiro Yamada wrote:
>> >> Hi.
>> >>
>> >>
>> >> I notice SPL is using .data section
>> >>
>> >>
>> >>
>> >> u32 *boot_params_ptr = NULL;
>> >> struct spl_image_info spl_image;
>> >>
>> >> /* Define board data structure */
>> >> static bd_t bdata __attribute__ ((section(".data")));
>> >>
>> >>
>> >>
>> >> If SPL is running on an execute-in-place device such NOR flash,
>> >> .data section is not writable.
>> >>
>> >> common/spl/spl_nor.c does not work.
>> >
>> > spl_nor.c only works today on PowerPC where there's nothing shoved into
>> > the .data section.
>> >
>> > And all of this is related to what's needed to enable DM in SPL on ARM
>> > as well, iirc anyhow.
>>
>> Can you please explain the SPL problem on ARM a bit more? If It could
>> understand what is going on, or how to repeat it, I might be able to
>> help. I'd really like to enable this DM SPL support...
>
> Did you see the WIP patch I sent out in reply to the SPL DM series?
Not that I recall - you mean this one?
http://patchwork.ozlabs.org/patch/417792/
I might have been asleep. Will take a look.
Regards,
Simon
More information about the U-Boot
mailing list