Subject: port-i386/16520: It doesn't support cdrom device (SONY CD-ROM CDU5221)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <beewax@gmx.net>
List: netbsd-bugs
Date: 04/27/2002 06:16:47
>Number:         16520
>Category:       port-i386
>Synopsis:       It doesn't support cdrom device (SONY CD-ROM CDU5221)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 27 06:17:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Stephanos Lagos
>Release:        NetBSD 1.5.2
>Organization:
>Environment:
NetBSD spacecow 1.5.2 NetBSD 1.5.2 (GENERIC) #3: Sat Aug 18 23:37:05 CEST 2001     he@hamster.urc.uninett.no:/usr/src/sys/arch/i386/compile/GENERIC i386
>Description:
To have a better idea about my pc(output of dmesg command) :

NetBSD 1.5.2 (GENERIC) #3: Sat Aug 18 23:37:05 CEST 2001
    he@hamster.urc.uninett.no:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium/MMX (586-class), 167.05 MHz
total memory = 48768 KB
avail memory = 39912 KB
using 635 buffers containing 2540 KB of memory
BIOS32 rev. 0 found at 0xfb5e0
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: VIA Technologies VT82C580 (Apollo VP) Host-PCI Bridge (rev. 0x10)
pcib0 at pci0 dev 7 function 0
pcib0: VIA Technologies VT82C586 (Apollo VP) PCI-ISA Bridge (rev. 0x02)
pciide0 at pci0 dev 7 function 1: VIA Technologies VT82C586 (Apollo VP) ATA33 controller
pciide0: bus-master DMA support present
pciide0: primary channel configured to compatibility mode
wd0 at pciide0 channel 0 drive 0: <ST34311A>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 4126 MB, 8944 cyl, 15 head, 63 sec, 512 bytes/sect x 8452080 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
pciide0: secondary channel configured to compatibility mode
atapibus0 at pciide0 channel 1
cd0 at atapibus0 drive 0: <SONY CD-ROM CDU5221, MT1199-A Firmware, 0.30> type 5 cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
vga1 at pci0 dev 10 function 0: ATI Technologies Mach64 GT (rev. 0x41)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
ex0 at pci0 dev 11 function 0: 3Com 3cSOHO100-TX 10/100 Ethernet (rev. 0x30)
ex0: interrupting at irq 11
ex0: MAC address 00:04:76:10:23:ed
ex0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, default 10baseT
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
lpt0 at isa0 port 0x378-0x37b irq 7
sb0 at isa0 port 0x220-0x237 irq 5 drq 1 drq2 5: dsp v4.13
audio0 at sb0: full duplex, mmap, independent
midi0 at sb0: SB MIDI UART
opl0 at sb0: model OPL3
midi1 at opl0: SB Yamaha OPL3
pcppi0 at isa0 port 0x61
midi2 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: no ISA Plug 'n Play devices found
biomask f745 netmask ff45 ttymask ffc7
pciide0:0:0: lost interrupt
	type: ata tc_bcount: 512 tc_skip: 0
pciide0:0:0: bus-master DMA error: missing interrupt, status=0x20
wd0: transfer error, downgrading to Ultra-DMA mode 1
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 1 (using DMA data transfers)
wd0d: DMA error reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
pciide0:0:0: lost interrupt
	type: ata tc_bcount: 512 tc_skip: 0
pciide0:0:0: bus-master DMA error: missing interrupt, status=0x20
wd0: transfer error, downgrading to DMA mode 2
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
wd0d: DMA error reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wd0: soft error (corrected)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
cd0(pciide0:1:0): readonly device
cd0(pciide0:1:0): readonly device
cd0(pciide0:1:0): readonly device
cd0(pciide0:1:0): readonly device
cd0(pciide0:1:0): readonly device
cd0(pciide0:1:0): readonly device
cd0(pciide0:1:0): readonly device


My problem is that i cannot mount cdrom device. It's a SONY CD-ROM CDU5221 (as you can see above).
I tried the ordinary way :
#mount -t cd9660 -o ro /dev/cd0a /mnt
and 
#mount -t cd9660 /dev/cd0a /mnt

but no response. 
I noticed that the led of the device doesn't flash after the command (but it should).

After mount command sometimes it says :
cd0(pciide0:1:0): readonly device
mount_cd9660: /dev/cd0a on /mnt: Device not configured

and other :

cd0(pciide0:1:0): readonly device
mount_cd9660: /dev/cd0a on /mnt: Read-only file system

The second I think is the expected response but if you type 'df' there is no entry about /mnt or /dev/cd0a. 
And  'ls /mnt' shows an empty directory.

Finally, I'd to say that the cdrom device is not accessable even through the installation. I have downloaded ftp://iso.de.netbsd.org/pub/NetBSD/iso/1.5.2/i386cd.iso
it boots but I couldn't install the sets from the local cdrom. So I did the install via ftp on my lan at home.

The same device works perfectly under dos, windows, linux, and FreeBSD.

Well I hope that its not something BIG (even better me) and you will help me on this.

Thanks for your time :)
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: