OpenWrt Forum Archive

Topic: USB FTDI Serial device driver not installing

The content of this topic has been archived on 7 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I have a TL-WDR4300 v.1.1 running the latest stable version of openWRT.  I am trying to use a USB to serial adapter that has an FTDI chip.  I just did a fresh install.  I get an error installing kmod-usb-serial.  I can force it with --nodeps but I dont know if this is the source of my problem.  I cant access the usb serial ports even with everything installed

root@OpenWrt:~# opkg install kmod-usb-serial
Installing kmod-usb-serial (3.6.8-1) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/kmod-usb-serial_3.6.8-1_ar71xx.ipk.
Multiple packages (kmod-usb-core and kmod-usb-core) providing same name marked HOLD or PREFER. Using latest.
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb-serial:
 *      kernel (= 3.6.8-1-78165cd488c330388204a88bbd01df30) *
 * opkg_install_cmd: Cannot install package kmod-usb-serial.

Here is a fresh a dmesg output after the install with 2 FTDI serial devices hooked up to the 2 serial ports

dmesg | grep usb
[    4.090000] Registered led device: tp-link:green:usb1
[    4.090000] Registered led device: tp-link:green:usb2
[    8.210000] usbcore: registered new interface driver usbfs
[    8.220000] usbcore: registered new interface driver hub
[    8.230000] usbcore: registered new device driver usb
[    9.560000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[   10.000000] usb 1-1.1: new full-speed USB device number 3 using ehci-platform
[   10.200000] usb 1-1.2: new full-speed USB device number 4 using ehci-platform

Output of USB devices

cat /proc/bus/usb/devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  1, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 3.03
S:  Manufacturer=Linux 3.3.8 ehci_hcd
S:  Product=Generic Platform EHCI Controller
S:  SerialNumber=ehci-platform
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480  MxCh= 4
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=05e3 ProdID=0608 Rev=77.64
S:  Product=USB2.0 Hub
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   1 Ivl=256ms

T:  Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=  3 Spd=12   MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0403 ProdID=6001 Rev= 6.00
S:  Manufacturer=FTDI
S:  Product=FT232R USB UART
S:  SerialNumber=A700ewBx
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 90mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

T:  Bus=01 Lev=02 Prnt=02 Port=01 Cnt=02 Dev#=  4 Spd=12   MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0403 ProdID=6001 Rev= 6.00
S:  Manufacturer=FTDI
S:  Product=FT232R USB UART
S:  SerialNumber=A900frwB
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 90mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

Even after installing a FTDI driver, it all looks the same.

here is my package list

opkg list-installed | grep usb
kmod-ledtrig-usbdev - 3.3.8-1
kmod-usb-core - 3.3.8-1
kmod-usb-ohci - 3.3.8-1
kmod-usb-serial - 3.6.8-1
kmod-usb-serial-ftdi - 3.6.8-1
kmod-usb2 - 3.3.8-1

(Last edited by fnsnoop on 1 Dec 2012, 17:25)

I also tried a prolific usb serial converter with no luck, I dont think its related to FTDI.  I also just tried the usb serial converters on a TL MR3020 and it works, so it seems related to to the TL-WDR4300. The atitude adjustment build installs and there is no problem installing the kmod ftdi.  It appears to latest build be the TL-WDR4300.

(Last edited by fnsnoop on 1 Dec 2012, 17:25)

"the lastest version"... WHAT RELEASE??

looking at the opkg download url you are using TRUNK, not AArc1...

http://downloads.openwrt.org/attitude_a … pgrade.bin

OR you have an old /etc/opkg.conf, and you must do from luci:

System->Backup/Flash->Perform Reset...

(Last edited by nebbia88 on 1 Dec 2012, 09:13)

In brief, you have to download and flash the firmware in order to install those kernel modules.

some more details,
they are kernel module packages, which is dependent to the kernel they compile with.

Maybe it is too late of a Saturday, but Johan666, I would have thought that opkg was clever enough to know what version you are running? I really haven't looked at how it works, so I may be way off base.
If he is running AA, shouldn't opkg install AA relevant packages?

Once you get access to  ttyUSB, how do you actually read serial output through it? I don't see an openwrt equivalent to screen on minicom. Better still, is there a Luci App for that?

The discussion might have continued from here.