From shamrock@cheesy.dhs.org Sat Oct 19 21:04:58 2002 Return-Path: Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F196437B401 for ; Sat, 19 Oct 2002 21:04:57 -0700 (PDT) Received: from cheesy.dhs.org (d160.nas2.sr2.sonic.net [208.201.229.160]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05CDC43E3B for ; Sat, 19 Oct 2002 21:04:57 -0700 (PDT) (envelope-from shamrock@cheesy.dhs.org) Received: by cheesy.dhs.org (Postfix, from userid 1000) id DFE93100DC; Sat, 19 Oct 2002 21:09:11 -0700 (PDT) Message-Id: <20021020040911.DFE93100DC@cheesy.dhs.org> Date: Sat, 19 Oct 2002 21:09:11 -0700 (PDT) From: Lucky@cheesy.dhs.org, Green@cheesy.dhs.org, shamrock@cypherpunks.to Reply-To: Lucky@cheesy.dhs.org, Green@cheesy.dhs.org, shamrock@cypherpunks.to To: FreeBSD-gnats-submit@freebsd.org Cc: shamrock@cypherpunks.to Subject: Unable to access audio CD under Linux emulation/ATAPICAM X-Send-Pr-Version: 3.113 X-GNATS-Notify: >Number: 44293 >Category: kern >Synopsis: [atapicam] Unable to access audio CD under Linux emulation/ATAPICAM >Confidential: no >Severity: non-critical >Priority: low >Responsible: thomas >State: closed >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Oct 19 21:10:01 PDT 2002 >Closed-Date: Tue Apr 24 06:02:06 GMT 2007 >Last-Modified: Mon Feb 8 12:30:06 UTC 2010 >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 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 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: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 irq 11 isab0: at device 4.0 on pci0 isa0: on isab0 atapci0: port 0xb800-0xb80f at device 4.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xb400-0xb41f irq 9 at device 4.2 on pci0 usb0: 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: port 0xe800-0xe80f at device 4.3 on pci0 rl0: port 0xb000-0xb0ff mem 0xe1800000-0xe18000ff irq 5 at device 10.0 on pci0 rl0: Ethernet address: 00:05:5d:34:81:33 miibus0: on rl0 rlphy0: 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: on xl0 xlphy0: <3Com internal media interface> on miibus1 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pcm0: port 0xa400-0xa4ff irq 11 at device 12.0 on pci0 orm0: