Subject: -current scsi cd drivers
To: None <port-sparc@NetBSD.ORG>
From: Chris <itchris@syrinx.ucdavis.edu>
List: port-sparc
Date: 02/02/1995 15:12:05
Hi.. I'm still battling with the cd-rom drivers under
-current.. I really don't understand why this is so difficult.
sbus0 at mainbus0 ioaddr 0xf8000000: clock = 20 MHz
dma0 at sbus0 slot 0 offset 0x400000: rev 1+
esp0 at sbus0 slot 0 offset 0x800000 pri 3: ESP100 20Mhz, target 7
scsibus0 at esp0
esp0 targ 0 lun 0: <FUJITSU, M2694ES-512, 811F> SCSI2 0/direct fixed
sd0 at scsibus0: 1033MB, 1819 cyl, 15 head, 77 sec, 512 bytes/sec
esp0 targ 6 lun 0: <SONY, CD-ROM CDU-8012, 3.1a> SCSI2 5/cdrom removable
cd0 at scsibus0: cd present, 987504 x 512 byte records
bash# mount -o ro /dev/cd0a /cdrom
/dev/cd0a on /cdrom: Operation not supported by device
I used the MAKEDEV in /usr/src/etc/etc.sparc to create the cd device
files.
bash# ls -l /dev/cd*
brw-r----- 1 root operator 18, 0 Feb 2 14:17 /dev/cd0a
brw-r----- 1 root operator 18, 3 Feb 2 14:17 /dev/cd0d
My kernel contains
dma0 at sbus0 slot ? offset ?
dma* at sbus0 slot ? offset ?
esp0 at sbus0 slot ? offset ?
esp* at sbus0 slot ? offset ?
# old sun4c
le0 at sbus? slot ? offset ?
le* at sbus? slot ? offset ?
bwtwo0 at sbus? slot ? offset ?
bwtwo* at sbus? slot ? offset ?
cgthree0 at sbus? slot ? offset ?
cgthree* at sbus? slot ? offset ?
cgsix0 at sbus? slot ? offset ?
cgsix* at sbus? slot ? offset ?
scsibus* at esp?
sd* at scsibus? target ? drive ?
st* at scsibus? target ? drive ?
cd* at scsibus? target ? drive ?
I've tried this using both a DEC RRD42 with an SDEV_NOLUNS entry in
scsiconf.h, and a genuine sun drive. (Shown above in dmesg output.)
Why on earth do these both fail? I've got -current as of 26 Jan,
including kernel and userland binaries.
-Chris
-- Gabbpuy! -- Abusus non tollit usum! --
Chris Lambertus, Sys. Admin | cmlambertus@ucdavis.edu
Information Resources ACSM | (916)752-6547 Fax:(916)752-9145
University of California | Davis, California 95616
X Windows, IRC Administration | Miscellaneous other gizmos