Hello!
I would like to ask for help please... THANKS IN ADVANCE FOR READING!!!!!
I am in the process of trying to use the old usbkbd kernel module to fix the following problem:
I have a barcode reader that SHOULD work using this old driver according to the Ubuntu wiki, and now fails to work:
Code:
[ 2131.280305] usb 7-2: new low speed USB device using uhci_hcd and address 2
[ 2131.505808] usb 7-2: configuration #1 chosen from 1 choice
[ 2131.535800] generic-usb: probe of 0003:04B4:BCA1.0009 failed with error -22
My Ubuntu 10.04: 2.6.32-28-generic i686
Steps i did:
Downloaded the linux source from Ubuntu repo and extarcted the usbkbd.c file.
I have compiled the driver: usbkbd.ko
Code:
make -C /lib/modules/2.6.32-28-generic/build M=/home/arimaniac/USBKBD modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-28-generic'
CC [M] /home/arimaniac/USBKBD/usbkbd.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/arimaniac/USBKBD/usbkbd.mod.o
LD [M] /home/arimaniac/USBKBD/usbkbd.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-28-generic'
its modinfo:
Code:
filename: usbkbd.ko
license: GPL
description: USB HID Boot Protocol keyboard driver
author: Vojtech Pavlik <vojtech@ucw.cz>
srcversion: DCBEE877043D871E760AAB2
alias: usb:v*p*d*dc*dsc*dp*ic03isc01ip01*
depends:
vermagic: 2.6.32-28-generic SMP mod_unload modversions 586
i copied it to the usb hid modules dir i.e.: /lib/modules/2.6.32-28-generic/kernel/drivers/hid/usbhid/
and installed it with insmod:
Code:
arimaniac@arimaniac-laptop:~/USBKBD$ sudo insmod /lib/modules/2.6.32-28-generic/kernel/drivers/hid/usbhid/usbkbd.ko
arimaniac@arimaniac-laptop:~/USBKBD$ dmesg | tail
[ 1144.244769] usbcore: registered new interface driver usbkbd
[ 1144.244778] usbkbd: :USB HID Boot Protocol keyboard driver
.... and added the module to the initramfs to load on bootup .. updated the linux image...
and rebooted... now the device is found ...
Code:
[ 1.384074] usb 7-2: new low speed USB device using uhci_hcd and address 2
[ 1.558035] usb 7-2: configuration #1 chosen from 1 choice
[ 1.575041] input: Guest Barcode Reader as /devices/pci0000:00/0000:00:1d.0/usb7/7-2/7-2:1.0/input/input7
SO FAR SO GOOD ... now the problem.... :
I scan a barcode and the system HANGS:
caps lock key blinks on and off...
keyboard, mouse, buttons dont work...
have to unplug it from the wall...
already tried blacklisting the usbhid module but it still hangs.
update:
it also hangs when I press the numlock key (but after i login)..
appears to get itself in an infinite loop...
update:
I FOUND SOME CYPRESS DRIVERS IN THE LINUX KERNEL... ARE THESE RELEVANT????
__A N Y__________I D E A S____?????????????
Bookmarks