OTG Wifi problem - ONE Q&A, Help & Troubleshooting

Hi,
First i'm french si sorry for grammar
I 'm on cyanogenmod 12 / nethunter /root /busybox
I recently bought an wifi adaptater and plug it on my phone but I doesn't show up on ifconfig or airmon-ng.I have tried an other card who work with no problem. The strange thing is that the card show up in lsusb and dmesg
Output of lsusb:
Code:
[email protected]:~# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Output of dmesg:
Code:
[53625.557927] init: untracked pid 1031 exited with status 0[53636.095878] msm-dwc3 msm_dwc3: DWC3 exited from low power mode
[53636.098024] qpnp_chg_ext_charger_reset: qpnp_chg_ext_charger_reset reset:1
[53636.100268] qpnp_chg_ext_charger_reset: qpnp_chg_ext_charger_reset reset:0
[53636.104646] qpnp_chg_ext_charger_wdt_set: qpnp_chg_ext_charger_wdt_set seconds:0
[53636.105999] bq24196_charge_en enable:0
[53636.108919] bq24196_vddmax_set voltage:4350
[53636.115950] bq24196_charge_en enable:2
[53636.125106] xhci-hcd xhci-hcd: xHCI Host Controller
[53636.125408] xhci-hcd xhci-hcd: new USB bus registered, assigned bus number 1
[53636.137471] xhci-hcd xhci-hcd: irq 163, io mem 0xf9200000[53636.155514] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[53636.156186] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[53636.156286] usb usb1: Product: xHCI Host Controller
[53636.156439] usb usb1: Manufacturer: Linux 3.4.67-cyanogenmod-g399b32b xhci-hcd
[53636.156536] usb usb1: SerialNumber: xhci-hcd
[53636.160953] xHCI xhci_add_endpoint called for root hub
[53636.160962] xHCI xhci_check_bandwidth called for root hub[53636.161638] hub 1-0:1.0: USB hub found
[53636.161736] hub 1-0:1.0: 1 port detected
[53636.162783] xhci-hcd xhci-hcd: xHCI Host Controller
[53636.162936] xhci-hcd xhci-hcd: new USB bus registered, assigned bus number 2
[53636.163183] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[53636.163330] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[53636.163473] usb usb2: Product: xHCI Host Controller
[53636.163554] usb usb2: Manufacturer: Linux 3.4.67-cyanogenmod-g399b32b xhci-hcd
[53636.163701] usb usb2: SerialNumber: xhci-hcd
[53636.165570] xHCI xhci_add_endpoint called for root hub
[53636.165579] xHCI xhci_check_bandwidth called for root hub[53636.166218] hub 2-0:1.0: USB hub found
[53636.166310] hub 2-0:1.0: 1 port detected
[53636.653437] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[53636.686391] usb 1-1: New USB device found, idVendor=148f, idProduct=7601
[53636.686847] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[53636.687281] usb 1-1: Product: 802.11 n WLAN
[53636.687521] usb 1-1: Manufacturer: MediaTek
[53636.687759] usb 1-1: SerialNumber: 1.0
[email protected]:~#
If anyone know how to fix or patch it let me know how.

