From owner-freebsd-scsi Fri Dec 27 16:19:30 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id QAA17366 for freebsd-scsi-outgoing; Fri, 27 Dec 1996 16:19:30 -0800 (PST) Received: from gaia.coppe.ufrj.br (root@cisigw.coppe.ufrj.br [146.164.2.31]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id QAA17361 for ; Fri, 27 Dec 1996 16:19:27 -0800 (PST) Received: (from jonny@localhost) by gaia.coppe.ufrj.br (8.8.3/8.7.3) id WAA22879; Fri, 27 Dec 1996 22:17:58 -0200 (EDT) From: Joao Carlos Mendes Luis Message-Id: <199612280017.WAA22879@gaia.coppe.ufrj.br> Subject: Re: Iomega SCSI Zip Drive To: joerg_wunsch@uriah.heep.sax.de Date: Fri, 27 Dec 1996 22:17:57 -0200 (EDT) Cc: freebsd-scsi@freebsd.org In-Reply-To: <199612261415.PAA05373@uriah.heep.sax.de> from J Wunsch at "Dec 26, 96 03:15:54 pm" X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@freebsd.org X-Loop: FreeBSD.org Precedence: bulk #define quoting(J Wunsch) // As Joao Carlos Mendes Luis wrote: // // (driver for the SCSI Iomega Zip drive) // // > // Doesn't it work for you? // > // > Aside from the drop to debugger when I change disks, its perfect. // // Huh, that's not supposed to happen. Can you quote a little more from // your error messages? It drops into the debugger with "sdopen: no slices" error if I try to do a mount with no disk or immediatelly after changing disks.. (BTW: I'm running 2.1-stable ! 2.2 floppy does not boot in my machine.) // You might also try experimenting with the `od' driver. It is better // targeted for the requirements of a changeable media device. In order // to register your Zip drive with the `od' driver, you gotta add a quirk // record to sys/scsi/scsconf.c. Something like: // // Index: scsiconf.c // =================================================================== // RCS file: /home/ncvs/src/sys/scsi/scsiconf.c,v // retrieving revision 1.73 // diff -u -u -r1.73 scsiconf.c // --- scsiconf.c 1996/12/20 20:43:45 1.73 // +++ scsiconf.c 1996/12/26 14:12:52 // @@ -265,6 +265,10 @@ // T_DIRECT, T_OPTICAL, T_REMOV, "RICOH", "RO-*", "*", // "od", SC_ONE_LU // }, // + { // + T_DIRECT, T_OPTICAL, T_REMOV, "IOMEGA", "ZIP*", "*", // + "od", SC_ONE_LU // + }, // #endif /* NOD */ // #if NSD > 0 // { // // Of course, you need to replace the "ZIP*" by whatever you drive sends // as inquiry data (see the boot message logs). It's possible that the // above patch doesn't apply to non-current systems, i had to reorder // some of the entries in that table recently. But you should get the // picture. Well, I looked for it in scsiconf.c, and used this patch: ( BTW: What's an "options NEW_SCSICONF" ? :^) ) --- scsiconf.old Fri Dec 27 21:46:59 1996 +++ scsiconf.c Fri Dec 27 21:32:14 1996 @@ -342,6 +342,12 @@ T_OPTICAL, T_REMOV, "SONY", "SMO-C501-09" ,"*", "od", SC_MORE_LUS }, +#ifdef ZEUS + { + T_DIRECT, T_REMOV, "IOMEGA", "ZIP*" + , "*", "od", SC_ONE_LU + }, +#endif #endif /* NOD */ #if NSD > 0 { Note that ZEUS is my machine's name, and so the define above is true. (I checked this with grep -l ZIP /sys/compile/ZEUS/*) No luck. It still boots likes this: (disk in drive, options SCSIDEBUG, SCSI_REPORT_GEOMETRY, device od0, etc.) ... 100 nSEC ok, using 150 nSEC aha0 at 0x330-0x333 irq 11 drq 5 on isa (aha0:3:0): "CONNER CTT8000-S 1.07" type 1 removable SCSI 2 st0(aha0:3:0): Sequential-Access density code 0x45, drive empty (aha0:5:0): "IOMEGA ZIP 100 N.38" type 0 removable SCSI 2 sd0(aha0:5:0): Direct-Access sd0(aha0:5:0): ILLEGAL REQUEST asc:24,0 Invalid field in CDB sd0 could not mode sense (4). Using ficticious geometry 96MB (196608 512 byte sectors) sd0(aha0:5:0): with 96 cyls, 64 heads, and an average 32 sectors/track ... If I try this one: --- scsiconf.old Fri Dec 27 21:46:59 1996 +++ scsiconf.c Fri Dec 27 21:32:14 1996 @@ -342,6 +342,12 @@ T_OPTICAL, T_REMOV, "SONY", "SMO-C501-09" ,"*", "od", SC_MORE_LUS }, +#ifdef ZEUS + { + T_DIRECT, T_REMOV, "*", "*" + , "*", "od", SC_ONE_LU + }, +#endif #endif /* NOD */ #if NSD > 0 { And no changes at all again... // -- // cheers, J"org // // joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE // Never trust an operating system you don't have sources for. ;-) Jonny -- Joao Carlos Mendes Luis jonny@gta.ufrj.br +55 21 290-4698 ( Job ) jonny@cisi.coppe.ufrj.br Network Manager UFRJ/COPPE/CISI Universidade Federal do Rio de Janeiro