From owner-freebsd-current@FreeBSD.ORG Sun Jul 25 18:49:05 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9CF2216A4CE for ; Sun, 25 Jul 2004 18:49:05 +0000 (GMT) Received: from mail.tellme3times.com (dsl-yul-102.e-scape.net [209.47.218.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 18FB943D39 for ; Sun, 25 Jul 2004 18:49:05 +0000 (GMT) (envelope-from chris@tellme3times.com) Received: from tellme3times.com (halla.tellme3times.com [192.168.7.29]) by mail.tellme3times.com (Postfix) with ESMTP id 0706F40D8; Sun, 25 Jul 2004 14:44:26 -0400 (EDT) Message-ID: <41040210.1000204@tellme3times.com> Date: Sun, 25 Jul 2004 14:55:12 -0400 From: Chris User-Agent: Mozilla Thunderbird 0.5 (X11/20040413) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michael Lestinsky References: <20040724193206.GB741@mobi.dhcp.mpi-hd.mpg.de> In-Reply-To: <20040724193206.GB741@mobi.dhcp.mpi-hd.mpg.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org Subject: Re: USB devices X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jul 2004 18:49:05 -0000 Michael Lestinsky wrote: >Am 24.07.'04 schrieb Chris: > > >>My problem is I know that the Epson CX-5400 is supported by SANE. >> >> > >Extract the usb vendor- and device-id, use "usbdevs -v" for this. Next edit >/usr/src/sys/dev/usb/usbdevs, the file format is quite obvious. "make >buildkernel" transforms this file into #define statements and you just add >an entry for your scanner to /usr/src/sys/dev/usb/uscanner.c using the >same names as in /usr/src/sys/dev/usb/usbdevs. > >build and install a kernel or just the uscanner module and that's it. > > > >>My Epson 1260 worked fine prior to this. >> >> > >At least, the above procedure worked for me with the 1260. > >When you are done, file a PR with your diffs. > >Bye >Michael > > > I get erros building the kernel. usbdevs gave me the lollowing halla# usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), SiS(0x0000), rev 1.00 port 1 addr 2: full speed, power 2 mA, config 1, USB MFP(0x0808), EPSON(0x04b8), rev 1.00 port 2 powered port 3 powered I made the two modifications to the files; in /usr/src/sys/dev/usb/usbdevs I added the following at the end of Epson products; product USB MFP 0x0808 USB MFP in /usr/src/sys/dev/usb/uscanner.c under Epson I added {{ USB_VENDOR_EPSON, USB_PRODUCT_USB_MFP }, 0 }, when I make buildkernel I get.... . . . usbdevs_data.h:5387: error: initializer element is not constant usbdevs_data.h:5387: error: (near initialization for `usb_knowndevs[889]') usbdevs_data.h:5393: error: initializer element is not constant usbdevs_data.h:5393: error: (near initialization for `usb_knowndevs[890]') usbdevs_data.h:5399: error: initializer element is not constant usbdevs_data.h:5399: error: (near initialization for `usb_knowndevs[891]') usbdevs_data.h:5400: error: initializer element is not constant usbdevs_data.h:5400: error: (near initialization for `usb_knowndevs[892]') *** Error code 1 Stop in /usr/obj/usr/src/sys/SOUND3. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. Is there another file I need to change? Chris