TurtleForGaming said:
Hi,
First i'm french si sorry for grammar
I 'm on cyanogenmod 12 / nethunter /root /busybox
I recently bought an wifi adaptater and plug it on my phone but I doesn't show up on ifconfig or airmon-ng.I have tried an other card who work with no problem. The strange thing is that the card show up in lsusb and dmesg
Output of lsusb:
Code:
[email protected]:~# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Output of dmesg:
Code:
[53625.557927] init: untracked pid 1031 exited with status 0[53636.095878] msm-dwc3 msm_dwc3: DWC3 exited from low power mode
[53636.098024] qpnp_chg_ext_charger_reset: qpnp_chg_ext_charger_reset reset:1
[53636.100268] qpnp_chg_ext_charger_reset: qpnp_chg_ext_charger_reset reset:0
[53636.104646] qpnp_chg_ext_charger_wdt_set: qpnp_chg_ext_charger_wdt_set seconds:0
[53636.105999] bq24196_charge_en enable:0
[53636.108919] bq24196_vddmax_set voltage:4350
[53636.115950] bq24196_charge_en enable:2
[53636.125106] xhci-hcd xhci-hcd: xHCI Host Controller
[53636.125408] xhci-hcd xhci-hcd: new USB bus registered, assigned bus number 1
[53636.137471] xhci-hcd xhci-hcd: irq 163, io mem 0xf9200000[53636.155514] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[53636.156186] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[53636.156286] usb usb1: Product: xHCI Host Controller
[53636.156439] usb usb1: Manufacturer: Linux 3.4.67-cyanogenmod-g399b32b xhci-hcd
[53636.156536] usb usb1: SerialNumber: xhci-hcd
[53636.160953] xHCI xhci_add_endpoint called for root hub
[53636.160962] xHCI xhci_check_bandwidth called for root hub[53636.161638] hub 1-0:1.0: USB hub found
[53636.161736] hub 1-0:1.0: 1 port detected
[53636.162783] xhci-hcd xhci-hcd: xHCI Host Controller
[53636.162936] xhci-hcd xhci-hcd: new USB bus registered, assigned bus number 2
[53636.163183] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[53636.163330] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[53636.163473] usb usb2: Product: xHCI Host Controller
[53636.163554] usb usb2: Manufacturer: Linux 3.4.67-cyanogenmod-g399b32b xhci-hcd
[53636.163701] usb usb2: SerialNumber: xhci-hcd
[53636.165570] xHCI xhci_add_endpoint called for root hub
[53636.165579] xHCI xhci_check_bandwidth called for root hub[53636.166218] hub 2-0:1.0: USB hub found
[53636.166310] hub 2-0:1.0: 1 port detected
[53636.653437] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[53636.686391] usb 1-1: New USB device found, idVendor=148f, idProduct=7601
[53636.686847] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[53636.687281] usb 1-1: Product: 802.11 n WLAN
[53636.687521] usb 1-1: Manufacturer: MediaTek
[53636.687759] usb 1-1: SerialNumber: 1.0
[email protected]:~#
If anyone know how to fix or patch it let me know how.
Click to expand...
Click to collapse
I guess this thread can help you:
https://forum.xda-developers.com/oneplus-one/general/unleash-true-potential-oneplus-t3394310

Nope. In my case I think it's driver related because other card work but I can't install the linux driver for the MT7601U due software dependencies / 404 error

UP

Related

Help with usb serial device

Hi, when i connect an Huawei 3g usb dongle i see this in dmesg:
[ 2706.844241] usb 2-1: new high speed USB device using tegra-ehci and address 7
[ 2706.876571] usb 2-1: New USB device found, idVendor=12d1, idProduct=1c05
[ 2706.876627] usb 2-1: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[ 2706.876671] usb 2-1: Product: HUAWEI Mobile
[ 2706.876705] usb 2-1: Manufacturer: HUAWEI
but i can't find the associated device under /dev (I guess it should be ttyHS[X])
Thanks for any help!

Android SL8082 usb modem

Hello!
I need to make my Android BSP support Sierra SL8082 usb modem. I have two sources with drivers for android 2.6.32 and linux 2.6.38. My kernel is 2.6.35. I installed sierra.c from Linux package, and sierra_net.c from android package and have such log in dmesg.
<6>usb 1-1: new high speed USB device using fsl-ehci and address 5
<4>usb 1-1: config 1 has an invalid interface number: 7 but max is 3
<4>usb 1-1: config 1 has no interface number 2
<6>sierra 1-1:1.0: Sierra USB modem converter detected
<6>usb 1-1: APM supported, enabling autosuspend.
<6>usb 1-1: Sierra USB modem converter now attached to ttyUSB0
<6>sierra 1-1:1.1: Sierra USB modem converter detected
<6>usb 1-1: APM supported, enabling autosuspend.
<6>usb 1-1: Sierra USB modem converter now attached to ttyUSB1
<6>sierra 1-1:1.3: Sierra USB modem converter detected
<6>usb 1-1: APM supported, enabling autosuspend.
<6>usb 1-1: Sierra USB modem converter now attached to ttyUSB2
<6>usb1: register 'sierra_net' at usb-fsl-ehci.1-1, Sierra Wireless USB-Ethernet Modem, 9a:1f:2a:ad:04:07
lsusb log : Bus 001 Device 005: ID 1199:68a3
Is it correct log? What i should do next to get internet access through that modem?

