From owner-freebsd-hackers Tue Apr 15 16:57:24 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id QAA21681 for hackers-outgoing; Tue, 15 Apr 1997 16:57:24 -0700 (PDT) Received: from argus (pm3-p5.tfs.net [206.154.183.197]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id QAA21670 for ; Tue, 15 Apr 1997 16:57:15 -0700 (PDT) Received: (from jbryant@localhost) by argus (8.6.12/8.6.12) id SAA12349; Tue, 15 Apr 1997 18:57:20 -0500 From: Jim Bryant Message-Id: <199704152357.SAA12349@argus> Subject: Re: optical drives To: tinguely@plains.nodak.edu (Mark Tinguely) Date: Tue, 15 Apr 1997 18:57:20 -0500 (CDT) Cc: freebsd-hackers@freebsd.org Reply-To: jbryant@tfs.net In-Reply-To: <199704151722.MAA29559@plains.nodak.edu> from "Mark Tinguely" at Apr 15, 97 12:22:03 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In reply: > Is there anything special (besides adding od0 to kernel configuration) that > needs to be done to get optical drives to work? > > I place an optical drive on a Adaptec 2940, every access I can think of > using causes a integer divide by zero panic. BTW, check_part() in > sys/i386/isa/diskslice_machdep.c does not check if the number of sectors > per cylinder is 0 before doing an integer divide. I am only begon to trace > why this number is zero when od_open() was building the label, I thought > these numbers were okay. never used od0 myself.. . . . ahc0 rev 0 int a irq 11 on pci0:11 ahc0: aic7870 Ultra Wide Channel, SCSI Id=7, aic7870, 255 SCBs ahc0: target 0 Tagged Queuing Device (ahc0:0:0): "SEAGATE ST32550N 0022" type 0 fixed SCSI 2 sd0(ahc0:0:0): Direct-Access 2047MB (4194058 512 byte sectors) sd0(ahc0:0:0): with 3511 cyls, 11 heads, and an average 108 sectors/track (ahc0:1:0): "IBM MTA-3230TC2210!B 0" type 0 removable SCSI 2 sd1(ahc0:1:0): Direct-Access 217MB (446325 512 byte sectors) sd1(ahc0:1:0): with 17934 cyls, 1 heads, and an average 24 sectors/track . . . the key is to jumper it from a type 7 to a type 0, and don't bother with od0... apsi drivers don't mind it either under dog or 95... if you use an IBM MTA-3230, i believe they did add the disktab i submitted to the distribution... should work with fujitsu also.. jim -- All opinions expressed are mine, if you | "I will not be pushed, stamped, think otherwise, then go jump into turbid | briefed, debriefed, indexed, or radioactive waters and yell WAHOO !!! | numbered!" - #1, "The Prisoner" jbryant@tfs.net - KC5VDJ 2M, 70cm, KPC-3+ - kc5vdj@wv0t.#neks.ks.usa.noam