USB devices
Chris
chris at tellme3times.com
Sun Jul 25 11:49:05 PDT 2004
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
More information about the freebsd-current
mailing list