Re: Ragentek usb-serial driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 04, 2017 at 12:36:00PM +0200, Alexander Kozyrev wrote:
> Hi all!
> 
> Have troubles with Ragentek chip in Mediatek Leagoo Android phone. It's
> tries to connect as ttyACM0 device and ttyUSB0 - unsuccessful.
> 
> [2.219806] usb 1-1: new high-speed USB device number 36 using xhci_hcd
> [2.385119] usb 1-1: New USB device found, idVendor=0e8d, idProduct=2008
> [2.385125] usb 1-1: New USB device strings: Mfr=2, Product=3,
> SerialNumber=4
> [2.385128] usb 1-1: Product: j5808
> [2.385130] usb 1-1: Manufacturer: Ragentek
> [2.385132] usb 1-1: SerialNumber: 0123456789ABCDEF
> [3.368257] usb 1-1: USB disconnect, device number 36
> [3.742359] usb 1-1: new high-speed USB device number 37 using xhci_hcd
> [3.908089] usb 1-1: New USB device found, idVendor=0e8d, idProduct=201c
> [3.908095] usb 1-1: New USB device strings: Mfr=2, Product=3,
> SerialNumber=4
> [3.908097] usb 1-1: Product: j5808
> 
> 
> [3.908099] usb 1-1: Manufacturer: Ragentek
> [3.908101] usb 1-1: SerialNumber: 0123456789ABCDEF
> [6.436388] usb 1-1: USB disconnect, device number 37
> [8.691575] usb 1-1: new high-speed USB device number 38 using xhci_hcd
> [8.856068] usb 1-1: New USB device found, idVendor=0e8d, idProduct=2000
> [8.856073] usb 1-1: New USB device strings: Mfr=1, Product=2,
> SerialNumber=0
> [8.856077] usb 1-1: Product: MT65xx Preloader
> [8.856080] usb 1-1: Manufacturer: MediaTek
> [8.878070] usbserial_generic 1-1:1.0: The "generic" usb-serial driver is
> only for testing and one-off prototypes.
> [8.878074] usbserial_generic 1-1:1.0: Tell linux-usb@xxxxxxxxxxxxxxx to
> add your device to a proper driver.
> [8.878076] usbserial_generic 1-1:1.0: generic converter detected
> [8.878333] usb 1-1: generic converter now attached to ttyUSB0
> [8.918180] usbserial_generic 1-1:1.1: Generic device with no bulk out,
> not allowed.
> [8.918191] usbserial_generic: probe of 1-1:1.1 failed with error -5
> [8.918207] cdc_acm: probe of 1-1:1.1 failed with error -16
> [11.358968] usb 1-1: USB disconnect, device number 38

The driver does bind to interface 0 above, but then the device
disconnects itself a couple of seconds later.

> [11.359186] generic ttyUSB0: generic converter now disconnected from
> ttyUSB0
> [71.359205] usbserial_generic 1-1:1.0: device disconnected
> [73.499064] usb 1-1: new high-speed USB device number 39 using xhci_hcd
> [73.663695] usb 1-1: New USB device found, idVendor=0bb4, idProduct=0c01
> [73.663716] usb 1-1: New USB device strings: Mfr=1, Product=2,
> SerialNumber=3
> [73.663718] usb 1-1: Product: Android
> [73.663720] usb 1-1: Manufacturer: MediaTek
> [73.663722] usb 1-1: SerialNumber: X560I1ZR5A241388

And here it comes up with a new personality (if you didn't switch the
device).

> [root@gigabyte flash-kernel]# ll /dev/ttyUSB0
> ls: cannot access /dev/ttyUSB0: No such file or directory

How did you get the generic driver to bind to 0e8d:2000? You need to
tell the generic driver to bind also to 0bb4:0c01, for example,

	echo 0bb4 0c01 > /sys/bus/usb-serial/drivers/generic/new_id

Johan
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux