#22031: Dir-860L MT7621 'ftdi serial card reader doesn't work with trunk'
------------------------+---------------------------------------
Reporter: anonymous | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone: Designated Driver (Trunk)
Component: kernel | Version: Trunk
Resolution: | Keywords: MT7621
------------------------+---------------------------------------
Comment (by anonymous):
Earlier there was some other problem with that card reader and CC:
https://dev.openwrt.org/ticket/20177
That ticket is closed (fixed), so I decided to check on my ZyXEL
P-2812HNU-F3 router.
I've tested the last trunk version: OpenWrt Designated Driver r49161 /
Kernel Version 4.4.6
with OSCam: Version:1.20-unstable_svn-r10991 Compiler: mips-openwrt-linux-
musl-libusb
Oscam log:
{{{
2016/04/17 02:23:14 00000000 s >> OSCam << cardserver log switched,
version 1.20-unstable_svn, build r10991 (mips-openwrt-linux-musl-libusb)
2016/04/17 02:23:14 00000000 s (main) System name = Linux
2016/04/17 02:23:14 00000000 s (main) Host name = P2812HNU-F3
2016/04/17 02:23:14 00000000 s (main) Release = 4.4.6
2016/04/17 02:23:14 00000000 s (main) Version = #1 Wed Apr 13
00:42:17 UTC 2016
2016/04/17 02:23:14 00000000 s (main) Machine = mips
2016/04/17 02:23:14 00000000 s (main) creating pidfile
/tmp/.oscam/oscam.pid with pid 928
2016/04/17 02:23:14 00000000 s (config) services reloaded: 0 services
freed, 7 services loaded, rejected 0
2016/04/17 02:23:14 00000000 s (config) userdb reloaded: 4 accounts
loaded, 0 expired, 0 disabled
2016/04/17 02:23:14 00000000 s (main) signal handling initialized
2016/04/17 02:23:14 00000000 s (config) 1 provid's loaded
2016/04/17 02:23:14 00000000 s (config) 1109 service-id's loaded in 81
ms
2016/04/17 02:23:14 00000000 s (config) 5 entries read from
oscam.whitelist
2016/04/17 02:23:14 00000000 s (net) cccam: initialized (fd=5,
port=12000)
2016/04/17 02:23:14 00000000 s (reader) phoenix [mouse] creating thread
for device /dev/ttyUSB0
2016/04/17 02:23:14 00000000 s (stat) loadbalancer: could not open
/tmp/.oscam/stat for reading (errno=2 No such file or directory)
2016/04/17 02:23:14 00000000 s (main) waiting for local card init
2016/04/17 02:23:15 764294C5 r (reader) phoenix [mouse] Buffers readed
0 bytes total time_us 75766
2016/04/17 02:23:15 272B7958 h (webif) webif: decompressed 162740 bytes
back into 389728 bytes
2016/04/17 02:23:15 272B7958 h (webif) HTTP Server running. ip=0.0.0.0
port=9000
2016/04/17 02:23:15 764294C5 r (reader) phoenix [mouse] Buffers readed
0 bytes total time_us 75191
2016/04/17 02:23:15 764294C5 r (reader) phoenix [mouse] Reader
initialized (device=/dev/ttyUSB0, detect=none, mhz=357, cardmhz=357)
2016/04/17 02:23:15 764294C5 r (reader) phoenix [mouse] card detected
2016/04/17 02:23:16 764294C5 r (reader) phoenix [mouse] Buffers readed
0 bytes total time_us 75298
2016/04/17 02:23:17 764294C5 r (reader) phoenix [mouse] Buffers readed
0 bytes total time_us 75202
2016/04/17 02:23:18 764294C5 r (reader) phoenix [mouse] Buffers readed
0 bytes total time_us 75302
2016/04/17 02:23:19 764294C5 r (reader) phoenix [mouse] Error activating
card.
2016/04/17 02:23:20 764294C5 r (reader) phoenix [mouse] Buffers readed
0 bytes total time_us 75181
2016/04/17 02:23:21 764294C5 r (reader) phoenix [mouse] Buffers readed
0 bytes total time_us 75167
2016/04/17 02:23:22 764294C5 r (reader) phoenix [mouse] Buffers readed
0 bytes total time_us 75193
2016/04/17 02:23:23 764294C5 r (reader) phoenix [mouse] Error activating
card.
2016/04/17 02:23:24 764294C5 r (reader) phoenix [mouse] Buffers readed
0 bytes total time_us 75249
2016/04/17 02:23:25 764294C5 r (reader) phoenix [mouse] Buffers readed
0 bytes total time_us 75216
2016/04/17 02:23:26 764294C5 r (reader) phoenix [mouse] Buffers readed
0 bytes total time_us 75300
2016/04/17 02:23:27 764294C5 r (reader) phoenix [mouse] Error activating
card.
2016/04/17 02:23:28 764294C5 r (reader) phoenix [mouse] THIS WAS A
FAILED START ATTEMPT No 1 out of max alloted of 1
2016/04/17 02:23:28 764294C5 r (reader) phoenix [mouse] card
initializing error
2016/04/17 02:23:29 00000000 s (main) init for all local cards done
2016/04/17 02:23:29 00000000 s (anticasc) anti cascading disabled
}}}
It seems that Oscam doesn't read inserted card!!!
With the same settings works OK with BB/CC releases and uclibc, but
doesn't work with DD trunk and musl libc.
The same happened when I tried some older trunk image(OpenWrt Designated
Driver r47026 / Kernel Version 3.18.21) from here:
[https://github.com/ScApi/P2812HNUFx-Pre-Build/tree/OpenWrt-Designated-
Driver-r47026]
{{{
root@P2812HNU-F3:~# dmesg | grep usb
[ 0.370763] usbcore: registered new interface driver usbfs
[ 0.376254] usbcore: registered new interface driver hub
[ 0.381613] usbcore: registered new device driver usb
[ 5.042555] usb 1-1: new full-speed USB device number 2 using dwc2
[ 11.562121] usbcore: registered new interface driver usbserial
[ 11.566714] usbcore: registered new interface driver usbserial_generic
[ 11.573233] usbserial: USB Serial support registered for generic
[ 11.629511] usbcore: registered new interface driver ftdi_sio
[ 11.634011] usbserial: USB Serial support registered for FTDI USB
Serial Device
[ 11.648004] usb 1-1: Detected FT232RL
[ 11.745349] usb 1-1: FTDI USB Serial Device converter now attached to
ttyUSB0
root@P2812HNU-F3:~#
}}}
{{{
root@P2812HNU-F3:~# opkg list-installed | grep usb
kmod-usb-core - 4.4.6-1
kmod-usb-dwc2 - 4.4.6-1
kmod-usb-serial - 4.4.6-1
kmod-usb-serial-ftdi - 4.4.6-1
libusb-1.0 - 1.0.20-1
usbutils - 007-2
root@P2812HNU-F3:~#
}}}
{{{
root@P2812HNU-F3:~# lsusb -v
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 1 Single TT
bMaxPacketSize0 64
idVendor 0x1d6b Linux Foundation
idProduct 0x0002 2.0 root hub
bcdDevice 4.04
iManufacturer 3 Linux 4.4.6 dwc2_hsotg
iProduct 2 DWC OTG Controller
iSerial 1 1e106000.ifxhcd
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed (or root) hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0004 1x 4 bytes
bInterval 12
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 1
wHubCharacteristic 0x0008
Ganged power switching
Per-port overcurrent protection
TT think time 8 FS bits
bPwrOn2PwrGood 1 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0000
Device Status: 0x0001
Self Powered
Bus 001 Device 002: ID 0403:6001 Future Technology Devices International,
Ltd FT232 USB-Serial (UART) IC
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0403 Future Technology Devices International, Ltd
idProduct 0x6001 FT232 USB-Serial (UART) IC
bcdDevice 6.00
iManufacturer 1 FTDI
iProduct 2 FT232R USB UART
iSerial 3 A602O3JK
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 90mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 2 FT232R USB UART
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 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 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Device Status: 0x0000
(Bus Powered)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 1 Single TT
bMaxPacketSize0 64
idVendor 0x1d6b Linux Foundation
idProduct 0x0002 2.0 root hub
bcdDevice 4.04
iManufacturer 3 Linux 4.4.6 dwc2_hsotg
iProduct 2 DWC OTG Controller
iSerial 1 1e101000.ifxhcd
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed (or root) hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0004 1x 4 bytes
bInterval 12
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 1
wHubCharacteristic 0x0008
Ganged power switching
Per-port overcurrent protection
TT think time 8 FS bits
bPwrOn2PwrGood 1 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0103 power enable connect
Device Status: 0x0001
Self Powered
root@P2812HNU-F3:~#
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/22031#comment:3>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets