Subject: Re: e450 issue
To: NetBSD Port Sparc64 <port-sparc64@netbsd.org>
From: Peter Eisch <peter@boku.net>
List: port-sparc64
Date: 06/01/2004 23:21:24
On 6/1/04 9:17 PM, "Eduardo Horvath" <eeh@NetBSD.org> wrote:

> You might also want to do a ctrace at this point.
> 

Me don't know nuthin 'bout ctrace, but...

> Hm.  It appears to be failing trying to allocate the message buffer.
> 
> If you look in prom_get_msgbuf() you will see code to explicitly
> disable some operations on e250s.  I'd speculate that e450s, which
> are very similar machines, have the same problem.

I do have a compiler!  So I do this:

zipper# diff ofw_machdep.c.orig ofw_machdep.c
515c515
<                       if (strcmp(name, "SUNW,Ultra-250"))
---
>                       if ((strcmp(name, "SUNW,Ultra-4")) && (strcmp(name,
"SUNW,Ultra-250")))
zipper# 

...and I push it on towards morning and we get a long ways further after it
logs (after compiling without DEBUG options):

loadfile: reading header
elf64_exec: Booting /pci@1f,4000/network@1,1/netbsd
5000248@0x1000000+158856@0x1800000+4035448@0x1826c88
symbols @ 0xfef5c440 164+386256+232553 start=0x1000000
chain: calling OF_chain(800000, cbb8, 1000000, fff7fa80, 18)
prom_get_msgbuf: Cannot recover msgbuf on E250
prom_get_msgbuf: allocated new buf at 00000000
prom_get_msgbuf: claiming new buf at 00000000
console is /pci@1f,4000/ebus@1/se@14,400000:a
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 2.0F (GENERIC) #5: Tue Jun  1 16:47:54 CDT 2004
        
peter@zipper:/usr/peter/sparc64/obj/usr/src/sys/arch/sparc64/compile/GENERIC
total memory = 2048 MB
avail memory = 1993 MB
bootpath: /pci@1f,4000/network@1,1
mainbus0 (root): SUNW,Ultra-4: hostid 80b15697
cpu0 at mainbus0: SUNW,UltraSPARC-II @ 400 MHz, version 0 FPU
cpu0: 32K instruction (32 b/l), 16K data (32 b/l), 4096K external (64 b/l)
cpu at mainbus0 not configured
cpu at mainbus0 not configured
cpu at mainbus0 not configured
psycho0 at mainbus0 addr 0xfffb4000
SUNW,psycho: impl 0, version 4: ign 7c0 bus range 0 to 0; PCI bus 0
DVMA map: fe000000 to ffffe000
IOTSB: 32a0000 to 32a8000
pci0 at psycho0
pci0: i/o space, memory space enabled
ebus0 at pci0 dev 1 function 0
ebus0: Sun Microsystems, Inc. PCIO Ebus2, revision 0x01
auxio0 at ebus0 addr 726000-726003, 728000-728003, 72a000-72a003,
72c000-72c003, 72f000-72f003
power at ebus0 addr 724000-724003 ipl 2021 ipl 2034 not configured
SUNW,pll at ebus0 addr 504000-504002 not configured
sc at ebus0 addr 500000-500007 not configured
sab0 at ebus0 addr 400000-40007f ipl 43: rev 3.2
sabtty0 at sab0 port : console i/o
sabtty1 at sab0 port 1
com0 at ebus0 addr 3083f8-3083ff ipl 41: ns16550a, working fifo
kbd0 at com0
com1 at ebus0 addr 3062f8-3062ff ipl 42: ns16550a, working fifo
ms0 at com1
lpt0 at ebus0 addr 3043bc-3043cb, 300398-300399, 700000-70000f ipl 2018
fdthree at ebus0 addr 3023f0-3023f7, 706000-70600f, 720000-720003 ipl 2023
not configured
clock0 at ebus0 addr 0-1fff: mk48t59
flashprom at ebus0 addr 0-fffff, 0-fffff not configured
SUNW,envctrl at ebus0 addr 600000-600003 ipl 2024 ipl 2021 not configured
hme0 at pci0 dev 1 function 1: Sun Happy Meal Ethernet, rev. 1
hme0: interrupting at ivec 37e1
hme0: Ethernet address 08:00:20:b1:56:97
nsphy0 at hme0 phy 1: DP83840 10/100 media interface, rev. 1
0nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
esiop0 at pci0 dev 3 function 0: Symbios Logic 53c875 (ultra-wide scsi)
esiop0: using on-board RAM
esiop0: interrupting at ivec 7e0
scsibus0 at esiop0: 16 targets, 8 luns per target
esiop1 at pci0 dev 2 function 0: Symbios Logic 53c875 (ultra-wide scsi)
esiop1: using on-board RAM
esiop1: interrupting at ivec 7e6
scsibus1 at esiop1: 16 targets, 8 luns per target
psycho1 at mainbus0 addr 0xfffc6000
SUNW,psycho: impl 0, version 4: ign 7c0 bus range 128 to 128; PCI bus 128
pci1 at psycho1
pci1: i/o space, memory space enabled
timer0 at mainbus0 addr 0xfff9fc00 irq vectors 7ec and 7ed
mc at mainbus0 not configured
psycho2 at mainbus0 addr 0xfff5e000
SUNW,psycho: impl 0, version 4: ign 100 bus range 0 to 2; PCI bus 0
DVMA map: fe000000 to ffffe000
IOTSB: 3314000 to 331c000
pci2 at psycho2
pci2: i/o space, memory space enabled
isp0 at pci2 dev 2 function 0: QLogic 1020 Fast Wide SCSI HBA
OF_mapintr failed
isp0: interrupting at ivec 110
...

The rest of the boot has scattered "OF_mapintr failed" lines.  Anyway, the
kernel loads to where it tries to mount root and then I have NFS issues or
whatever.

peter