main
projects
opinion
humor
links
sitemap
mail
about
résumé
misc

uscanner

[deprecated]

Well, uscanner has been merged into the 4.1.1-stable source branch, so don't bother with all of this stuff, its old and less likely to work.


  • 10/10/00

    Oh, and don't forget to go into /dev and run "mknod uscanner0 c 156 0" in order to creare the device node. Or "mknod uscanner1 c 156 1" if you're going to have two scanners, et al.

  • 09/30/00

    Made some adjustments to make it work with 4.1.1-STABLE/RELEASE, the usbdevs header files should be copied into /sys/dev/usb along with uscanner.c and uscanner.h unless you already have newer versions of them.


Original Message from Nick Hibma:

I've quickly thrown together a driver for USB scanners. Unforunately, I don't have a scanner available that is supported by SANE, so I can't test it.

The driver is a rip-off of the ugen, with some bits of udbp thrown in for good measure. It relies on a very recent version of usbdevs, so make sure your system is up to date.

I'd appreciate it if someone that has a supported scanner (see

	http://www.mostang.com/sane/sane-backends.html

) would pick this driver up and turn it into something that works. If your scanner is supported by SANE, but not recognised by uscanner.ko, add the id for your scanner (usbdevs -v) to usbdevs and uscanner.h and recompile and try again.

To install it:

  • Install Gimp
  • Install Sane
  • Copy uscanner.c & .h (attached) to /sys/dev/usb
  • Mkdir /sys/modules/uscanner
  • Copy Makefile (attached) to /sys/modules/uscanner/
  • patch your kernel with the file uscanner.patch (attached)
    	cd /sys/
    	patch < /tmp/uscanner.patch
    
  • And compile & load the thing
    	cd /sys/modules/uscanner
    	make load
    

Be warned! This driver will reboot your machine, break it, send your dog on a holiday and will turn the weather into hail for the next three weeks. If any of that does not happen, you just got lucky, don't have a dog or live in Scotland.

Let me know!

Nick

--
Qube Software, Ltd.                                             Private:
n_hibma@q...                              n_hibma@w...
                                          n_hibma@f...
http://www.qubesoft.com/                  http://www.etla.net/~n_hibma/

Files:

uscanner.tgz <- all the files in a tarball

uscanner/
uscanner/readme
uscanner/Makefile
uscanner/uscanner.c
uscanner/uscanner.h
uscanner/uscanner.patch
uscanner/usbdevs.h
uscanner/usbdevs_data.h

$Id: uscanner.html,v 1.4 2000/12/20 05:56:35 djk Exp $