Subject: Re: NetBSD 1.5T test kernel vs. serial ports
To: None <port-sparc64@NetBSD.ORG>
From: Greg Earle <earle@isolar.DynDNS.ORG>
List: port-sparc64
Date: 04/10/2001 02:22:46
>>>> Setting tty flags.
>>>> data fault: pc=1238f8c addr=48 sfsr=800809<ASI=80,ASI,W>
>>>> kernel trap 30: data access exception
>>>> Stopped in pid 34 (ttyflags) at zsopen+0x4c:	ldx	[%o0 +0x48, %l1]
>>>> db> t
>>>  
>>> That's very strange.  Ultra 5s don't have zs chips.
>>     
>> Well, it's dying when "ttyflags -a" runs, and that open()'s /dev/console,
>> then /dev/ttya and /dev/ttyb, so I can only assume that the open() of
>> either ttya or ttyb is causing that to happen somehow, even if my Ultra 5+
>> doesn't have any zs serial ports  :-)
> 
> can you run:
> 
> 	ls -l /dev/console /dev/ttya /dev/ttyb /dev/dtya /dev/dtyb
> 
> and post the output?

[2:14] netbsd4me:/dev % ls -l console ttya ttyb dtya dtyb
crw-------  1 earle  tty     0,      0 Apr 10 02:14 console
crw-------  1 uucp   wheel  12, 524288 Jan 23 06:58 dtya
crw-------  1 uucp   wheel  12, 524289 Jan 23 06:58 dtyb
crw-------  1 uucp   wheel  12,      0 Jan 23 06:58 ttya
crw-------  1 uucp   wheel  12,      1 Jan 23 06:58 ttyb

>> I suppose I could just comment out the running of "ttyflags -a" in the
>> startup, and see how much further I get booting-wise with it ...
> 
> that's an idea...  also if you could post the full device probe messages.

Haven't had a chance to reboot with "ttyflags -a" disabled yet.  Sorry.
(Work machine, ya know.)

In the meantime, here's the 1.5T kernel boot messages:

console is keyboard/display
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001
    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 1.5T (GENERIC) #14: Sat Apr  7 14:47:12 PDT 2001
    eeh@nonplus.netbsd.org:/home4/src/sys/arch/sparc64/compile/GENERIC
total memory = 128 MB
avail memory = 109 MB
using 832 buffers containing 6656 KB of memory
bootpath: /pci@1f,0/pci@1,0/scsi@1,0/disk@0,0
mainbus0 (root): SUNW,Ultra-5_10
cpu0 at mainbus0: SUNW,UltraSPARC-IIi @ 333 MHz, version 0 FPU
cpu0: physical 4K instruction (32 b/l), 4K data (32 b/l), 2048K external (64 b/l) 
psycho0 at mainbus0 addr 0xfffc4000
sabre: ign 7c0 bus range 0 to 2; simba b, PCI bus 1; simba a, PCI bus 2
DVMA map: c0002000 to ffffe000
pci0 at psycho0
pci0: i/o space, memory space enabled
simba0 at pci0 dev 1 function 1: Sun Microsystems Simba PCI bridge (rev. 0x13)
pci1 at simba0 bus 1
pci1: i/o space, memory space enabled
ebus0 at pci1 dev 1 function 0
ebus0: Sun Microsystems PCIO Ebus2, revision 0x01
auxio0 at ebus0 addr 726000-726003 addr 728000-728003 addr 72a000-72a003 addr \
72c000-72c003 addr 72f000-72f003
power at ebus0 addr 724000-724003 ipl 37 not configured
SUNW,pll at ebus0 addr 504000-504002 not configured
se at ebus0 addr 400000-40007f ipl 43 not configured
com0 at ebus0 addr 3083f8-3083ff ipl 41: ns16550a, working fifo
kbd0 at com0 (console input)
com1 at ebus0 addr 3062f8-3062ff ipl 42: ns16550a, working fifo
ms0 at com1
lpt0 at ebus0 addr 3043bc-3043cb addr 30015c-30015d addr 700000-70000f ipl 34
fdthree at ebus0 addr 3023f0-3023f7 addr 706000-70600f addr 720000-720003 ipl 39
not configured
clock0 at ebus0 addr 0-1fff: mk48t59: hostid 80ac52d4
flashprom at ebus0 addr 0-fffff not configured
SUNW,CS4231 at ebus0 addr 200000-2000ff addr 702000-70200f addr 704000-70400f \
addr 722000-722003 ipl 35 ipl 36 not configured
hme0 at pci1 dev 1 function 1: address 08:00:20:ac:52:d4
nsphy0 at hme0 phy 1: DP83840 10/100 media interface, rev. 1
nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
hme0: using ipl 33 for interrupt
ATI Technologies Mach64 B (VGA display, revision 0x5c) at pci1 dev 2 function 0 
not configured
pciide0 at pci1 dev 3 function 0: CMD Technology PCI0646 (rev. 0x03)
pciide0: bus-master DMA support present
pciide0: primary channel configured to native-PCI mode
pciide0: using ipl 32 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <ST34342A>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 4103 MB, 8894 cyl, 15 head, 63 sec, 512 bytes/sect x 8404830 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
pciide0: secondary channel configured to native-PCI mode
atapibus0 at pciide0 channel 1
cd0 at atapibus0 drive 0: <CRD-8322B, 1998/09/24, 1.05> type 5 cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
simba1 at pci0 dev 1 function 0: Sun Microsystems Simba PCI bridge (rev. 0x13)
pci2 at simba1 bus 2
pci2: i/o space, memory space enabled
siop0 at pci2 dev 1 function 0: Symbios Logic 53c875 (ultra-wide scsi)
siop0: using on-board RAM
siop0: interrupting at ipl 16
scsibus0 at siop0: 16 targets, 8 luns per target
pcons at mainbus0 not configured
No counter-timer -- using %tick at 333MHz as system clock.
Using %tick -- intr in 3330000 cycles...done.
scsibus0: waiting 2 seconds for devices to settle...
siop0: target 0 using tagged queuing
sd0 at scsibus0 target 0 lun 0: <QUANTUM, XP39100S, LYK8> SCSI2 0/direct fixed
siop0: target 0 now synchronous at 20.0Mhz, offset 16
sd0: 8682 MB, 5899 cyl, 20 head, 150 sec, 512 bytes/sect x 17781520 sectors
Kernelized RAIDframe activated
root device: sd0a
dump device (default sd0b): 
file system (default generic): ffs
root on sd0a dumps on sd0b

<crash>

	- Greg