Date: Sun, 25 Jul 2004 14:55:12 -0400 From: Chris <chris@tellme3times.com> To: Michael Lestinsky <michael.lestinsky@mpi-hd.mpg.de> Cc: freebsd-current@freebsd.org Subject: Re: USB devices Message-ID: <41040210.1000204@tellme3times.com> In-Reply-To: <20040724193206.GB741@mobi.dhcp.mpi-hd.mpg.de> References: <20040724193206.GB741@mobi.dhcp.mpi-hd.mpg.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41040210.1000204>