Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Sep 2002 15:01:26 -0700
From:      Peter Wemm <peter@wemm.org>
To:        Scott Long <scott_long@btc.adaptec.com>
Cc:        Jens Schweikhardt <schweikh@schweikhardt.net>, FreeBSD SCSI <freebsd-scsi@freebsd.org>
Subject:   Re: Wiring down devices does not work 
Message-ID:  <20020921220126.31A022A88D@canning.wemm.org>
In-Reply-To: <20020921212720.GA92567@hollin.btc.adaptec.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
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:
> > <LINT>
> > # 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
> > </LINT>
> > 
> > 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020921220126.31A022A88D>