From owner-freebsd-current Tue Mar 7 02:42:55 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id CAA12350 for current-outgoing; Tue, 7 Mar 1995 02:42:55 -0800 Received: from hda.com (hda.com [199.232.40.182]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id CAA12344 for ; Tue, 7 Mar 1995 02:42:53 -0800 Received: (dufault@localhost) by hda.com (8.6.9/8.3) id FAA06369; Tue, 7 Mar 1995 05:39:41 -0500 From: Peter Dufault Message-Id: <199503071039.FAA06369@hda.com> Subject: Re: New SCSI config To: roberto@blaise.ibp.fr Date: Tue, 7 Mar 1995 05:39:40 -0500 (EST) Cc: freebsd-current@FreeBSD.org In-Reply-To: <199503062224.XAA06988@keltia.frmug.fr.net> from "Ollivier Robert" at Mar 6, 95 11:24:33 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 2208 Sender: current-owner@FreeBSD.org Precedence: bulk Ollivier Robert writes: > I assume my answer was lost in the great mailing list lossage. Ollivier should have the answer, but here is a copy for others: > ------------------------------------------------------------ > # new wired down SCSI devices > disk sd0 at scbus0 target 0 unit 0 > disk sd1 at scbus0 target 1 > tape st0 at scbus0 target 4 > device cd0 at scbus0 target 6 > > device sd0 #Only need one of these, the code dynamically grows > device st0 #Only need one of these, the code dynamically grows > device cd0 #Only need one of these, the code dynamically grows These last three lines won't change things. > ------------------------------------------------------------ > > With or without the last three lines, config -- newly recompiled of course > -- gives me these messages : > > 321 [23:12] root@keltia:i386/conf# config KELTIA > Removing old directory ../../compile/KELTIA: Done. > sd0: Warning, can't tell what is attached to scbus0. > sd1: Warning, can't tell what is attached to scbus1. > st0: Warning, can't tell what is attached to scbus0. > cd0: Warning, can't tell what is attached to scbus0. > > Adding an > > options NEW_SCSICONF This is unrelated to the changes I made and no options are needed for those to work. The message: > sd0: Warning, can't tell what is attached to scbus0. warns you that you've wired down "sd0" but it is wired to "scbus0", which isn't wired to anything. Adding another host adapter can result in your device moving. I'll change the warning to something like: > sd0: Warning, sd0 is configured at scbus0 but scbus0 can move. To get rid of the warning wire down scbus0, as in: > controller scbus0 at aha0 The second problem is that I used the "char *wunum(int num)" function to write out the unit number. It sprintfs the unit in a static buffer. That is why in: > sd1: Warning, can't tell what is attached to scbus1. the bus unit is wrong. Checking the table in ioconf.c shows that it generates the right table. -- Peter Dufault Real Time Machine Control and Simulation HD Associates, Inc. Voice: 508 433 6936 dufault@hda.com Fax: 508 433 5267