1SANE and NetBSD
2----------------
3
4Building:
5---------
6Don't forget to use GNU make (gmake). E.g. "MAKE=gmake ./configure".
7SANE should compile and install out-of-the-box.
8
9SCSI-scanners:
10--------------
11SANE only supports the generic /dev/uk? devices. /dev/ss? won't work. If your
12scanner is detected by the ss driver, disable the driver with the "config"
13utility or compile a new kernel without ss. Set a link /dev/scanner to /dev/uk0
14(or whatever you use) and/or edit your backend's config file
15appropriately. Don't forget to set up permissions to the device file correctly
16for access by a non-root user (read/write). Auto-configuration using the "scsi
17*" lines in the config files doesn't work.
18
19Scanners with higher resolutions need bigger SCSI buffers. Therefore, edit
20sanei/sanei_scsi.c and look for these lines:
21
22#ifndef MAX_DATA
23# define MAX_DATA	(32*1024)
24#endif
25
26Increase the buffer size to e.g. 128 * 1024. Recompile.
27
28USB-scanners:
29-------------
30
31USB-Scanners are supported in principle. Using libusb is recommended.
32
33Problems when using libusb:
34
35Older kernels may need to be compiled WITHOUT DIAGNOSTIC. Disable it in the
36config file or use a GENERIC kernel without DIAGNOSTIC. If it is, you will get
37errors like "ugenioctl: USB_SET_TIMEOUT, no pipe".
38
39When using libusb, make sure, that /dev/ugen* and /dev/usb* devices are
40available. Use /dev/MAKEDEV to create them, if necessary.
41
42If you want to use libusb, disable the uscanner driver.
43
44Problems with uscanner driver:
45
46The uscanner driver also works (tested with the plustek backend). As the
47uscanner driver can't detect the vendor and product ids automatically, it's
48necessary to add the name of the device file to the backends's configuration
49file. Some backends also need the vendor and product id of the scanner.
50
51Some backends won't work with the uscanner driver because they need USB
52control messages. Use libusb instead.
53
54Parport-scanners:
55-----------------
56I don't have any information about these. Please contact me or the SANE mailing
57list if you succeeded in using one of these.
58
592003-04-24 Henning Meier-Geinitz <henning@meier-geinitz.de>
60