[U-Boot] BSS footprint of FAT very high - SPL issues

sughosh ganu urwithsughosh at gmail.com
Thu Feb 3 07:49:13 CET 2011


hi Aneesh,

On Wed, Feb 2, 2011 at 7:31 PM, Aneesh V <aneesh at ti.com> wrote:

> Yes. These are variables that otherwise would go to BSS. I do this
> because I need them before SDRAM initialization. One of this is the gd
> structure. I allocate gd structure in .data that is in IRAM.
> Why I need gd before SDRAM? Because I try to initialize serial console
> as early as possible and this code has some reference to gd.
>

I had added serial console support in my nand_spl code for the hawkboard
port(referring existing FSL boards). I think the serial console can be
initialised using NS16550_init, which does not access any gd variable. This
is assuming that you can use the ns16550 serial driver :)

-sughosh


More information about the U-Boot mailing list