From owner-freebsd-questions Thu Mar 12 16:55:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA11055 for freebsd-questions-outgoing; Thu, 12 Mar 1998 16:55:30 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from bogslab.ucdavis.edu (root@bogslab.ucdavis.edu [128.120.162.26]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA10967 for ; Thu, 12 Mar 1998 16:54:59 -0800 (PST) (envelope-from greg@bogslab.ucdavis.edu) Received: from myrtle1.bogs.org (root@myrtle1.bogs.org [198.137.203.39]) by bogslab.ucdavis.edu (8.7.4/8.7.3) with ESMTP id QAA19999 for ; Thu, 12 Mar 1998 16:54:42 -0800 (PST) Received: from myrtle1.bogs.org (greg@localhost [127.0.0.1]) by myrtle1.bogs.org (8.6.12/8.6.12) with ESMTP id QAA00555 for ; Thu, 12 Mar 1998 16:52:57 -0800 Message-Id: <199803130052.QAA00555@myrtle1.bogs.org> To: questions@FreeBSD.ORG Subject: TEAC MT-2ST problem solved Reply-To: gkshenaut@ucdavis.edu Date: Thu, 12 Mar 1998 16:52:35 -0800 From: Greg Shenaut Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I recently tried using my TEAC MT-2ST tapedrives with FBSD2.2.5 and it messed up. I hacked around a bit and made these changes: To scsi/scsiconf.h, I added three lines after the line containing "#define QIC_3080 0x29" #define TEAC_8 0x08 /* mt2st */ #define TEAC_88 0x88 /* mt2st */ #define TEAC_A8 0xA8 /* mt2st */ To scsi/scsiconf.c, I added these seven lines before the line containing "static st_modes mode_unktape =" static st_modes mode_teac = { {512, ST_Q_FORCE_FIXED_MODE, 0}, /* minor 0,1,2,3 */ {512, ST_Q_FORCE_FIXED_MODE, TEAC_8}, /* minor 4,5,6,7 */ {512, ST_Q_FORCE_FIXED_MODE, TEAC_88}, /* minor 8,9,10,11 */ {512, ST_Q_FORCE_FIXED_MODE, TEAC_A8} /* minor 12,13,14,15 */ }; and then later in scsi/scsiconf.c, these additional eight lines to the knowndevs array, at the end of the "#if NST > 0 ... #endif /* NST */" block { T_SEQUENTIAL, T_SEQUENTIAL, T_REMOV, "TEAC", "MT-2ST/N*", "*", "st", SC_ONE_LU, ST_Q_FORCE_FIXED_MODE|ST_Q_NO_1024|ST_Q_IGNORE_LOADS, mode_teac }, { T_SEQUENTIAL, T_SEQUENTIAL, T_REMOV, "TEAC", "MT-2ST/F*", "*", "st", SC_ONE_LU, ST_Q_FORCE_FIXED_MODE|ST_Q_NO_1024, mode_teac }, After light testing, these appear to work. I'm sending these changes to the list because I want to document them for the archives (so someone else can use them); however, it would be even better if whoever maintains the scsi code added them to the source tree. -Greg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message