Subject: Re: netbsd-current and ibook g4: kernel freeze
To: Michael Lorenz <macallan@netbsd.org>
From: leon zadorin <leonleon77@gmail.com>
List: port-macppc
Date: 01/31/2007 11:31:05
On 1/30/07, Michael Lorenz <macallan@netbsd.org> wrote:

> > Deceremeter exception at  %SRR0: 00000000   %SRR1: 00080000
>
> That's why I asked about the iBook variant - we're getting this kind of
> error on the latest G4 PowerBooks, unfortunately I can't reproduce the
> issue on my iBook so there isn't much I can do about it. The problem
> appears to be that interrupt are enabled too early for some reason.
...
> Try to build a smaller GENERIC kernel. 5MB is not much smaller than
> GENERIC, the kernel I use on my iBook is 3.3MB. For instance, you can
> leave out all PCI host bridges besides uninorth ( no grackle or bandit
> anywhere ), the onboard ethernet controller should be a gem - you can
> get rid of all the others. The audio chip is a snapper or something
> very similar, no need to have other audio drivers in your kernel.


Well... :-)
Have built a smaller kernel at 3.1 Meg - same problem...

then started putting the "printf" in the boot.c in
macppc/stand/ofwboot (things like "about to __syncicache" , "about to
chain", etc... and now I get consistently (with GENERIC based kernel
build) the aforementioned decrementer exception (on iBook G4)...

it basically loads the kernel as elf32 (from libsa), then does
__syncicache ok, then jumps into chain and then into OF_chain which
calls the "entry"... and then i don't know where to go... - i presume
entry (0x100000) is some routine/start in kernel... which file...
something like "main" somewhere? (sorry for rather incompetent
questions - have never done any kernel-based stuff before, just the
user-space)...