Linux cdc-acm-driver
Manavendra Nath Manav
mnm.kernel at gmail.com
Thu Mar 1 05:18:57 EST 2012
On Thu, Mar 1, 2012 at 1:57 PM, Stefan Dreyer
<stefan.dreyer at ddnetservice.net> wrote:
> Hi,
>
> allthough the answer is offtopic for cdc-acm-driver, i will answer, because
> maybe it helps other people in future.
> I can tell you exactly, what is going on. If the scanner switches to
> ProductId=0720 (0c2e:0720) the scanner is working in Serial-Mode. If you
> want the scanner let work as serial device, you have to use the driver
> metro-usb. The manufacturer has this driver, but that one is outdatet and
> doesn't compile on actual Linux kernel.
> I found an actual driver, which compiles even with kernel 3.2
> <https://gitorious.org/other/metro-usb/commits/master>
Thanks a lot for the prompt reply, this should adequately solve my
problem. I am able to download the driver source and compile. However,
I have run into a trivial module format error.
[root at pe1800xs serial]# modinfo metro-usb.ko
filename: metro-usb.ko
description: Metrologic Instruments Inc. - USB-POS driver
author: Aleksey Babahin <tamerlan311 at gmail.com>
author: Philip Nicastro
license: GPL
srcversion: AF4C7DDE2804EBB1578A05F
alias: usb:v0C2Ep0710d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0C2Ep0720d*dc*dsc*dp*ic*isc*ip*
depends: usbserial
vermagic: 2.6.35.6-45.fc14.i686 SMP mod_unload modversions 686
parm: debug:Print debug info (bool 1=on, 0=off) (bool)
parm: vendor:User specified vendor ID (ushort) (ushort)
parm: product:User specified product ID (ushort) (ushort)
[root at pe1800xs serial]# modprobe -f -v metro-usb
insmod /lib/modules/2.6.35.6-45.fc14.i686/kernel/drivers/usb/serial/metro-usb.ko
FATAL: Error inserting metro_usb
(/lib/modules/2.6.35.6-45.fc14.i686/kernel/drivers/usb/serial/metro-usb.ko):
Invalid module format
[root at pe1800xs serial]# uname -a
Linux pe1800xs 2.6.35.6-45.fc14.i686 #1 SMP Mon Oct 18 23:56:17 UTC
2010 i686 i686 i386 GNU/Linux
[root at pe1800xs serial]# dmesg
[84119.755750] metro_usb: version magic '2.6.35.6-45.fc14.i686 SMP
mod_unload modversions 686 ' should be '2.6.35.6-45.fc14.i686 SMP
mod_unload 686 '
I am running Fedora14 with "Force module loading option disabled". How
can I turn it ON without recompiling the kernel. Or, since I have the
souce files of the driver (attached), how can I modify the metro-usb.c
file to provide suitable "module version".
--
Manavendra Nath Manav
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 836 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120301/53914940/attachment-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: metro-usb.c
Type: text/x-csrc
Size: 19456 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120301/53914940/attachment-0002.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: metro-usb.h
Type: text/x-chdr
Size: 1808 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120301/53914940/attachment-0003.bin
More information about the Kernelnewbies
mailing list