[sane-devel] Re: Epson Stylus cx3200 MFP

M.B.W.D. Buitenhuis mbwdbuit@home.nl
25 Dec 2002 02:29:32 +0100


Instructions on how to install the Epson Cx3200 scanner device without
recompiling the whole kernel. (btw the printerpart is a Stylus C62).


The present scanner module doesn't like multiple interfaces on the same
device. So you have to change this.


Become root or su and edit
"/usr/src/<kernelversion>/drivers/usb/scanner.c" as follows:

find the lines:

if (dev->config[0].bNumInterfaces != 1) {

info("probe_scanner: Only one device interface is supported.");

return NULL;

}


and make the lines inactive as shown below.


/* if (dev->config[0].bNumInterfaces != 1) {

* info("probe_scanner: Only one device interface is supported.");

* return NULL;

* }

*/



*After this create a new directory to a place of your choice i.e:
"/usr/src/modules"


*copy "/usr/src/<kernelversion>/drivers/usb/scanner.c" and
"/usr/src/<kernelversion>/drivers/usb/scanner.h"

to the above mentioned directory.


*Then compile a new module as follows, ofcourse as root (kernelversions
2.4.x): 

"gcc -DMODULE -D__KERNEL__ -I/usr/src/linux/include -include
/usr/src/linux/include/linux/modversions.h -c scanner.c"


this will result in a "scanner.o" file.


Copy this file to "/lib/modules/<kernelversion>/kernel/drivers/usb"


Do a "rmmod scanner" as root. (might not be necessary if no scanner
device was loaded)


If the modules are compressed and look like "scanner.o.gz",remove the
original file and create with gnozip or ark a new archive file called
"scanner.o.gz" (yes, same as above) and add the "scanner.o" to it.


*After this is finished insert the new module with:

"modprobe scanner vendor=0x04b8 product=0x0802"


This should be enough to get the scanner up.


You can select the scanner of choice in this case a Epson perfection
1200U.


-- 
M.B.W.D. Buitenhuis <mbwdbuit@home.nl>