1141cc406Sopenharmony_ciSANE and NetBSD 2141cc406Sopenharmony_ci---------------- 3141cc406Sopenharmony_ci 4141cc406Sopenharmony_ciBuilding: 5141cc406Sopenharmony_ci--------- 6141cc406Sopenharmony_ciDon't forget to use GNU make (gmake). E.g. "MAKE=gmake ./configure". 7141cc406Sopenharmony_ciSANE should compile and install out-of-the-box. 8141cc406Sopenharmony_ci 9141cc406Sopenharmony_ciSCSI-scanners: 10141cc406Sopenharmony_ci-------------- 11141cc406Sopenharmony_ciSANE only supports the generic /dev/uk? devices. /dev/ss? won't work. If your 12141cc406Sopenharmony_ciscanner is detected by the ss driver, disable the driver with the "config" 13141cc406Sopenharmony_ciutility or compile a new kernel without ss. Set a link /dev/scanner to /dev/uk0 14141cc406Sopenharmony_ci(or whatever you use) and/or edit your backend's config file 15141cc406Sopenharmony_ciappropriately. Don't forget to set up permissions to the device file correctly 16141cc406Sopenharmony_cifor access by a non-root user (read/write). Auto-configuration using the "scsi 17141cc406Sopenharmony_ci*" lines in the config files doesn't work. 18141cc406Sopenharmony_ci 19141cc406Sopenharmony_ciScanners with higher resolutions need bigger SCSI buffers. Therefore, edit 20141cc406Sopenharmony_cisanei/sanei_scsi.c and look for these lines: 21141cc406Sopenharmony_ci 22141cc406Sopenharmony_ci#ifndef MAX_DATA 23141cc406Sopenharmony_ci# define MAX_DATA (32*1024) 24141cc406Sopenharmony_ci#endif 25141cc406Sopenharmony_ci 26141cc406Sopenharmony_ciIncrease the buffer size to e.g. 128 * 1024. Recompile. 27141cc406Sopenharmony_ci 28141cc406Sopenharmony_ciUSB-scanners: 29141cc406Sopenharmony_ci------------- 30141cc406Sopenharmony_ci 31141cc406Sopenharmony_ciUSB-Scanners are supported in principle. Using libusb is recommended. 32141cc406Sopenharmony_ci 33141cc406Sopenharmony_ciProblems when using libusb: 34141cc406Sopenharmony_ci 35141cc406Sopenharmony_ciOlder kernels may need to be compiled WITHOUT DIAGNOSTIC. Disable it in the 36141cc406Sopenharmony_ciconfig file or use a GENERIC kernel without DIAGNOSTIC. If it is, you will get 37141cc406Sopenharmony_cierrors like "ugenioctl: USB_SET_TIMEOUT, no pipe". 38141cc406Sopenharmony_ci 39141cc406Sopenharmony_ciWhen using libusb, make sure, that /dev/ugen* and /dev/usb* devices are 40141cc406Sopenharmony_ciavailable. Use /dev/MAKEDEV to create them, if necessary. 41141cc406Sopenharmony_ci 42141cc406Sopenharmony_ciIf you want to use libusb, disable the uscanner driver. 43141cc406Sopenharmony_ci 44141cc406Sopenharmony_ciProblems with uscanner driver: 45141cc406Sopenharmony_ci 46141cc406Sopenharmony_ciThe uscanner driver also works (tested with the plustek backend). As the 47141cc406Sopenharmony_ciuscanner driver can't detect the vendor and product ids automatically, it's 48141cc406Sopenharmony_cinecessary to add the name of the device file to the backends's configuration 49141cc406Sopenharmony_cifile. Some backends also need the vendor and product id of the scanner. 50141cc406Sopenharmony_ci 51141cc406Sopenharmony_ciSome backends won't work with the uscanner driver because they need USB 52141cc406Sopenharmony_cicontrol messages. Use libusb instead. 53141cc406Sopenharmony_ci 54141cc406Sopenharmony_ciParport-scanners: 55141cc406Sopenharmony_ci----------------- 56141cc406Sopenharmony_ciI don't have any information about these. Please contact me or the SANE mailing 57141cc406Sopenharmony_cilist if you succeeded in using one of these. 58141cc406Sopenharmony_ci 59141cc406Sopenharmony_ci2003-04-24 Henning Meier-Geinitz <henning@meier-geinitz.de> 60