Subject: Re: Driver for atapi cdrom aviable
To: Manuel Bouyer <bouyer@ensta.fr>
From: Giles Lean <giles@nemeton.com.au>
List: port-i386
Date: 01/13/1996 18:52:26
On Fri, 12 Jan 1996 14:13:25 +0100 (MET) Manuel Bouyer wrote:
[List changed to port-i386 rather than current users -- I think only
the i386 port is using IDE. Someone can move it back if I'm wrong.]
> I have a working driver for atapi cdroms for beta-tests.
Good stuff.
> ftp://lix.polytechnique.fr/pub/manu/atapi.tar.gz. These diffs are against
> 1.1 sources.
The diffs don't create the atapi files in quite the right place --
I had to create the /usr/src/sys/atapi directory by hand and move
the files from /usr/src.
To compile I had to add a scsi controller to the configuration
file. I presume there is a way to tell config that we need the
SCSI files? (Any config gurus out there?)
> - Create the devices in /dev, with major 17 for block device and 21 for
> characters. The minors are as for other disk devices.
Lets see if I've got this right:
brw-r----- 1 root operator 17, 0 Jan 13 18:21 /dev/acd0a
brw-r----- 1 root operator 17, 1 Jan 13 18:21 /dev/acd0b
brw-r----- 1 root operator 17, 2 Jan 13 18:21 /dev/acd0c
brw-r----- 1 root operator 17, 3 Jan 13 18:21 /dev/acd0d
brw-r----- 1 root operator 17, 4 Jan 13 18:21 /dev/acd0e
brw-r----- 1 root operator 17, 5 Jan 13 18:21 /dev/acd0f
brw-r----- 1 root operator 17, 6 Jan 13 18:21 /dev/acd0g
brw-r----- 1 root operator 17, 7 Jan 13 18:21 /dev/acd0h
> After reboot you should be able to mount your cdrom. If the mount fails
> with a 'unit attention' message in the console, retry the mount.
I got a unit attention probe during boot. (Full dmesg output
below.) Note that the drive was identified correctly. After boot
I just get the following error:
wdc0: lost interrupt
wdc0: lost interrupt
wdc0: lost interrupt
wdc0: lost interrupt
wdc0: lost interrupt
acd0(wdc0:1): illegal length indication
Same deal trying to read the raw partitions. (The machine's "disk
light" does go on, so I think the IDE interface is being used. The
CD ROM's light doesn't go on.)
Thoughts and suggestions about what to do next are welcome; I plan
to try another IDE disk as the master, just in case the disk is
the problem.
The machine is crash and burn, by the way (hence the IDE disks :-)
and so available for testing.
Regards,
Giles
NetBSD 1.1 (TOPAZ_SCSI) #1: Sat Jan 13 17:56:04 EST 1996
giles@topaz.nemeton.com.au:/usr/src/sys/arch/i386/compile/TOPAZ_SCSI
CPU: i486DX (486-class CPU)
real mem = 20578304
avail mem = 17809408
using 276 buffers containing 1130496 bytes of memory
isa0 (root)
com0 at isa0 port 0x3f8-0x3ff irq 4: ns8250 or ns16450, no fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns8250 or ns16450, no fifo
lpt2 at isa0 port 0x3bc-0x3c3: polled
wdc0 at isa0 port 0x1f0-0x1f7 irq 14
wd0 at wdc0 drive 0: 431MB, 1018 cyl, 14 head, 62 sec, 512 bytes/sec <ST3550A>
wd0: using 16-sector 16-bit pio transfers, chs addressing
atapibus0 at wdc0
atapibus0 drive1: <MATSHITA CR-581, , 1.07> cdrom, removable.
acd0 at atapibus0 drive 1:acd0(wdc0:1): unit attention
acd0(wdc0:1): not ready
drive empty
ed0 at isa0 port 0x300-0x31f iomem 0xcc000-0xcffff irq 10: address 00:00:c0:53:28:30, type WD8013EBT (16-bit)
pc0 at isa0 port 0x60-0x6f irq 1: color
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
root device eisa not configured
root device pci not configured
biomask 4040 netmask 400 ttymask 1a