USB Ethernet questions/help required - Eee Pad Transformer Q&A, Help & Troubleshooting

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

Related

[Q] usb to lan , prime 2.0.7 (Solved)

Hi Guys,
I believe that a usb to lan converter could be used properly.
I used a "Air Live" "EtherWe-1000U".
Got the following in dmesg:
[ 2516.558810] usb 1-1.1: new high speed USB device using tegra-ehci and address 4
[ 2516.605768] usb 1-1.1: New USB device found, idVendor=0b95, idProduct=7720
[ 2516.605830] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2516.605879] usb 1-1.1: Product: AX88772
[ 2516.605914] usb 1-1.1: Manufacturer: ASIX Elec. Corp.
[ 2516.605951] usb 1-1.1: SerialNumber: 000001
[ 2516.605986] device: '1-1.1': device_add
[ 2516.617769] device: '1-1.1:1.0': device_add
[ 2516.620959] device: 'ep_81': device_add
[ 2516.621056] device: 'ep_82': device_add
[ 2516.621135] device: 'ep_03': device_add
[ 2517.484777] device: 'eth0': device_add
[ 2517.491254] asix 1-1.1:1.0: eth0: register 'asix' at usb-tegra-ehci.2-1.1, ASIX AX88772 USB 2.0 Ethernet, 00:4f:75:00:0c:59
[ 2517.491413] device: 'usbdev1.4': device_add
[ 2517.493535] device: 'ep_00': device_add
would it be possible to create a config file for the eth0 device ?
thanx guys...
I have done an "ifup eth0" got the following error: "ifup: can't open '/etc/network/interfaces': No such file of directory"
Any ideas??
Ok, It seems like I got the solution,
Thanx to Quiethinker.
Read THIS: http://forum.xda-developers.com/member.php?u=4286868
He's got a driver pack for some usb to ethernet devices,In effect,
/system/bin/dhcpcd eth0
setprop net.dns1 8.8.8.8
setprop net.dns2 8.8.4.4
would do the trick,
otherwise a manual string
ifconfig eth0 your_ip (192.168.1.200) netmask 255.255.255.0 broadcast network_prefix.255 (192.168.1.255)
route add default gw your_gw (192.168.1.254)
setprop net.dns1 yourdns (8.8.8.8)
would do the trick.
now just to get a button to enable and disable ethernet lan
be sure to thank Quiethinker

Galaxy young GT-S35360 OTG driver (usb host mode) help please