USB Ethernet questions/help required

I have a USB Ethernet adapter that I picked up on Ebay for $0.99. I thought it might be a good experiment to see if I can get it to work on my TF but I am stumped. The device works in Ubuntu (on my laptop) and shows the following in DMESG.
[ 55.364166] usb 8-1: new full speed USB device using uhci_hcd and address 2
[ 55.572788] dm9601 8-1:1.0: eth1: register 'dm9601' at usb-0000:00:1d.2-1, Davicom DM9601 USB Ethernet, 00:e0:4c:53:44:58
[ 55.573048] usbcore: registered new interface driver dm9601
[ 55.680218] eth1: link up, 100Mbps, full-duplex, lpa 0xFFFF
When I plug it into my TF (rooted) and look at the DMESG there I see the following:
<6>[ 4407.535596] usb 1-1.1: new full speed USB device using tegra-ehci and address 6
<6>[ 4407.575370] usb 1-1.1: New USB device found, idVendor=0fe6, idProduct=9700
<6>[ 4407.575430] usb 1-1.1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
<6>[ 4407.575479] usb 1-1.1: Product: USB 2.0 10/100M Ethernet Adaptor
<4>[ 4407.575522] device: '1-1.1': device_add
<4>[ 4407.581027] device: '1-1.1:1.0': device_add
<4>[ 4407.586882] device: 'ep_81': device_add
<4>[ 4407.587159] device: 'ep_02': device_add
<4>[ 4407.587357] device: 'ep_83': device_add
<4>[ 4407.587557] device: 'usbdev1.6': device_add
<4>[ 4407.590505] device: 'ep_00': device_add
At this point I was hoping that I could just do a netcfg eth0 dhcp and be good to go but the TF keeps saying that eth0 is not a valid interface (which lines up with what I see in the DMESG). I did try assigning an IP to usb0 but was unable to get connectivity out and I still am struggling with adding a default route since the 'route' command just keeps saying invalid argument.
Is there something special I need to do to get the OS to at the eth0 interface when the USB Ethernet adapter is connected? I am wondering if there is a driver I need to compile/load? I tried the USB-Ethernet driver pack mentioned in the developer forum but it does not seem to help - I get an error when I type in usb_ethernet indicating eth0 does not exist. Any help would be appreciated.
Thanks
Toby

[Q] T-R42 ethernet problem

Hello,
I have problem with device T-R42.
I cannot enable ethernet - every time I try enable connection it logs to logcat:
dmesg reports:
<6>[ 3.329844] usb 2-1.4: new full speed USB device number 3 using usb20_host
<3>[ 3.409848] usb 2-1.4: device descriptor read/64, error -32
<3>[ 3.599841] usb 2-1.4: device descriptor read/64, error -32
whilest properly operational device has
<6>[ 3.390032] usb 2-1.4: new high speed USB device number 3 using usb20_host
<6>[ 3.502644] usb 2-1.4: New USB device found, idVendor=0b95, idProduct=772b
<6>[ 3.502680] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
<6>[ 3.502716] usb 2-1.4: Product: AX88772C
<6>[ 3.502741] usb 2-1.4: Manufacturer: ASIX Elec. Corp.
<6>[ 3.502766] usb 2-1.4: SerialNumber: 0002B1
<6>[ 4.153134] ASIX USB Ethernet Adapter:v4.1.1 17:50:33 Aug 13 2013
Is there anybody who can help me, please?
Many thanks
Jan

No ttyUSB* devices created with custom Kernel for Android 5.1

