From owner-freebsd-questions Fri May 15 17:31:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA03704 for freebsd-questions-outgoing; Fri, 15 May 1998 17:31:39 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA03695 for ; Fri, 15 May 1998 17:31:25 -0700 (PDT) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id RAA07514; Fri, 15 May 1998 17:30:31 -0700 (PDT) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpd007511; Sat May 16 00:30:23 1998 Message-ID: <355CDE1B.6201DD56@whistle.com> Date: Fri, 15 May 1998 17:30:19 -0700 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.2.5-RELEASE i386) MIME-Version: 1.0 To: Randall Hopper CC: freebsd-questions@FreeBSD.ORG Subject: Re: Rescanning SCSI-Bus without Rebooting? References: <19980514220155.B20919@ct.picker.com> <19980515192717.A8491@ct.picker.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Randall Hopper wrote: > > Julian Elischer: > |wire down uk0 then just as you'd wire down sd0 > |then it'll be there whether or not the device is on. > > I tried that; no luck. > > There's something that's not coming across here, and I'm not sure what it > is. So let me just give you the results I'm seeing: > > --------------------------------------------------------------------- > SCENARIO 1 : SCANNER OFF, BOOT UP FREEBSD, THEN TURN SCANNER ON > --------------------------------------------------------------------- > # dmesg | grep uk0 > # echo < /dev/uk0 > /dev/uk0: Device not configured. > # scsi -f /dev/uk0 -d 255 use scsi -f /dev/rsd0 -r remember WHAT scsi device you use is irrelevant. you just need one that IS there.. (any one). (leads to a chicken-egg problem if you have no other scsi devices though) since uk0 is not htere yet, you can't use it (as you discovered) You will get the usual probe messagesa as the system 'finds' the scanner (on the console). (assuming you have a scsi disk) if not try the device ssc (if you configured it in) After that you can use uk.. > scsi: unable to open device /dev/uk0: Device not configured > > --------------------------------------------------------------------- > SCENARIO 2 : SCANNER ON, BOOTUP, LEAVE SCANNER ON > --------------------------------------------------------------------- > # dmesg | grep uk0 > uk0 at scbus0 target 6 lun 0 > uk0: Unknown > # echo < /dev/uk0 > # scsi -f /dev/uk0 -d 255 it's possible that uk may not be wireable.. > > --------------------------------------------------------------------- > USING THESE KERNEL CONFIG ENTRIES (WIRE-DOWN SYNTAX) > --------------------------------------------------------------------- > controller scbus0 at ncr0 # Single bus device > disk sd0 at scbus0 target 5 unit 0 # sd0 = ZIP Drive > device uk0 at scbus0 target 6 unit 0 # uk0 = Scanner > > How do I get make SCENARIO 1's results look like SCENARIO 2 >(i.e. get SCSI unit rescan-on-open to work, as alluded to in scsi(8))? scsi units are never rescanned on open scsi units are rescanned when you ask for a rescan. (scsi -f /dev/{existing-device} -r ) > > Thanks, > > Randall To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message