Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jul 1998 15:46:15 +0200
From:      Martin Cracauer <cracauer@cons.org>
To:        The Hermit Hacker <scrappy@hub.org>, "Daniel O'Connor" <doconnor@gsoft.com.au>
Cc:        current@FreeBSD.ORG
Subject:   Re: cdrecord with 3.0-CURRENT ...
Message-ID:  <19980721154615.B1009@cons.org>
In-Reply-To: <Pine.BSF.3.96.980721052418.282A-100000@thelab.hub.org>; from The Hermit Hacker on Tue, Jul 21, 1998 at 05:28:22AM -0300
References:  <199807210250.MAA20783@cain.gsoft.com.au> <Pine.BSF.3.96.980721052418.282A-100000@thelab.hub.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In <Pine.BSF.3.96.980721052418.282A-100000@thelab.hub.org>, The Hermit Hacker wrote: 
> On Tue, 21 Jul 1998, Daniel O'Connor wrote:
> 
> > 
> > > 	Can someone tell me what this error means, when I'm trying to
> > > write to my CDR?
> > > %cdrecord -v blank=all
> > > Cdrecord release 1.6 Copyright (C) 1995-1998 Jrg Schilling
> > > TOC Type: 1 = CD-ROM
> > > cdrecord: Function not implemented. WARNING: Cannot set RR-scheduler
> > > scsidev: '0,6,0'
> > > scsibus: 0 target: 6 lun: 0
> > > cdrecord: Cannot do inquiry for CD-Recorder.
> > > cdrecord: Undefined error: 0. test unit ready: scsi sendcmd: fatal error
> > > CDB:  00 00 00 00 00 00
> > > cmd finished after 0.000s timeout 40s
> > I get this when I don't run as root, but not the 'Function not implemented' 
> > stuff so I suspect its not that :)
> 
> After doing some peaking around, I figured out what was causing the
> 'Function not implemented' error message.  Seems that newer kernels
> require the following options to be added, in order for the sched_* set of
> functions to work...
> 
> options         "P1003_1B"
> options         "_KPOSIX_PRIORITY_SCHEDULING"
> options         "_KPOSIX_VERSION=199309L"
> 
> cdrecord still doesn't appear to work, but at least I'm one step closer :(
> I still get the 'Undefined error', even working as root, so if someone can
> suggest what might have changed in the kernel to cause it to fail, where
> it once worked, that would be much appreciated...

 cdrecords checks for Posix async I/O and uses it if it's available.

 This was implemented by John Dyson in FreeBSD, but it isn't by default         
 in the kernel and it doesn't work on SMP at all.

 cdrecord's configure script uses include files or syscall stubs in
 libc (didn't check) to see if the system supports it, but it has no  
 way to tell if it's available in the running kernel.                 

 Just import a binary package compiled on 2.2.x or see if cdrecord's
 configure script has a switch to disable using Posix aio. If so,
 please make a patch against the port and submit that, it probably
 doesn't make sense to have ports use aio at this time.                         
 
 Hope this helps
        Martin                                                               
-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <cracauer@cons.org> http://www.cons.org/cracauer
BSD User Group Hamburg, Germany     http://www.bsdhh.org/

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



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