If you have a scanner attached to your computer by a parallel printer cable, but expects to do so through a SCSI adapter card rather than directly to the motherboard. If you have a native parallel port scanner, read the other contributions later in this thread.

Requirements

You must be running a 2.6.x series kernel and a have the sources installed.

Add the module for <your scanner> as well as sg to /etc/modules.autoload.d/kernel-2.6; the remaining SCSI modules will be loaded automatically. Use "modprobe" to load them manually to test without rebooting.

If you try the new patches I assembled, please let me know whether or not they work (I haven't used them yet, I hand-patched my own source after applying the 2.6.x patch and finding it didn't work).
Thanks!

Last edited by rhowardiv on Sun Jan 30, 2005 7:52 pm; edited 2 times in total

If you try the new patches I assembled, please let me know whether or not they work (I haven't used them yet, I hand-patched my own source after applying the 2.6.x patch and finding it didn't work).
Thanks!

I'd go ahead and add that line to drivers/parport/share.c manually. Sorry the patch didn't all work.

Hypnos, or anyone, I'm new to building patch files...is there something I need to watch out for when combining two patches? I can't see any obvious problems. I tried rebuilding the bad diff in the patch and got the same results.

I probed the last patch but nothing work. Ok, then I open /src/usr/linux/drivers/parport/share.c and saw that
the variable:

Code:

+EXPORT_SYMBOL(parport_get_port);

didn't exist in this file. I put this variable in the share.c, genkernel all,

modified /etc/modules.autoload/kernel.2.6

add modules sg and epst

modprobe sg , modprobe epst

Code:

sane-find-scanner

found SCSI processor "HP C5190A 3740" at /dev/scanner
found SCSI processor "HP C5190A 3740" at /dev/sg0
# Your SCSI scanner was detected. It may or may not be supported by SANE. Try
# scanimage -L and read the backend's manpage.

# No USB scanners found. If you expected something different, make sure that
# you have loaded a driver for your USB host controller and have installed a
# kernel scanner module.

# Not checking for parallel port scanners.

# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.

# You may want to run this program as root to find all devices. Once you
# found the scanner devices, be sure to adjust access permissions as
# necessary.

Thanks to everyone -- I'll make it clear in my original post that those steps are for parellel port-SCSI translation, and to look below for native parallel ports scanners._________________Personal overlay | Simple backup scheme