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.
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.