[U-Boot] [PATCH 6/6] powerpc: Add LINK_OFF calls in early C-code.

Joakim Tjernlund joakim.tjernlund at transmode.se
Wed Nov 24 22:50:21 CET 2010


Scott Wood <scottwood at freescale.com> wrote on 2010/11/24 22:41:19:
> > > > > > How about playing with BATs before entering C code, so that the image
> > > > > > always appears at the same effective address?
> > > > >
> > > > > hmm, never thought of that. The extra bonus would be that LINK_OFF should
> > > > > not be needed either.
> > > >
> > > > After sleeping on it I realize that all direct accesses to the flash
> > > > such as getting the env. will need to be adjusted instead.
> > >
> > > You could have one small mapping for the U-Boot image, and another
> > > larger unchanging mapping that covers the whole flash.
> >
> > Played a little with this but it seems like two BATs cannot overlap?
>
> They can't overlap in effective address space.  They can have
> overlapping physical addresses (make sure the WIMG bits are the same).

hmm, now its starting to get a bit messy, I have flash over and under
my boot area. In general it may be hard to match any random layout.



More information about the U-Boot mailing list