From owner-freebsd-current Wed Nov 25 15:06:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA24471 for freebsd-current-outgoing; Wed, 25 Nov 1998 15:06:28 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from nina.pagesz.net (nina.pagesz.net [208.194.157.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA24464 for ; Wed, 25 Nov 1998 15:06:23 -0800 (PST) (envelope-from rhh@pagesz.net) Received: from stealth.dummynet. (isabella-39.pagesz.net [208.194.157.39]) by nina.pagesz.net (8.8.7/8.8.7) with ESMTP id SAA01500 for ; Wed, 25 Nov 1998 18:06:23 -0500 Received: (from rhh@localhost) by stealth.dummynet. (8.9.1/8.8.8) id SAA03957; Wed, 25 Nov 1998 18:06:56 -0500 (EST) (envelope-from rhh) Message-ID: <19981125180656.A2751@pagesz.net> Date: Wed, 25 Nov 1998 18:06:56 -0500 From: Randall Hopper To: current@FreeBSD.ORG Subject: Re: SANE & 3.0-RELEASE? - YES! Mail-Followup-To: current@FreeBSD.ORG References: <19981122101554.A8319@pagesz.net> <199811222319.QAA00516@panzer.plutotech.com> <19981122201349.B19160@pagesz.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <19981122201349.B19160@pagesz.net>; from Randall Hopper on Sun, Nov 22, 1998 at 08:13:49PM -0500 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thanks to a SANE patch for CAM from Corey Kempf , and advice from Corey and Amancio Hasty , SANE is now up-n-running ELF/CAM on my box controlling my SCSI Microtek E6 Scanner (under GIMP no less, without a GIMP recompile). Thaks for the help guys! For the archives, here's what was needed beyond applying Cory's patch, and building/installing SANE: 1) First, for convenience, wire the scanner down to a specific CAM pass-through device. Example kernel config line: device pass0 at scbus0 target 6 unit 0 # CAM passthrough = Scanner 2) Make sure the relevent CAM passthrough and TLI devices exist. In my case they did (/dev/pass0 and /dev/xpt0, respectively). 3) Open up permissions to those devices so the relevent scanner users/groups can access them. E.g.: crw-rw---- 1 root scanner 31, 0 Nov 24 18:32 /dev/pass0 crw-rw---- 1 root scanner 104, 0 Nov 17 17:32 /dev/xpt0 works for me since the scanner grp is all that need xpt0 access. 4) Insert the appropriate /dev/pass? device name into your scanner's SANE config file in /usr/local/etc/sane.d/ (mine: microtek.conf). E.g.: #Uncomment following line to disable "clever precalibration" routines... #noprecal scsi * * Scanner /dev/pass0 NOTE: Unlike pre-CAM SANEs, you cannot create a symlink or hardlink (e.g. /dev/scanner) pointing to the real pass-through device, and then add the symlink path to this file. The config file has to literally contain the /dev/pass? device name. 5) Then fire up the scanner, rescan the bus (camcontrol rescan 0), make sure the scanner is there (camcontrol devlist), and scan away! Randall To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message