Subject: Re: JavaStation1 saga continues
To: None <port-sparc@netbsd.org>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: port-sparc
Date: 04/19/2001 07:25:03
On Wed, Apr 18, 2001 at 15:47:00 +1000, matthew green wrote:
> bootpath:
autoconf.c:bootpath_build misses case PROM_OPENFIRM.
> no surprise! there are no attached cpus yet! you will need to instrument
> the autoconf.c:mainbus_attach() code after this comment:
>
> /*
> * The rest of this routine is for OBP machines exclusively.
> */
>
> to see why it fails to find the cpu. i guess it isn't listed in the
> cpu.c:cpu_conf[] table...
No, the damn OBP doesn't have a cpu node! For the test I hardcoded
cache info etc and now I'm getting this far:
NetBSD 1.5 (MRCOFFEE) #3: Thu Apr 19 06:05:41 MSD 2001
toor@felix.sparc.spb.su:/opt/src/sys/arch/sparc/compile/MRCOFFEE
total memory = 32396 KB
avail memory = 28176 KB
using 430 buffers containing 1720 KB of memory
bootpath: /sbus0/ledma@4,8400010/le@4,8c00000:d
mainbus0 (root): SUNW,JDM1
cpu0 at mainbus0: MB86904 @ 0 MHz, on-chip FPU
cpu0: 16K instruction (32 b/l), 8K data (16 b/l): cache enabled
obio0 at mainbus0
clock0 at obio0 slot 0 offset 0x200000: (eeprom)
timer0 at obio0 slot 0 offset 0xd00000 delay constant 47
auxreg0 at obio0 slot 0 offset 0x900000
su at obio0 slot 0 offset 0x3002f8 not configured
8042 at obio0 slot 0 offset 0x300060 not configured
trap type 0x7: pc=0xef008068 npc=0xef008060 psr=40010c0<EF,S,PS>
kernel: alignment fault trap
Stopped in swapper at qzero+0xc: std %g0, [%o0 + %o1]
db> show reg
psr 0x40010c0
pc 0xef008068 qzero+0xc
npc 0xef008060 qzero+0x4
o0 0xf00f5000 end+0xfb1998
o1 0xb2c
o7 0xef0d8610 pmap_create+0x8c
i7 0xef0b3f1c uvmspace_init+0x48
qzero+0xc: std %g0, [%o0 + %o1]
I.e. it's in the call to qzero in pmap_create because after relocation
to region EF the NUREG is no longer divided by 8 evenly, grrrr...
There's no sbus in the trace above because MRCOFFE is a very slim
config that has minimum set of devices (I used it for OBP2 box) and so
it only has sbus0 at iommu0 while in this OBP3 box sbus is directly
under the root (ie. at mainbus0).
SY, Uwe
--
uwe@ptc.spbu.ru | Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen