Subject: Re: Strange messages from esp0.
To: <>
From: Gregory Leblanc <gleblanc@linuxweasel.com>
List: port-sparc
Date: 04/12/2002 22:22:17
--=-taRPvBYdGkspGnbqWx3J
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Thu, 2002-04-11 at 03:13, David Brownlee wrote: 
> On 10 Apr 2002, Gregory Leblanc wrote:
> 
> > Hi folks.  I've been toying around with NetBSD on my SPARCstation 2, and
> > getting some weird error messages.  Nobody seems to know what they are,
> > and folks advised me to post them here.
> > The SS2 is set up to netboot from another machine, using the
> > instructions in the NetBSD Netboot HOWTO.  The intent was to netboot,
> > label the hard drive, newfs, and put the packages on to the filesystem.
> > Oh, I'm using NetBSD-1.5.2 sparc, downloaded from ftp.netbsd.org (which
> > is my closest mirror).
> >
> > # mount /dev/sd0a /mnt
> > esp0: !TC on DATA XFER [intr 10, stat 83, step 4] prevphase 1, resid 2000
> > esp0: !TC on DATA XFER [intr 10, stat 83, step 4] prevphase 1, resid 400
> > esp0: !TC on DATA XFER [intr 10, stat 87, step 4] prevphase 0, resid c00
> > esp0: !TC on DATA XFER [intr 10, stat 87, step 4] prevphase 0, resid 400
> >
> > Similar messages show up whenever I perform any operations that involve
> > the disk (newfs, tar, ls, etc).  Oh, I almost forgot, I'm using the
> > serial console, and there are no sbus cards, and a single SCSI disk.
> > Any thoughts appreciated,
> 
> 	I've seen other reports but not experienced this on any of my
> 	sparc boxes. It could be some interaction with the specific
> 	drive you have in there - could you post a dmesg? Also it

dmesg from the 1.5.2 kernel attached. 

> 	might be worth trying to boot the kernel from the latest sparc
> 	-current snapshot to see if its fixed there - just drop it in
> 	/netbsd.test and then 'boot netbsd.test' from the PROM.

I've downloaded
ftp://ftp.netbsd.org/pub/NetBSD/arch/sparc/snapshot/20020317-1.5.3_ALPHA/binary/sets/kern.tgz
and attached a dmesg from that as well.  

For what it's worth, I just tried another drive out of this batch, and
it's doing similarly weird things.  For example, when I try to do
something like 'disklabel sd0 >/tmp/dl; disklabel -R sd0 /tmp/dl' it
complains that 

disklabel: line 6: bad bytes/sector: 514
disklabel: sector size 0

If I go ahead and change that to 512, it seems that I can label the
disk, but I still get gobs of SCSI messages.

> 	You could try disabling sync on the drive - I think that would
> 	be updating
> 		esp0    at sbus0 slot ? offset ? flags 0x0000
> 	to
> 		esp0    at sbus0 slot ? offset ? flags 0x00f0
> 	in the kernel config.

Does this require a recompile?  Sorry, I'm a Solaris guy, just getting
started on NetBSD.  Thanks,
	Greg

-- 
Portland, Oregon, USA.

--=-taRPvBYdGkspGnbqWx3J
Content-Disposition: attachment; filename=dmesg
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; name=dmesg; charset=ISO-8859-1

# dmesg
NetBSD 1.5.2 (GENERIC) #0: Wed Aug 22 04:33:09 CST 2001
    toor@proxima:/usr/src/sys/arch/sparc/compile/GENERIC