Hi,
I am now working on the usb OTG driver for galaxy-y
I almost sure that this device is a OTG capable device, (I found this from its service manual http://forum.xda-developers.com/showthread.php?t=1489767)
After some work I compiled otg supported usb driver as loadable module (dwc_otg.ko).
In the original firm ware this driver is 'in-built' and host support is diabled
and I could load the module
The dmesg is ...
Code:
[hari]#
[hari]# insmod /sdcard/otgg/j/dwc_otg.ko
<6>[ 2688.406677] dwc_otg: version 2.60a 22-NOV-2006
<6>[ 2688.406829] lm_driver_register()
<6>[ 2688.406890] lm_match()
<6>[ 2688.406951] lm_bus_probe()
<3>[ 2688.406982] Debug level= 17
<3>[ 2688.407012] dwc_otg lm-2: dwc_otg_driver_probe, version 020-10-01-09
<6>[ 2688.407318] It is Ok to create charging current work queue...
<4>[ 2688.407592] DWC_otg: 1
<4>[ 2688.407623] DWC_otg: 2
<4>[ 2688.407653] DWC_otg: dwc_otg_core_reset() GRSTCTL=80000000
<4>[ 2688.407684] DWC_otg: dwc_otg_core_reset() value to set=80000001
<4>[ 2688.517852] DWC_otg: b
<4>[ 2688.517913] DWC_otg: dwc_otg_core_reset() HANG! Soft Reset GRSTCTL=80000001
<6>[ 2688.517944] DWC_otg: Core Global Registers
<6>[ 2688.517974] DWC_otg: GOTGCTL @0xD8400000 : 0x00110000
<6>[ 2688.518005] DWC_otg: GOTGINT @0xD8400004 : 0x00000000
<6>[ 2688.518035] DWC_otg: GAHBCFG @0xD8400008 : 0x00000000
<6>[ 2688.518066] DWC_otg: GUSBCFG @0xD840000C : 0x00001400
<6>[ 2688.518096] DWC_otg: GRSTCTL @0xD8400010 : 0x80000001
<6>[ 2688.518127] DWC_otg: GINTSTS @0xD8400014 : 0x04000021
<6>[ 2688.518157] DWC_otg: GINTMSK @0xD8400018 : 0x00000000
<6>[ 2688.518188] DWC_otg: GRXSTSR @0xD840001C : 0xFFFFFFFF
<6>[ 2688.518188] DWC_otg: GRXFSIZ @0xD8400024 : 0x00001000
<6>[ 2688.518218] DWC_otg: GNPTXFSIZ @0xD8400028 : 0x10001000
<6>[ 2688.518615] DWC_otg: GNPTXSTS @0xD840002C : 0x00081000
<6>[ 2688.518646] DWC_otg: GI2CCTL @0xD8400030 : 0x00000000
<6>[ 2688.518676] DWC_otg: GPVNDCTL @0xD8400034 : 0x00000000
<6>[ 2688.518707] DWC_otg: GGPIO @0xD8400038 : 0x00000000
<6>[ 2688.518737] DWC_otg: GUID @0xD840003C : 0x00000000
<6>[ 2688.518768] DWC_otg: GSNPSID @0xD8400040 : 0x4F54281A
<6>[ 2688.518798] DWC_otg: GHWCFG1 @0xD8400044 : 0x00000000
<6>[ 2688.518829] DWC_otg: GHWCFG2 @0xD8400048 : 0x229FFDD0
<6>[ 2688.518859] DWC_otg: GHWCFG3 @0xD840004C : 0x0F8007E8
<6>[ 2688.518859] DWC_otg: GHWCFG4 @0xD8400050 : 0xFFF08030
<6>[ 2688.518890] DWC_otg: HPTXFSIZ @0xD8400100 : 0x02001020
<4>[ 2688.518920] DWC_otg: 3
<4>[ 2688.627838] DWC_otg: 1
<4>[ 2688.627899] DWC_otg: 2
<4>[ 2688.627929] DWC_otg: dwc_otg_core_reset() GRSTCTL=80000001
<4>[ 2688.627960] DWC_otg: dwc_otg_core_reset() value to set=80000001
<4>[ 2688.737762] DWC_otg: b
<4>[ 2688.737823] DWC_otg: dwc_otg_core_reset() HANG! Soft Reset GRSTCTL=80000001
<4>[ 2688.737854] DWC_otg: 3
<4>[ 2688.846557] dwc_otg_pcd_init(d2a03460)
<4>[ 2688.846618] Dedicated Tx FIFOs mode
<4>[ 2688.846740] registering handler for irq21
<6>[ 2688.846832] DWC_otg: pcd->setup_pkt=0xff6b3000, pcd->setup_pkt_dma_handle=0x92985000
<6>[ 2688.846893] DWC_otg: pcd->status_buf=0xff6b4000, pcd->status_buf_dma_handle=0x92984000
<4>[ 2688.846923] pcd->setup_pkt=0xff6b3000, pcd->setup_pkt_dma_handle=0x92985000
<4>[ 2688.846954] pcd->status_buf=0xff6b4000, pcd->status_buf_dma_handle=0x92984000
<6>[ 2688.846984] DWC_otg: Using DMA mode
<6>[ 2688.847015] dwc_otg lm-2: DWC OTG Controller
<6>[ 2688.847076] dwc_otg lm-2: new USB bus registered, assigned bus number 1
<6>[ 2688.847137] dwc_otg lm-2: irq 21, io mem 0x00000000
<6>[ 2688.847198] DWC_otg: Init: Port Power? op_state=1
<6>[ 2688.847229] DWC_otg: Init: Power Port (0)
<7>[ 2688.847351] usb usb1: default language 0x0409
<7>[ 2688.847412] usb usb1: udev 1, busnum 1, minor = 0
<6>[ 2688.847442] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
<6>[ 2688.847473] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
<6>[ 2688.847503] usb usb1: Product: DWC OTG Controller
<6>[ 2688.847534] usb usb1: Manufacturer: Linux 2.6.35.7 dwc_otg_hcd
<6>[ 2688.847564] usb usb1: SerialNumber: lm-2
<7>[ 2688.849395] usb usb1: usb_probe_device
<7>[ 2688.849456] usb usb1: configuration #1 chosen from 1 choice
<7>[ 2688.849517] usb usb1: adding 1-0:1.0 (config #1, interface 0)
<7>[ 2688.850860] hub 1-0:1.0: usb_probe_interface
<7>[ 2688.850891] hub 1-0:1.0: usb_probe_interface - got id
<6>[ 2688.850921] hub 1-0:1.0: USB hub found
<6>[ 2688.850952] hub 1-0:1.0: 1 port detected
<7>[ 2688.850982] hub 1-0:1.0: standalone hub
<7>[ 2688.850982] hub 1-0:1.0: ganged power switching
<7>[ 2688.851013] hub 1-0:1.0: individual port over-current protection
<7>[ 2688.851043] hub 1-0:1.0: power on to power good time: 2ms
<7>[ 2688.851074] hub 1-0:1.0: local power source is good
<7>[ 2688.851074] hub 1-0:1.0: enabling power on all ports
[hari]# <7>[ 2688.948211] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000
[hari]# cat /sys/devices/lm-2/mode
<1>[ 2760.955230] Unable to handle kernel paging request at virtual address 73656300
<1>[ 2760.955291] pgd = c7640000
<1>[ 2760.955322] [73656300] *pgd=00000000
Connection closed by foreign host.
The problem is that when i tried to view or change the the mode , here (cat /sys/devices/lm-2/mode ), the phone reboots!!!!!!!!
I am a beginner in kernel development and this is my first experiment with kernel modules.
In the current situation I cant get (I dont know how to get) any log or something from the kernel. I dont know how to bug this kernel module
So any one has experience in kernel debugging please help me
In the kernel configuration I found a feature 'KGDB seial debugger' but... I dont know how to get a 'seial port' on my galaxy-y
Any one please help me
Good start,even Im crazy for that .But sorry can't help you.Plz contact Maroc-Os, but he is busy with kernel.
May I know who is Maroc-Os
Please give his details.
wow, i thinking the same think after read that file. and while browsing i find other product from broadcom bcm2153 also have usb otg. i still can't find usb otg cable to try it.
your log, look like memory issue. do you already recompile (and boot) your kernel without dw_otg ?
you may also contact vivekalady. you can find him in vivek kernel post in this section
cool
wow. excellent research. usb host mode would be a kickass feature
raspberry also uses that driver
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: DWC OTG Controller usb usb1: Manufacturer: Linux 2.6.35.7 dwc_otg_hcd
usb usb1: SerialNumber: bcm2708_usb
http://www.raspberrypi.se/specifikation
maybe there are some similarities or people have experience with that hardware
How did you connect the hardware ??
the phone does not supply for the device so power must be given separately.so that hardware mechanism must be made.then only we can start.I hope you are doing this way.you can contact DoomLord for OTG supports
To:mai77
Hai,
the source code for product you specified is released???
I just looked the the site and i couldn't find
thanks.....
harish2704 said:
In the kernel configuration I found a feature 'KGDB seial debugger' but... I dont know how to get a 'serial port' on my galaxy-y
Click to expand...
Click to collapse
sounds like kernel debugger,
but I wonder what specialty it would offer at all, if transmit over serial instead of USB or whatever. I am assuming we can run the regular kernel debugger in SGY
http://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:debug:kgdb
maybe Maroc can build a debug kernel for us ...
vivekkalady said:
How did you connect the hardware ??
the phone does not supply for the device so power must be given separately.so that hardware mechanism must be made.then only we can start.I hope you are doing this way.you can contact DoomLord for OTG supports
Click to expand...
Click to collapse
hai,
I didn't connected the hardware. I just rmmod'd the module (which doesn't support host mode)
and inserted the new module with host support.
The kmesg is posted in my post
then I tried to view the current mode (whether host or slave) by using
Code:
cat /sys/devices/lm-2/mode
then the phone rebooted suddenly
I run this commands as a remote session using telnetd
Thats how I got this logs
sorry for my language
harish2704 said:
I run this commands as a remote session using telnetd
Click to expand...
Click to collapse
does telnetd offer any advantages over "adb shell" ?
mai77 said:
sounds like kernel debugger,
but I wonder what specialty it would offer at all, if transmit over serial instead of USB or whatever. I am assuming we can run the regular kernel debugger in SGY
http://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:debug:kgdb
maybe Maroc can build a debug kernel for us ...
Click to expand...
Click to collapse
I think remote debugging have only two options here
1) through serial interface
2) through ethernet (using wifi)
beacause we are already working with usb driver using usb inerface will not work
I prefer serial interface (i tink it will have more access)
In the service manual I saw some "Master_JTAG_pad"
do you know its usage ?
not that particular one
harish2704 said:
In the service manual I saw some "Master_JTAG_pad"
do you know its usage ?
Click to expand...
Click to collapse
you need jtag programmer, development tools for bcm21553, and doc/datasheet for bcm21553.
harish2704 said:
May I know who is Maroc-Os
Please give his details.
Click to expand...
Click to collapse
You can find him here
forum.xda-developers.com/showthread.php?t=1550065
Even Vivek,Mai is here too.
Unknown symbol __aeabi_uldivmod ARM bit
Hai,
any one knows how to avoid this error while compiling the kernel
this part of code
Code:
#define DIVMOD_WORD(q, r, hi, lo, w) do { \
BignumDblInt n = (((BignumDblInt)hi) << BIGNUM_INT_BITS) | lo; \
q = n / w; \
r = n % w; \
} while (0)
// where BignumDblInt is defined as uint64_t
// "typedef uint64_t BignumDblInt;"
produces this error while loading module
mod post also gives the same
I think its a EABI related issue
Code:
Unknown symbol __aeabi_uldivmod (err 0)
at runtime that symbol / lib is inaccessible. maybe it was excluded by some compiler switch or whatever. is is defined multiple times / files ?
source of dwc_otg driver (not working)
Here I attached source and changed files from which I compiled dwc_otg.ko
This is a part of "GT-S5360_GB_Opensource_Update2.zip" whch was published by samsung at opensource.samsung.com
Added a Patch
?
harish2704 said:
Here I attached source and changed files from which I compiled dwc_otg.ko
This is a part of "GT-S5360_GB_Opensource_Update2.zip" whch was published by samsung at opensource.samsung.com
Added a Patch
Click to expand...
Click to collapse
does it work now?
harish2704 said:
Here I attached source and changed files from which I compiled dwc_otg.ko
This is a part of "GT-S5360_GB_Opensource_Update2.zip" whch was published by samsung at opensource.samsung.com
Added a Patch
Click to expand...
Click to collapse
with all due respect, your patch is really hard to read. 40000+ lines is not small, and i find a lot of them only white space and identifier name changes. so, if possible could you make it better (using options in diff command maybe). if that's too hard just ignore my request. btw it's already work or still wip ?

[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

OTG Wifi problem

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

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