Re: [PARPORT] HP CD-Writer Plus 7200


Vidar Madsen (vidar@prosalg.no)
Mon, 15 Jun 1998 16:09:15 +0200 (MET DST)


Thanks for the (quick!) reply, Grant. I think I'm finally getting
somewhere.

I had to do a small patch in your code, though. The scsi-linux-pg.c file
attempts to use a function / macro MAX, which wasn't defined, not in my
copy of cdreader, at least. I added a line "#define MAX(a,b)
((a)>(b)?(a):(b))" at the top of scsitransp.c, and all worked fine.

Although another strange problem arose. When I access the writer with
cdrecord all seems fine (-eject, -inq et.al. worked), until I try to
actually write an image to the disc. Here's a dump;

  # cdrecord dev=0,0 speed=1 -v -dummy ~vidar/cdimage
  Cdrecord release 1.6 Copyright (C) 1995-1998 Jörg Schilling
  TOC Type: 1 = CD-ROM
  scsidev: '0,0'
  scsibus: 0 target: 0 lun: 0
  Device type : Removable CD-ROM
  Version : 0
  Response Format: 1
  Vendor_info : 'HP '
  Identifikation : 'CD-Writer+ 7200 '
  Revision : '3.01'
  Device seems to be: Generic mmc CD-RW.
  Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
  Driver flags : SWABAUDIO
  Track 01: data 2 MB
  Total size: 2 MB (00:15.88) = 1191 sectors
  Lout start: 3 MB (00:17/66) = 1191 sectors
  Blocks total: 333750 Blocks remaining: 11135
  resid: 48
  cdrecord: Timer expired. Cannot send SCSI cmd via ioctl
  #

Now the entire drive seems to hang. I can't even eject the disc with the
Eject-button. All subsequent commands (e.g. -eject, -inq, the works) gives
me the same error; "cdrecord: Timer expired. Cannot send SCSI cmd via
ioctl".

If I "rmmod pg", it won't even reload it, claiming that "Device or
resource busy". The same goes if I try to "insmod pcd.o" or any other of
their "siblings". I then have to physically dis- and reconnect the power
cord to get access to the drive again.

I know the drive has been acting up under Win NT, too, though, so it might
very well be a generic problem with the hardware.

> You should probably do a bit of research before hacking with drivers :-)

Yup. I had to try, though. ;-)

> All that commenting that line out would do is to potentially
> crash your kernel.

Well, surprisingly enough it survived. But as I said, the LEDs were
totally tripping. ;-)

Yours,
Vidar

------------------------------------------------------------------------------
Vidar Madsen | E-mail: vidar@prosalg.no
Torvastadgt. 3 | WWW: http://www.prosalg.no/~vidar/
5500 Haugesund | Phone: +47 52 75 41 63 (work) +47 52 72 75 90 (home)
Norway | Fax: +47 52 75 41 79 (work)
------------------------------------------------------------------------------

-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --



This archive was generated by hypermail 2.0b3 on Wed 30 Dec 1998 - 10:17:50 EST