Date: Thu, 12 Mar 1998 16:52:35 -0800 From: Greg Shenaut <greg@bogslab.ucdavis.edu> To: questions@FreeBSD.ORG Subject: TEAC MT-2ST problem solved Message-ID: <199803130052.QAA00555@myrtle1.bogs.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803130052.QAA00555>