Correcte driver wordt niet geladen voor USB apparaat

Pagina: 1
Acties:

Onderwerpen


Acties:
  • 0 Henk 'm!

  • Rowdy.nl
  • Registratie: Juni 2003
  • Laatst online: 11-09 13:21

Rowdy.nl

Koekje d'r bij?

Topicstarter
Ik ben al sinds gisteren aan het proberen om een cardreader aan de praat te krijgen, helaas zonder veel resultaat. :/

Ik heb een GemPlus GemPC Twin USB (USB smartcard reader) aangesloten op mijn systeem (Gentoo Linux, 2.6.31-r6)

De bedoeling is om automatisch /dev/ttyUSB0 (etc) aan te laten maken zodat ik deze weer kan gebruiken. Zoals user gjs al suggereerde gebruik ik de FTDI libraries.

Hier een relevent stukje uit mijn dmesg;
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[ 1873.899027] ohci_hcd 0000:00:12.1: wakeup root hub
[ 1873.959027] hub 4-0:1.0: hub_resume
[ 1873.959041] ohci_hcd 0000:00:12.1: GetStatus roothub.portstatus [0] = 0x00010101 CSC PPS CCS
[ 1873.959049] hub 4-0:1.0: port 1: status 0101 change 0001
[ 1874.060040] hub 4-0:1.0: state 7 ports 3 chg 0002 evt 0000
[ 1874.060053] hub 4-0:1.0: port 1, status 0101, change 0000, 12 Mb/s
[ 1874.081177] ohci_hcd 0000:00:12.1: port[0] reset timeout, stat 00000111
[ 1874.132036] ohci_hcd 0000:00:12.1: GetStatus roothub.portstatus [0] = 0x00100103 PRSC PPS PES CCS
[ 1874.183037] usb 4-1: new full speed USB device using ohci_hcd and address 5
[ 1874.205059] ohci_hcd 0000:00:12.1: port[0] reset timeout, stat 00000113
[ 1874.255033] ohci_hcd 0000:00:12.1: GetStatus roothub.portstatus [0] = 0x00100103 PRSC PPS PES CCS
[ 1874.319030] usb 4-1: ep0 maxpacket = 8
[ 1874.326091] usb 4-1: skipped 1 descriptor after interface
[ 1874.328089] usb 4-1: default language 0x0409
[ 1874.333087] usb 4-1: udev 5, busnum 4, minor = 388
[ 1874.333093] usb 4-1: New USB device found, idVendor=08e6, idProduct=3437
[ 1874.333099] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1874.333105] usb 4-1: Product: USB SmartCard Reader
[ 1874.333110] usb 4-1: Manufacturer: Gemplus
[ 1874.333268] usb 4-1: uevent
[ 1874.334650] usb 4-1: usb_probe_device
[ 1874.334660] usb 4-1: configuration #1 chosen from 1 choice
[ 1874.335094] usb 4-1: adding 4-1:1.0 (config #1, interface 0)
[ 1874.335164] usb 4-1:1.0: uevent
[ 1874.335408] drivers/usb/core/inode.c: creating file '005'
[ 1874.335456] hub 4-0:1.0: state 7 ports 3 chg 0000 evt 0002
[ 1874.335678] usb 4-1: uevent
[ 1876.701253] hub 1-0:1.0: hub_suspend
[ 1876.701269] usb usb1: bus auto-suspend
[ 1876.701275] ehci_hcd 0000:00:12.2: suspend root hub


Lsusb
code:
1
2
3
4
5
6
7
8
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 005: ID 08e6:3437 Gemplus GemPC Twin SmartCard Reader
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub


Lsmod:
code:
1
2
3
4
lsmod
Module                  Size  Used by
ftdi_sio               57200  0
usbserial              33188  1 ftdi_sio


Ik heb ook geprobeerd om de modules handmatig te laden, zelfs met vendor id van de reader, maar ook dit werkt niet... :/
code:
1
2
3
4
#modprobe ftdi_sio
#modprobe usbserial
#modprobe ftdi_sio vendor=0x08e6 product=0x3437
#modprobe usbserial vendor=0x08e6 product=0x3437


Ik hoop dat hier een guru een antwoord weet; ik sta atm met m'n kop tegen een muur op te lopen telkens... :|

Note: voor zover ik kan zien werkt de reader gewoon, zie ook de output in deze post

Rowdy.nl - X++ by day. C# by night. I drink coffee in the morning and beer in the evening.


Acties:
  • 0 Henk 'm!

  • Rowdy.nl
  • Registratie: Juni 2003
  • Laatst online: 11-09 13:21

Rowdy.nl

Koekje d'r bij?

Topicstarter
Subtiele kick... ;)

Na een hoop geklooi en installeren van packages etc, updaten van baselayout zodat udev ook kan werken :S Ben ik nog helaas niet veel verder...

Als ik middels lsusb kijk lijkt het erop dat mijn device gewoon niet herkend wordt, en dus de correcte driver niet geladen wordt?

 ~ # lsusb -v -d 08e6:3437

Bus 004 Device 002: ID 08e6:3437 Gemplus GemPC Twin SmartCard Reader
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x08e6 Gemplus
  idProduct          0x3437 GemPC Twin SmartCard Reader
  bcdDevice            1.00
  iManufacturer           1 Gemplus
  iProduct                2 USB SmartCard Reader
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           93
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass        11 Chip/SmartCard
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              0
      ** UNRECOGNIZED:  36 21 00 01 00 07 03 00 00 00 a0 0f 00 00 a0 0f 00 00 00 00 2a 00 00 16 40 05 00 00 fe 00 00 00 00 00 00 00 00 00 00 00 30 02 01 00 0f 01 00 00 00 00 00 00 00 01
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              24
Device Status:     0x0000
  (Bus Powered)

[ Voor 96% gewijzigd door Rowdy.nl op 21-05-2010 16:54 ]

Rowdy.nl - X++ by day. C# by night. I drink coffee in the morning and beer in the evening.