From owner-freebsd-scsi Sat Sep 21 15: 1:29 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F103E37B401 for ; Sat, 21 Sep 2002 15:01:26 -0700 (PDT) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C9AE43E6A for ; Sat, 21 Sep 2002 15:01:26 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by canning.wemm.org (Postfix) with ESMTP id 31A022A88D; Sat, 21 Sep 2002 15:01:26 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Scott Long Cc: Jens Schweikhardt , FreeBSD SCSI Subject: Re: Wiring down devices does not work In-Reply-To: <20020921212720.GA92567@hollin.btc.adaptec.com> Date: Sat, 21 Sep 2002 15:01:26 -0700 From: Peter Wemm Message-Id: <20020921220126.31A022A88D@canning.wemm.org> Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Scott Long wrote: > On Sat, Sep 21, 2002 at 07:07:10PM +0200, Jens Schweikhardt wrote: > > hello, world\n > > > > I'm trying to wire down my devices according to LINT, on -current: > > > > # The syntax for wiring down devices is: > > > > # device scbus0 at ahc0 # Single bus device > > # device scbus1 at ahc1 bus 0 # Single bus device > > # device scbus3 at ahc2 bus 0 # Twin bus device > > # device scbus2 at ahc2 bus 1 # Twin bus device > > # device da0 at scbus0 target 0 unit 0 > > # device da1 at scbus3 target 1 > > # device da2 at scbus2 target 3 > > # device sa1 at scbus1 target 6 > > > > > > But if I write (yes, I've got an ahc, it works without wiring): > > ... > > device ahc > > device scbus0 at ahc0 # line 84 > > device da0 at scbus0 target 2 > > device da1 at scbus0 target 8 > > device da2 at scbus0 target 9 > > device da3 at scbus0 target 10 > > device da4 at scbus0 target 11 > > > > then what happens is > > > > $ make buildkernel KERNCONF=HAL > > > > -------------------------------------------------------------- > > >>> Kernel build for HAL started on Sat Sep 21 19:01:10 CEST 2002 > > -------------------------------------------------------------- > > ===> HAL > > mkdir -p /usr/obj/src/current/sys > > cd /src/current/sys/i386/conf; PATH=/usr/obj/src/current/i386/usr/sbin:/us r/obj/src/current/i386/usr/bin:/usr/obj/src/current/i386/usr/games:/sbin:/b in:/usr/sbin:/usr/bin:/usr/local/bin config -d /usr/obj/src/current/sys/H AL HAL > > config: line 84: ahc 0 not defined > > *** Error code 1 > > > > I've tried variations with ahc0 and "ahc 0" to no avail. What am I > > missing? > > > > Regards, > > > > Jens > > Yep, it looks like config(8) no longer accepts the syntax needed for > wiring. This might be related to the elimination of count devices by > Peter Wemm. In any case, can you try wiring by putting hints in > /boot/device.hints? Examples for this are in /sys/conf/NOTES. If this > too is broken, then we have a major regression to fix in 5.0. It definatly works in 5.0. I was using this up till about a month ago: hint.scbus.0.at="ahc0" hint.scbus.0.bus="0" hint.scbus.1.at="ahc1" hint.scbus.1.bus="0" hint.da.4.at="scbus1" hint.da.4.target="0" hint.da.5.at="scbus1" hint.da.5.target="1" However, cam_periph.c on -current has a bugfix that doesn't appear to have been MFC'ed: revision 1.40 date: 2002/08/24 02:47:01; author: peter; state: Exp; lines: +9 -11 Fix unit wiring. Also, change the variable "hit" to "wired" so that it is more obvious. ie: wiring works better in -current than -stable. :-( Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message