PDA

View Full Version : SuSE 10 problema con epson CX3650 ... ricompilare il kernel?


percky
13-10-2005, 16:22
Salve a tutti, vorrei sapere se qualcuno ha provato ad installare un scanner su linux!!
Io sto impazzendo con lo scanner della multifunzione CX3650.
a dir la verità ero riuscito ad installarlo correttamente con la 9.3 con un pacchetto chiamato iscan, il problema è sorto con la 10.0
Dopo aver installato tutti i driver possibili ho fatto una ricerca, capendo che in pratica bisognerebbe che si ricompili il modulo dello scanner all'interno del kernel mi chiede di trovare il file scanner.c che nn riesco a trovare, ho installato il pacchetto kernel-develop ma in /usr/src/linux-(versione)/drivers/usb/ il file non è presente. come faccio a trovarlo?

Ecco la guida che ho trovato, anche se lo scanner è differente il concetto è lo stesso::



***Instructions how to install the Epson Cx3200 device without recompiling
the whole kernel.***

Become root or su and edit
"/usr/src/linux-2.4.19-16mdk/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:
"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/2.4.19-16mdk/kernel/drivers/usb"

Do a "rmmod scanner" as root.

If the modules are compressed and look like "scanner.o.gz"
then remove the original file and create with gnozip or ark a new archive
file "scanner.o.gz" 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 if you then select the scanner
of choice.
In this case Epson perfection 1200U.

hilo
13-10-2005, 17:14
sono istruzioni stra-vecchie (riferite al kernel 2.4); suse 10.0 utilizza il kerrnel 2.6; fai come hai fatto con la 9.3 (che monta anch'essa un kernel 2.6)

percky
13-10-2005, 17:21
a dir la verità avevo iniziato con quella procedura, ma quando ho visto che nn funzionava ho cercato altro in giro. addirittura ho provato installando le versioni compilate nel dvd della 9.3 x la versione 10.0 ma niente.
le info più dettagliate le ho trovate sul sito del fornitore dei driver iscan... eccole qui:


For customers using Image Scan! for Linux with Kernel 2.6 or higher using a USB connection

When using Image Scan! for Linux with distributions of Kernel 2.6 or
higher, there may be cases where the scanner module cannot be unloaded
with the rmmod command.

With Kernel 2.6 or higher, it is possible that the kernel does not
support the scanner module. As a result, a USB connected scanner may
not be able to unload the scanner module from the kernel with the
modprobe -r or rmmod commands.

If this occurs, it is necessary to disconnect the scanner and restart
the OS.

If libusb-0.1.5 or higher is installed, this phenomenon can be avoided
with the following method.

Using Image Scan! for Linux via libusb
1. Connect the scanner.
Turn on the scanner and connect the USB cable.

2. Check the scanner vendor ID, model ID, and the USB scanner connection.

$ sane-find-scanner
found USB scanner (vendor=0x04b8, product=0x0110) at libusb:001:002

In the example above, vendor=0x04b8 is the vendor ID, and
product=0x0110 is the model ID.

3. Edit "/etc/sane.d/epkowa.conf".

Example: If the USB scanner vendor ID is 0x04b8, and the model ID is
0x0110, make the following addition to the line starting "usb" in
epkowa.conf.

usb 0x4b8 0x110

4. Start up Image Scan! for Linux.

$ iscan

There may be cases where the access right allows only the root user
to start up the program.
When using a user account, check the connection of the scanner with
the sane-find-scanner command, and revise the access right with the
following command.

# chmod 0666 /proc/bus/usb/001/002
(Change 001/002 to the USB scanner connection checked in step 2.)

Depending on the distribution, it may be necessary to use the package
for gcc-3.2 (*.redhat.8.0.i386.rpm).
In addition, since the scanner module is automatically loaded in the
kernel, it may not be possible to use Image Scan! for Linux.
In this case, move the scanner module or delete it.

Example: With kernel version 2.6.0, move or delete the following file,
and restart the computer.
/lib/modules/2.6.0/kernel/driver/usb/image/scanner.ko