Subject: progress... (?)
To: None <port-sparc@NetBSD.ORG>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: port-sparc
Date: 06/15/1995 01:35:56
So, my 4/260 is actually doing sort of OK...I seem to have made a bit of 
progress fixing some of the problems with 4/200-series support.  Most 
notably, I have a mostly-working (albeit slowly) `si' driver, much 
better than it was before OBIO bwtwo support, a change to the ddb to make 
it talk to the Sun 4 on-board console properly, some changes to MI scsi 
to make it talk to the Emulex MD21 better, dynamic mapping of sd targets 
based on prom info where appropriate (yeah! no more CRAZYMAP()!), and a 
nasty kludge to make dk_establish() at least _try_ to work on machines 
without an esp...

I am stuck in a few spots, though.  For one, the whole 
dk_establish()/bootpath mechanism is sort of broken; it makes some really 
nasty assumptions the whole way though (and is pretty much commented as 
such).  I have some ideas on how to make it work, but so far none of them 
have really `panned out'...

Also, and I'm not sure exactly the cause of this, the bwtwo driver seems 
to work ok...I get console and size info from the eeprom (I guess I've 
verified that that driver works, anyhow :-), but I panic with `bad 
instruction' if I let it call rcons_init()...I've not really had time to 
look at that in detail, and I haven't really gotten a chance to `test' 
the framebuffer yet (by running Xsun, for example).

The `si' driver is known to need some work.  It's lacking DMA support, 
etc.  It also seems to be having a hard time talking to LUN 1 of my 
Emulex MD21.  I don't seem to be able to do any transfers to the device.  
I think the probe of it succeeds only because the probe is forgiving (and 
tries multiple times, I believe).  I've got a couple of things left to 
try, but ideas are appreciated.

Along these lines, I did get a couple of suggestions about adding the lun 
to the scsi command.  I added that glue in the MI scsi code, but it 
doesn't seem to make any difference.

In any case, here's my happy 4/260, running the SunOS init/sh/fsck/etc.  
(I told you ... I'm having trouble talking to the other disk... :-)

Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California.  All rights reserved.

NetBSD 1.0A (BIGSBY) #24: Wed Jun 14 16:59:29 PDT 1995
    thorpej@bamboo:/tmp_mnt/antie/work/netbsd/src/sys/arch/sparc/compile/BIGSBY
real mem = 25034752
avail mem = 22478848
using 152 buffers containing 1245184 bytes of memory
mainbus0 (root)
cpu0 at mainbus0: SUN-4/200 series (MB86910 or WTL1164/5 FPU)
cpu0: 131072 byte write-back, 16 bytes/line, sw flush cache enabled
obio0 at mainbus0
oclock0 at obio0 addr f3000000
eeprom0 at obio0 addr f2000000
memreg0 at obio0 addr f4000000
zs0 at obio0 addr f1000000 pri 12, softpri 6
zs1 at obio0 addr f0000000 pri 12, softpri 6
bwtwo0 at obio0 addr fd000000: bwtwo, 1600 x 1280 (console)
ie0 at obio0 addr f6000000 pri 6 address 08:00:20:40:31:17, type onboard
vmel0 at mainbus0
vmes0 at mainbus0
si0 at vmes0 addr ff200000 vec 0x40 pri 2
scsibus0 at si0
si0 targ 0 lun 0: <EMULEX, MD21/S2     ESDI, A00> SCSI0 0/direct fixed
sd0 at scsibus0: 312MB, 1224 cyl, 15 head, 34 sec, 512 bytes/sec
si_dorequest: target=0, lun=1, resetting...
si0 targ 0 lun 1: <EMULEX, MD21/S2     ESDI, A00> SCSI0 0/direct fixed
sd1 at scsibus0: 620MB, 1632 cyl, 15 head, 51 sec, 512 bytes/sec
si_dorequest: target=0, lun=2, resetting...
si_dorequest: target=0, lun=3, resetting...
si_dorequest: target=0, lun=4, resetting...
si_dorequest: target=0, lun=5, resetting...
si_dorequest: target=0, lun=6, resetting...
si_dorequest: target=0, lun=7, resetting...
si_dorequest: target=4, lun=0, resetting...
si0 targ 4 lun 0: <, , > SCSI1 1/sequential removable
st0 at scsibus0: rogue, drive empty
root on sd0a
ie0: TDR detected an open 13586 clocks away
ie0: TDR detected a short 0 clocks away
ie0: TDR detected a short 0 clocks away
checking / and /usr filesystems
/dev/rsd0a: is stable.
/dev/rsd0g: is stable.
/dev/sd0a: file system is not clean; please fsck(8)
/dev/sd0g: file system is not clean; please fsck(8)
#


--------------------------------------------------------------------------
Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffet Field, CA 94035                                 Pager: 415.428.6939