New Canon LiDE60; and it seems to need a reference(?) in source

Warren Block wblock at wonkity.com
Fri Jan 27 19:36:50 PST 2006


On Tue, 24 Jan 2006, Joe Altman wrote:

> I have this device:
>
> # usbdevs -v
> port 3 addr 2: high speed, power 500 mA, config 1, CanoScan(0x221c),
> Canon(0x04a9), rev 3.06
>
> #sane-find-scanner
> found USB scanner (vendor=0x04a9 [Canon], product=0x221c [CanoScan],
> chip=GL841) at libusb:/dev/usb4:/dev/ugen0
>
> #scanimage -L
> device `genesys:libusb:/dev/usb4:/dev/ugen0' is a Canon LiDE 60
> flatbed scanner
>
> #dmesg
> ugen0: Canon CanoScan, rev 2.00/3.06, addr 2

This seems to indicate that you could use

usb /dev/ugen0

in your SANE config file.

> I've read back to some archived questions, and it seems (I'm guessing)
> that this scanner lacks a reference in these two files:
>
> /usr/src/sys/dev/usb/uscanner.c
> /usr/src/sys/dev/usb/usbdevs
>
> I say this, because while the above queries turn up the correct
> info[1] for the scanner, there is no uscanner0 device created in /dev/
> on this system:
>
> 5.4-STABLE FreeBSD 5.4-STABLE #0: Sun Jan 22 21:00:53 EST 2006
> root at a nondescript blue box:/usr/obj/usr/src/sys/ANNA2  i386
>
> So my query: if my guess is correct, and who do I ask to patch the
> relevant source?

The normal procedure is to submit a bug report with send-pr, preferably 
with patches.  It should be enough to submit the information shown 
above.

> I did look at the code, but wasn't certain how to translate from the
> three outputs above into an appropriate syntax.

I have 6.0 (strongly suggest you upgrade) and don't have that scanner. 
You should be able to add a line to the Canon section of usbdevs:

product CANON LIDE60		0x221c  CanoScan LiDE60

and then add this line to the Canon section of uscanner.c:

{{ USB_VENDOR_CANON, USB_PRODUCT_CANON_LIDE60 }, 0 },

Then rebuild (make, make install).  Probably need to -HUP usbd, also.

-Warren Block * Rapid City, South Dakota USA


More information about the freebsd-questions mailing list