From owner-freebsd-questions Thu Oct 12 22:38:00 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id WAA16071 for questions-outgoing; Thu, 12 Oct 1995 22:38:00 -0700 Received: from mail.telstra.com.au (mail.telstra.com.au [192.148.160.10]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id WAA16066 for ; Thu, 12 Oct 1995 22:37:53 -0700 Received: from mail_gw.fwall.telecom.com.au(192.148.147.10) by mail via smap (V1.3) id sma003226; Fri Oct 13 14:50:50 1995 Received: from cdn_mail.dn.itg.telecom.com.au(144.135.109.134) by mail_gw.telecom.com.au via smap (V1.3) id sma006521; Fri Oct 13 14:49:45 1995 Received: from rodin.cssc-syd.tansu.com.au (rodin.cssc-syd.tansu.com.au [149.135.252.15]) by cdn_mail.dn.itg.telecom.com.au (8.6.11/8.6.9) with ESMTP id OAA23399; Fri, 13 Oct 1995 14:49:44 +1000 Received: from crab.cssc-syd.tansu.com.au (crab.ind.tansu.com.au [149.135.100.23]) by rodin.cssc-syd.tansu.com.au (8.6.11/8.6.9) with ESMTP id OAA20541; Fri, 13 Oct 1995 14:49:00 +1000 Received: from kiwi.cssc-syd.tansu.com.au (raoul@kiwi.cssc-syd.tansu.com.au [149.135.104.48]) by crab.cssc-syd.tansu.com.au (8.6.9/8.6.9) with ESMTP id OAA10470; Fri, 13 Oct 1995 14:48:57 +1000 Received: (raoul@localhost) by kiwi.cssc-syd.tansu.com.au (8.6.9/8.6.9) id OAA16111; Fri, 13 Oct 1995 14:48:56 +1000 Message-Id: <199510130448.OAA16111@kiwi.cssc-syd.tansu.com.au> Subject: Re: xcdplayer and reading the TOC To: rjs@critter.clark.net Date: Fri, 13 Oct 1995 14:48:56 +1000 (EST) Cc: freebsd-questions@freebsd.org From: raoul@cssc-syd.tansu.com.au (Raoul Golan) X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1704 Sender: owner-questions@freebsd.org Precedence: bulk Ages ago, at the beginning of the year, Ron Steele wrote the following in freebsd-questions: > I am still trying to get a cd player to work on 2.0R. I compiled xcdplayer > (with the patches for FreeBSD) with debug and stepped through the > code with gdb to see where it is failing. The drive is opened and the > tocheader is read and the values in it look reasonable, but the ioctl to > read the toc entries fails and returns an error code which indicates that > the drive is not configured. I would really like to get this to work, but > I don't have a clue as to how to go about debugging the kernel. Any > suggestions about what might be wrong, or of a way to debug this without > having to learn more than I really want to about kernel debugging? Well, months later, now that 2.0.5 has been released, I find that this is still the case! Did you Ron, or someone else, manage to come up with a fix? The existing mcd audio driver has some problems with it: 1. the TOC entries are read incorrectly, the ioctl writes to the wrong area of memory, causing memory faults in the application 2. if the drive door is open, it is closed by the driver whenever the device is opened by a process (causing lots of problems for software like xcdplayer which open the device regularly for updates - you can't keep the door open long enough to change disks!) 3. the volume controls do not work. I've managed to fix 1. and 2., and I'm currently adding 3 (using the Linux driver as a guide). Now I find that someone else has experienced the same thing. Was there any work done on this? I'd rather not have to patch my kernel myself if there's already a patch for me out there. Thanks, Raoul