From owner-freebsd-current Tue Sep 22 10:27:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA16504 for freebsd-current-outgoing; Tue, 22 Sep 1998 10:27:39 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from panzer.plutotech.com (panzer.plutotech.com [206.168.67.125]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA16483 for ; Tue, 22 Sep 1998 10:27:29 -0700 (PDT) (envelope-from ken@panzer.plutotech.com) Received: (from ken@localhost) by panzer.plutotech.com (8.9.1/8.8.5) id LAA15788; Tue, 22 Sep 1998 11:24:13 -0600 (MDT) From: "Kenneth D. Merry" Message-Id: <199809221724.LAA15788@panzer.plutotech.com> Subject: Re: CAM and ncr driver - my story In-Reply-To: <3607A449.9EA5341D@bbn.hp.com> from Michael Class at "Sep 22, 98 03:21:13 pm" To: michael_class@bbn.hp.com (Michael Class) Date: Tue, 22 Sep 1998 11:24:13 -0600 (MDT) Cc: yokota@zodiac.mech.utsunomiya-u.ac.jp, current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL28s (25)] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=ELM906485053-15587-0_ Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --ELM906485053-15587-0_ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Michael Class wrote... > Hello, > > I got the very same problems then you. Upgrade to (at least) ncr.c rev. > 1.130. Now it seems that almost everything is working for me with ncr > and CAM. > > One minor glitch that is left for me is that my CD-WORM (HP4020i) is not > recognized as CD-ROM drive if there is no CD in it during boot-time... Does it probe as a WORM or CDROM device? It sounds like you may have a problem similar to the one Jean-Marc Zucconi has. He has a Philips drive that fails the read capacity command with 0x04,0x00 instead of 0x3a,*, like most CDROM drives do. Try the attached patch for scsi_cd.c and see if your drive is recognized without a CD in it. Ken -- Kenneth Merry ken@plutotech.com --ELM906485053-15587-0_ Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: attachment; filename=jmz.cddiffs Content-Description: jmz.cddiffs Content-Transfer-Encoding: 7bit ==== //depot/cam/sys/cam/scsi/scsi_cd.c#84 - /usr/home/ken/perforce/cam/sys/cam/scsi/scsi_cd.c ==== *** /tmp/tmp.12821.0 Tue Sep 22 00:12:31 1998 --- /usr/home/ken/perforce/cam/sys/cam/scsi/scsi_cd.c Tue Sep 22 00:12:00 1998 *************** *** 1711,1717 **** * the error is anything else, though, we * shouldn't attach. */ ! if ((have_sense) && (asc == 0x3a) && (error_code == SSD_CURRENT_ERROR)) sprintf(announce_buf, "Attempt to query device " --- 1711,1718 ---- * the error is anything else, though, we * shouldn't attach. */ ! if ((have_sense) ! && ((asc == 0x3a) || (asc == 0x04)) && (error_code == SSD_CURRENT_ERROR)) sprintf(announce_buf, "Attempt to query device " --ELM906485053-15587-0_-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message