Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Sep 1998 18:19:50 -0600 (MDT)
From:      "Kenneth D. Merry" <ken@plutotech.com>
To:        eculp@webwizard.org.mx (Edwin Culp)
Cc:        ken@plutotech.com, croot@btp1da.phy.uni-bayreuth.de, current@FreeBSD.ORG, eculp@mexcom.net.mx
Subject:   Re: burn cd ?
Message-ID:  <199809250019.SAA01798@panzer.plutotech.com>
In-Reply-To: <360ADCEE.9453EE45@webwizard.org.mx> from Edwin Culp at "Sep 24, 98 06:59:42 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Edwin Culp wrote...
> "Kenneth D. Merry" wrote:
> > My guess is that one of the following is true:
> >
> > - you haven't made the xpt or pass devices in /dev
> > - you don't have the passthrough device in your kernel config file
> 
> I didn't and I made pass0-3 and xpt0-1.  Doesn't seem to be the problem.

You'll need one passthrough device for each SCSI device in your system.
(not sure how many devices you have)

> cdrecord.test: Undefined error: 0. Cannot open SCSI driver.
> Cdrecord release 1.6.1a3 Copyright (C) 1995-1998 Jörg
> Schilling
> scsidev: '0,3,0'
> scsibus: 0 target: 3 lun: 0
> 
> Can't open SCSI driver??
> 
> would the link from scgx to rcd0.ctl have anything to do with the problem?

I doubt it.  Are you running as root?  By default, you can't open the xpt
or pass devices unless you're root.

> > Please make sure that both of those devices are there, and that you've got
> > the passthrough device in your kernel.
> >
> > Try typing:
> >
> > ./cdrecord.test -scanbus
> >
> > You'll probably get a more verbose error message.

Did you try typing that?  Like I said, you'll get a more verbose error
message.  It may indicate what the problem is.

> > > with cdrecord 1.6.a12
> > >
> > > p400:/usr/local/sbin # /var/ftp/incoming/cdrecord dev=0,3,0 speed=2
> > > driver=mm >
> > > Cdrecord release 1.6a12 Copyright (C) 1995-1998 Jörg Schilling
> > > scsidev: '0,3,0'
> > > scsibus: 0 target: 3 lun: 0
> > > /var/ftp/incoming/cdrecord: Inappropriate ioctl for device. Cannot get
> > > SCSI addr
> > > .
> > > /var/ftp/incoming/cdrecord: Cannot do inquiry for CD-Recorder.
> > > /var/ftp/incoming/cdrecord: Undefined error: 0. test unit ready: scsi
> > > sendcmd: f
> > > atal error
> > > cmd finished after 0.000s timeout 40s
> >
> > You must be using a cdrecord binary build under the old SCSI subsystem.  It
> > won't work, the CAM SCSI passthrough interface is completely different.
> >
> > > They will all work with an old kernel.
> >
> > What worked with an old kernel?  How old of a kernel?
> 
> Sept. 8, 1998

Well, like I said, a binary that worked with the old SCSI subsystem will
certainly not work with CAM.   The kernel<->userland API is completely
different.

Ken
-- 
Kenneth Merry
ken@plutotech.com

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?199809250019.SAA01798>