simple bootloader 2.6.10-rc3 8xx
Tom Rini
trini at kernel.crashing.org
Thu Jan 6 04:36:58 EST 2005
On Tue, Dec 28, 2004 at 12:47:57PM -0500, Steven Rostedt wrote:
> On Tue, 2004-12-28 at 12:28 -0500, Povolotsky, Alexander wrote:
> > Hi! (Thanks !)
> >
> > I guess I need some more education - since I am getting my problem right at
> > the boot - is
> > I-Cache enabled (by default ?) for 8xx on 2.6 at the booting ? - I do not
> > see anything in .config
> > which controls it (or I am missing it there ?)
> > How (where and at what point during the boot)-) I could disable I-Cache ?
>
> Since you where able to get to the prekernel portion (that was
> relocated) I don't think you have a problem with caches, unless for some
> reason the pre-kernel can relocate itself, but it doesn't know to
> refresh the cache after relocating the actual kernel.
The in-kernel bootwrapper codes does indeed relocate itself (overlap
isn't a problem either, except for a small window. All of this can be
avoided if you link the kernel where it will be loaded into memory by
the firmware as well), but it should also do all needed cache flushing.
But as has been said before, since the CPU15 errata doesn't exist with
i-cache disabled, the simple workaround would be to disable the i-cache
as quickly as possible from the head.S portions of the in-kernel
bootwrapper and make sure we don't re-enable it later on (I _think_ we
do for speed reasons).
--
Tom Rini
http://gate.crashing.org/~trini/
More information about the Linuxppc-embedded
mailing list