total memory =3D 32656 KB
avail memory =3D 28580 KB
using 128 buffers containing 512 KB of memory
bootpath: /sbus0/le@0,c00000
mainbus0 (root): SUNW,Sun 4/75
cpu0 at mainbus0: cache chip bug; trap page uncached: CY7C601 @ 40 MHz, TMS=
390C602A FPU
cpu0: 64K byte write-through, 32 bytes/line, hw flush: cache enabled
memreg0 at mainbus0 ioaddr 0xf4000000
clock0 at mainbus0 ioaddr 0xf2000000: mk48t02 (eeprom)
timer0 at mainbus0 ioaddr 0xf3000000 ipl 10 delay constant 17
auxreg0 at mainbus0 ioaddr 0xf7400003
zs0 at mainbus0 ioaddr 0xf1000000 ipl 12 softpri 6
zstty0 at zs0 channel 0 (console i/o)
zstty1 at zs0 channel 1
zs1 at mainbus0 ioaddr 0xf0000000 ipl 12 softpri 6
kbd0 at zs1 channel 0
ms0 at zs1 channel 1
audioamd0 at mainbus0 ioaddr 0xf7201000 ipl 13 softpri 4
audio0 at audioamd0: full duplex
sbus0 at mainbus0 ioaddr 0xf8000000: clock =3D 20 MHz
le0 at sbus0 slot 0 offset 0xc00000 level 5: address 08:00:20:b0:0b:e5
le0: 8 receive buffers, 2 transmit buffers
dma0 at sbus0 slot 0 offset 0x400000: rev 1+
esp0 at sbus0 slot 0 offset 0x800000 level 3: ESP100A, 20MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
fdc0 at mainbus0 ioaddr 0xf7200000 ipl 11 softpri 4: chip 82072
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
scsibus0: waiting 2 seconds for devices to settle...
probe(esp0:3:0): max sync rate 4.03MB/s
sd0 at scsibus0 target 3 lun 0: <IBM, DCHS04F, 2222> SCSI2 0/direct fixed
sd0: 4343 MB, 6077 cyl, 9 head, 161 sec, 514 bytes/sect x 8860131 sectors
root on le0
nfs_boot: trying RARP (and RPC/bootparam)
nfs_boot: client_addr=3D192.168.1.46 (RARP from 192.168.1.10)
nfs_boot: server_addr=3D192.168.1.10
nfs_boot: hostname=3Dnetbsd
nfs_boot: timeout...
nfs_boot: timeout...
nfs_boot: timeout...
root on 192.168.1.10:/export/client/root
root file system type: nfs
#=20

--=-taRPvBYdGkspGnbqWx3J
Content-Disposition: attachment; filename=dmesg1.5.3
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; name=dmesg1.5.3; charset=ISO-8859-1

# dmesg
NetBSD 1.5.3_RC1 (GENERIC) #2: Fri Mar 15 21:55:36 CST 2002
    root@:/usr/src/sys/arch/sparc/compile/GENERIC
total memory =3D 32656 KB
avail memory =3D 28568 KB
using 128 buffers containing 512 KB of memory
bootpath: /sbus0/le@0,c00000
mainbus0 (root): SUNW,Sun 4/75
cpu0 at mainbus0: cache chip bug; trap page uncached: CY7C601 @ 40 MHz, TMS=
390C602A FPU
cpu0: 64K byte write-through, 32 bytes/line, hw flush: cache enabled
memreg0 at mainbus0 ioaddr 0xf4000000
clock0 at mainbus0 ioaddr 0xf2000000: mk48t02 (eeprom)
timer0 at mainbus0 ioaddr 0xf3000000 ipl 10 delay constant 17
auxreg0 at mainbus0 ioaddr 0xf7400003
zs0 at mainbus0 ioaddr 0xf1000000 ipl 12 softpri 6
zstty0 at zs0 channel 0 (console i/o)
zstty1 at zs0 channel 1
zs1 at mainbus0 ioaddr 0xf0000000 ipl 12 softpri 6
kbd0 at zs1 channel 0
ms0 at zs1 channel 1
audioamd0 at mainbus0 ioaddr 0xf7201000 ipl 13 softpri 4
audio0 at audioamd0: full duplex
sbus0 at mainbus0 ioaddr 0xf8000000: clock =3D 20 MHz
le0 at sbus0 slot 0 offset 0xc00000 level 5: address 08:00:20:b0:0b:e5
le0: 8 receive buffers, 2 transmit buffers
dma0 at sbus0 slot 0 offset 0x400000: rev 1+
esp0 at sbus0 slot 0 offset 0x800000 level 3: ESP100A, 20MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
fdc0 at mainbus0 ioaddr 0xf7200000 ipl 11 softpri 4: chip 82072
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
scsibus0: waiting 2 seconds for devices to settle...
probe(esp0:3:0): max sync rate 4.03MB/s
sd0 at scsibus0 target 3 lun 0: <IBM, DCHS04F, 2222> SCSI2 0/direct fixed
sd0: 4343 MB, 6077 cyl, 9 head, 161 sec, 514 bytes/sect x 8860131 sectors
root on le0
nfs_boot: trying RARP (and RPC/bootparam)
nfs_boot: client_addr=3D192.168.1.46 (RARP from 192.168.1.10)
nfs_boot: server_addr=3D192.168.1.10
nfs_boot: hostname=3Dnetbsd
nfs_boot: timeout...
nfs_boot: timeout...
nfs_boot: timeout...
root on 192.168.1.10:/export/client/root
root file system type: nfs
#=20

--=-taRPvBYdGkspGnbqWx3J--