I've got an HP 4020i CD-R drive, and I can't write CD's with it. I'm
using cdrecord from the pkg system, compiled a couple days ago, and a
kernel I compiled from the 1.3 sources on ftp.netbsd.org. SCSI controller
is an AIC-6360, and I've unplugged all other SCSI devices from it. This
is an i386, BTW.
I linked /dev/scgx -> /dev/cd0d (cd0 is successfully attached at boot
time, and I can use the drive as a normal CD-ROM via this).
Cdrecord can successfully inquire (-inq) and identify (-checkdrive), but
it won't actually write anything. It sits for a few minutes, then it says
"CD-Recorder not ready." Any help would be greatly appreciated.
Script started on Thu Jan 8 14:01:41 1998
# cdrecord -v -V -dummy dev=3D2,0 speed=3D2 /usr/cdimage.iso
Cdrecord release 1.5 Copyright (C) 1995-1997 J=F6rg Schilling
TOC Type: 1 =3D CD-ROM
scsidev: '2,0'
scsibus: 0 target: 2 lun: 0
Executing 'test unit ready' command on Bus 0 Target 2, Lun 0 timeout 20s
CDB: 00 00 00 00 00 00
cdrecord: Undefined error: 0. test unit ready: scsi sendcmd: no error
status: 0x2 (CHECK CONDITION)
Sense Bytes:
Sense Key: 0xFFFFFFFF [], Segment 0
Sense Code: 0x00 Qual 0x00 (no additional sense information) Fru 0x0
Sense flags: Blk 0 (not valid)=20
[previous 9 lines repeated approx. eleventy-billion times]
cdrecord: CD-Recorder not ready.
#=20
Script done on Thu Jan 8 14:10:40 1998
Chris
---------------------------------------------------------------------------=
----
Chris Jones cjo...@rupert.oscs.montana=
=2Eedu
Mad scientist in training...
"Is this going to be a stand-up programming session, sir, or another bug hu=
nt?"
On Jan 8, 2:24pm, Chris Jones wrote:
} Subject: CD-R with NetBSD-1.3?
>-- End of excerpt from Chris Jones
Well, 1.6 didn't behave any differently than 1.5 did. Anybody else have
any ideas? For that matter, is there anybody who's gotten cdrecord to
work with NetBSD-1.3?
Chris
-------------------------------------------------------------------------------
Chris Jones cjo...@rupert.oscs.montana.edu
Mad scientist in training...
"Is this going to be a stand-up programming session, sir, or another bug hunt?"
>any ideas? For that matter, is there anybody who's gotten cdrecord to
>work with NetBSD-1.3?
Yes. I have cdrecord working with NetBSD-1.3. Hardware is:
cd0 at scsibus0 targ 4 lun 0: <HP, CD-Writer 6020, 1.07> SCSI2 5/cdrom removable
--
Phil Nelson NetBSD: http://www.netbsd.org
e-mail: ph...@cs.wwu.edu !gifs: http://www.gnu.org/philosophy/gif.html
http://www.cs.wwu.edu/~phil
Ditto for me; I've successfully used "cdrecord" since last August with
weekly or biweekly -current installs...
uk0 at scsibus0 targ 6 lun 0: <YAMAHA, CDR100, 1.11> SCSI2 4/worm removable
-- Ken
My Sony CD writer will not write a CD if it is connected as a 'cd'
drive. It will only work as a 'uk' drive. I also had to install it as
a WORM drive. When I last looked at it (two months ago), the SCSI/ATAPI
subsystem wasn't ready to do writable CD-ROMs....
uk0 at scsibus0 targ 2 lun 0: <SONY, CD-R CDU926S, 1.1f> SCSI2 4/worm removable
uk0: unknown device
--
Dave Burgess Network Engineer - Nebraska On-Ramp, Inc.
*bsd FAQ Maintainer / SysAdmin for the NetBSD system in my spare bedroom
"Just because something is stupid doesn't mean there isn't someone that
doesn't want to do it...."
Still no luck. It now ID's as:
uk0 at scsibus0 targ 2 lun 0: <HP, C4324/C4325, 1.27> SCSI2 5/cdrom removable
uk0: unknown device
I know this drive works, because my friend made it work on a FreeBSD
system. I know my SCSI controller works, because I've been using a tape
drive on it.
When you say you had to install it as a WORM drive, what exactly do you
mean? I noticed that your flags are 4 instead of 5; is that it? If so,
how does one go about changing this? Is it device-specific?
On Jan 12, 3:14pm, Chris Jones wrote:
} Subject: Re: CD-R with NetBSD-1.3?
This is my impression, too.
> My Sony 920S shows up as device type 4 which I guess is WORM. Since
> the cd driver doesn't recognize this type of device as something it can
> drive, the subsystem doesn't assign it to the cd driver. Thus, I get uk0
> at target 5 lun 0.
My HP 4020i doesn't appear to have a mechanism allowing it to switch from
type 5 to type 4. Hmmph.
> For ease of use with cdrecord, I symlink /dev/scgx to /dev/uk0. I
> suspect that if this thing showed up as a cd, I could symlink /dev/scgx to
> /dev/cdxa and it would work. Incidentally, I burned my first cd last night
> on the Sony with cdrecord 1.6, NetBSD 1.2G and the uk device. It worked
> great.
Actually, I think you'd need to link it to cd0d. I tried it with cd0a,
and I couldn't even get inquiry info from the CD-R. With cd0d, however,
it works. (That's probably cd0c on other ports.) This guess is supported
by something I saw in one of many man pages I browsed; maybe cd(4).
> I suspect your problem is some timing incompatibility between the SCSI
> CD-R driver inside cdrecord and your actual device. Is it possible that
> the device you have is a different revision than the one used to develop
> the driver?
I sort of doubt it, but it *is* possible. According to the friend I
borrowed this from, this is one of the very first CD-R drives that came
out. I would think that it would, therefore, be more likely to have code
written for it.
Does anybody know if there's any reason why NetBSD doesn't have a WORM (or
CD-R) driver? Would such a thing even be necessary, or do people think
it's a better idea to go with programs like cdrecord, which uses the
generic scsi(4) interface?
On Jan 14, 2:38pm, Chris Jones wrote:
} Subject: Re: CD-R with NetBSD-1.3?
You shouldn't limit yourself to thinking that there has to be a 1-1 match
between peripheral drivers and SCSI devices. In the CAM SCSI layer, a
device may be shared between several peripheral drivers. In fact, this is
quite common. If you have the "pass through" device configured in your
kernel, it will attach, in addition to the driver you'd expect, to any
device found. The userland SCSI library uses the pass through driver to
send arbitrary commands to a device. Although the "worm" driver hasn't
been written yet, I expect that for the devices that support CD type
functionality, both the cd and worm drivers will attach to the device and
use the CAM provided locking facilities to ensure exclusive access when
it is required.
--
Justin