Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Oct 2002 21:09:11 -0700 (PDT)
From:      Lucky@cheesy.dhs.org, Green@cheesy.dhs.org, shamrock@cypherpunks.to
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        shamrock@cypherpunks.to
Subject:   kern/44293: Unable to access audio CD under Linux emulation/ATAPICAM
Message-ID:  <20021020040911.DFE93100DC@cheesy.dhs.org>

next in thread | raw e-mail | index | archive | help

>Number:         44293
>Category:       kern
>Synopsis:       Unable to access audio CD under Linux emulation/ATAPICAM
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 19 21:10:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Lucky Green
>Release:        FreeBSD 4.6.2-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD cheesy.dhs.org 4.6.2-RELEASE-p2 FreeBSD 4.6.2-RELEASE-p2 #4: Sat Oct 19 16:57:15 PDT 2002 shamrock@cheesy.dhs.org:/usr/obj/usr/src/sys/CHEESY-20021009 i386

CD-ROM: YAMAHA CRW4416E (ATAPI, CDRW)

Software:linux_base-7.1_1

	atapicam-20020820 kernel patches
	(from http://www.cuivre.fr.eu.org/~thomas/atapicam/patches/)

	cdparanoia III release 9.7 (Red Hat RPM)

>Description:

	cdparanoia is unable to read data from an audio CD via the Linux 
emulation layer, aborting with	"Unable to read any data; drive probably not CDDA capable."

	The CDROM drive has been tested using cdda2wav, which experienced 
no problems ripping the CD both via /dev/acd0c (ATAPI) and 0,0,0 (CAM).

	/var/log/messages shows unimplemented ioctl's. marcel@FreeBSD.org 
kindly provided a patch implementing the CDROMREADAUDIO ioctl, which 
removed the "/kernel: linux: 'ioctl' fd=3, cmd=0x530e ('S',14) not 
implemented" error. The "/kernel: linux: 'ioctl' fd=3, cmd=0x5310 ('S',16)
not implemented" error remains.

However, cdparanoia is still unable to read audio data from the CDROM 
drive and continues to abort with "Unable to read any data; drive probably 
not CDDA capable."

Detailed info follows:
su-2.05b# ./cdparanoia -vsQ
cdparanoia III release 9.7 (December 13, 1999)
(C) 1999 Monty <monty@xiph.org> and Xiphophorus

Report bugs to paranoia@xiph.org
http://www.xiph.org/paranoia/

Checking /dev/cdrom for cdrom...
        Testing /dev/cdrom for cooked ioctl() interface
                CDROM sensed: Sony CDU31A or compatible


        TOC entry claims an overly large start offset: massaging.

        TOC entry claims an overly large start offset: massaging.

        TOC entry claims an overly large start offset: massaging.

        TOC entry claims an overly large start offset: massaging.

        TOC entry claims a negative start offset: massaging.

        TOC entry claims an overly large start offset: massaging.

        TOC entry claims a negative start offset: massaging.

        TOC entry claims an overly large start offset: massaging.

        TOC entry claims a negative start offset: massaging.

        TOC entry claims an overly large start offset: massaging.

        TOC entry claims a negative start offset: massaging.

        TOC entries claim non-increasing offsets: massaging.

        TOC entries claim non-increasing offsets: massaging.

        TOC entries claim non-increasing offsets: massaging.

        TOC entries claim non-increasing offsets: massaging.

        TOC entries claim non-increasing offsets: massaging.

        TOC entries claim non-increasing offsets: massaging.

        TOC entries claim non-increasing offsets: massaging.

        TOC entries claim non-increasing offsets: massaging.

        TOC entries claim non-increasing offsets: massaging. Verifying
drive can read CDDA...

        Unable to read any data; drive probably not CDDA capable.
006: Could not read any data from drive

Cdparanoia could not find a way to read audio from this drive.

su-2.05b# cdrecord -scanbus
Cdrecord 1.11a28 (i386-unknown-freebsd4.6.2) Copyright (C) 1995-2002
Jörg 
Schilling
Using libscg version 'schily-0.6'
scsibus0:
        0,0,0     0) 'YAMAHA  ' 'CRW4416E        ' '1.0j' Removable
CD-ROM
        0,1,0     1) *
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *
su-2.05b#
[...]
/var/log/messages shows the following errors:

From /var/log/messages:
Oct  9 14:31:43 cheesy /kernel: linux: 'ioctl' fd=3, cmd=0x5310 ('S',16)
not implemented
Oct  9 14:31:43 cheesy /kernel: linux: 'ioctl' fd=3, cmd=0x530e ('S',14)
not implemented

>How-To-Repeat:

On FreeBSD STABLE prior to MFC of the ATAPICAM patches:
	Recompile your kernel with the ATAPICAM patches first.

On both STABLE and CURRENT:
	- Install cdparanoia Red Hat 7.1 RPM from 
ftp://ftp.rpmfind.net/linux/redhat/7.1/en/os/i386/RedHat/RPMS/cdparanoia-alpha9.7-7.i386.rpm
(should install without errors)
	- Link /dev/cd0c to /dev/cdrom
	- Insert an audio CD into the CDROM drive	
	- Run ./cdparanoia -vsQ

	
>Fix:

	

--- dmesg.boot begins here ---
Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 4.6.2-RELEASE-p2 #4: Sat Oct 19 16:57:15 PDT 2002
    shamrock@cheesy.dhs.org:/usr/obj/usr/src/sys/CHEESY-20021009
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (400.91-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x653  Stepping = 3
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
real memory  = 134205440 (131060K bytes)
avail memory = 126078976 (123124K bytes)
Preloaded elf kernel "kernel" at 0xc046e000.
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 7 entries at 0xc00f0d10
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <ATI Mach64-GB graphics accelerator> at 0.0 irq 11
isab0: <Intel 82371AB PCI to ISA bridge> at device 4.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xb800-0xb80f at device 4.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xb400-0xb41f irq 9 at device 4.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
chip1: <Intel 82371AB Power management controller> port 0xe800-0xe80f at device 4.3 on pci0
rl0: <D-Link DFE-530TX+ 10/100BaseTX> port 0xb000-0xb0ff mem 0xe1800000-0xe18000ff irq 5 at device 10.0 on pci0
rl0: Ethernet address: 00:05:5d:34:81:33
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0xa800-0xa87f mem 0xe1000000-0xe100007f irq 10 at device 11.0 on pci0
xl0: Ethernet address: 00:50:04:d1:8a:4a
miibus1: <MII bus> on xl0
xlphy0: <3Com internal media interface> on miibus1
xlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pcm0: <CMedia CMI8738> port 0xa400-0xa4ff irq 11 at device 12.0 on pci0
orm0: <Option ROM> at iomem 0xc0000-0xc7fff on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: failed to get data.
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/9 bytes threshold
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
IPsec: Initialized Security Association Processing.
ad0: 29314MB <IBM-DTLA-307030> [59560/16/63] at ata0-master UDMA33
ad3: 2441MB <WDC AC32500H> [4960/16/63] at ata1-slave WDMA2
acd0: CD-RW <YAMAHA CRW4416E> at ata1-master PIO4
Mounting root from ufs:/dev/ad0s1a
cd0 at ata1 bus 0 target 0 lun 0
cd0: <YAMAHA CRW4416E 1.0j> Removable CD-ROM SCSI-0 device 
cd0: 16.000MB/s transfers
cd0: cd present [324683 x 2048 byte records]
--- dmesg.boot ends here ---


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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021020040911.DFE93100DC>