I have custom 3.4.49 kernel with Android 5.1 and for some reason, I broke it and now the modem ports do not appear in /dev
This is the debug output I see with custom kernel:
<6>[ 2.868000] usbcore: registered new interface driver usbserial
<6>[ 2.876000] usbcore: registered new interface driver usbserial_generic
<6>[ 2.884000] USB Serial support registered for generic
<6>[ 2.944000] usb 1-1.2: new high-speed USB device number 3 using nxp-ehci
<6>[ 3.052000] usb 1-1.2: New USB device found, idVendor=1e0e, idProduct=9001
<6>[ 3.052000] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
<6>[ 3.060000] usb 1-1.2: Product: SimTech, Incorporated
<6>[ 3.064000] usb 1-1.2: Manufacturer: SimTech, Incorporated
<6>[ 3.068000] usb 1-1.2: SerialNumber: 0123456789ABCDEF
<6>[ 3.076000] usbserial: USB Serial Driver core
<6>[ 3.080000] usbcore: registered new interface driver ch341
<6>[ 3.084000] USB Serial support registered for ch341-uart
<6>[ 3.088000] usbcore: registered new interface driver cp210x
<6>[ 3.096000] USB Serial support registered for cp210x
<6>[ 3.100000] usbcore: registered new interface driver ftdi_sio
<6>[ 3.104000] USB Serial support registered for FTDI USB Serial Device
<6>[ 3.112000] ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver
<6>[ 3.116000] usbcore: registered new interface driver option
<6>[ 3.124000] USB Serial support registered for GSM modem (1-port)
<6>[ 3.128000] usbcore: registered new interface driver pl2303
<6>[ 3.136000] USB Serial support registered for pl2303
<6>[ 3.140000] usbcore: registered new interface driver ti_usb_3410_5052
<6>[ 3.148000] USB Serial support registered for TI USB 3410 1 port adapter
<6>[ 3.152000] USB Serial support registered for TI USB 5052 2 port adapter
<6>[ 3.160000] ti_usb_3410_5052: v0.10:TI USB 3410/5052 Serial Driver
Now, if I load back the original kernel, then this is what I see in the debug output.
[ 2.936000] usbcore: registered new interface driver usbserial
[ 2.940000] usbcore: registered new interface driver usbserial_generic
[ 2.948000] USB Serial support registered for generic
[ 3.012000] usb 1-1.2: new high-speed USB device number 3 using nxp-ehci
[ 3.124000] usb 1-1.2: New USB device found, idVendor=1e0e, idProduct=9001
[ 3.124000] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3.132000] usb 1-1.2: Product: SimTech, Incorporated
[ 3.136000] usb 1-1.2: Manufacturer: SimTech, Incorporated
[ 3.144000] usb 1-1.2: SerialNumber: 0123456789ABCDEF
[ 3.152000] usbserial: USB Serial Driver core
[ 3.152000] usbcore: registered new interface driver ch341
[ 3.156000] USB Serial support registered for ch341-uart
[ 3.164000] usbcore: registered new interface driver cp210x
[ 3.168000] USB Serial support registered for cp210x
[ 3.172000] usbcore: registered new interface driver ftdi_sio
[ 3.180000] USB Serial support registered for FTDI USB Serial Device
[ 3.184000] ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver
[ 3.192000] usbcore: registered new interface driver option
[ 3.196000] USB Serial support registered for GSM modem (1-port)
[ 3.204000] option 1-1.2:1.0: GSM modem (1-port) converter detected
[ 3.208000] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[ 3.216000] option 1-1.2:1.1: GSM modem (1-port) converter detected
[ 3.220000] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[ 3.228000] option 1-1.2:1.2: GSM modem (1-port) converter detected
[ 3.236000] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2
[ 3.244000] option 1-1.2:1.3: GSM modem (1-port) converter detected
[ 3.248000] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB3
[ 3.256000] option 1-1.2:1.4: GSM modem (1-port) converter detected
[ 3.260000] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB4
[ 3.268000] usbcore: registered new interface driver pl2303
[ 3.272000] USB Serial support registered for pl2303
[ 3.280000] usbcore: registered new interface driver ti_usb_3410_5052
[ 3.284000] USB Serial support registered for TI USB 3410 1 port adapter
[ 3.292000] USB Serial support registered for TI USB 5052 2 port adapter
[ 3.300000] ti_usb_3410_5052: v0.10:TI USB 3410/5052 Serial Driver
Right after [ 3.196000] USB Serial support registered for GSM modem (1-port), the 5 ttyUSB ports are listed. So what am I missing from the kernel build that is failing to handle the modem and add the ports? The Android build is identical and only the kernel has been changed.
I've uploaded the complete debug capture for both here if that will help to narrow this down.
http://www.axoninstruments.biz/download/ttyUSB-notdetected.txt
http://www.axoninstruments.biz/download/ttyUSB-detected.txt
I found the issue with this. It was an update via git pull that overwrote code I had added to option.c to add the modem USB VID and PID. Once I added them back in, it's working again. DOH!!

Categories

Resources