Ethernet via OTG cable

Hi Group

I will connect my FP2 via LAN, so I take an OTB cable and I connect an USB-Ethernet adapter on it, but nothing happens.

So I dive a bit deeper and I found some information on the dmes output:

[ 3908.852517] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[ 3908.889419] usb 2-1: New USB device found, idVendor=0b95, idProduct=7e2b
[ 3908.893903] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3908.899925] usb 2-1: Product: AX88772B
[ 3908.902303] usb 2-1: Manufacturer: ASIX Elec. Corp.
...
[ 3909.295686] init: no such service 'dhcpcd_eth0'
[ 3909.298827] asix 2-1:1.0: eth0: register 'asix' at usb-xhci-hcd-1, ASIX AX88772 USB 2.0 Ethernet, 9c:eb:e8:08:6d:2a
[ 3915.127261] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 3915.208562] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 3915.221102] asix 2-1:1.0: eth0: link down
[ 3915.224710] init: no such service 'dhcpcd_eth0:-f /system/etc/dhcpcd/dhcpcd.conf -h android-4214bbbd54b2193a eth0'
[ 3916.877032] asix 2-1:1.0: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[ 3916.878536] init: no such service 'dhcpcd_eth0:-f /system/etc/dhcpcd/dhcpcd.conf -h android-4214bbbd54b2193a eth0'
[ 3925.237946] init: no such service 'dhcpcd_eth0'
[ 3925.244422] eth0: no IPv6 routers present
[ 3926.891636] init: no such service 'dhcpcd_eth0'

So my phone can see the adapter and…

root@FP2:/ # ip a
...
28: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 9c:eb:e8:08:6d:2a brd ff:ff:ff:ff:ff:ff
    inet6 fe80::9eeb:e8ff:fe08:6d2a/64 scope link 
       valid_lft forever preferred_lft forever
root@FP2:/ # 

…it maps also a device name, but no ip address is assigned…

255|root@FP2:/ # dhcptool eth0                                                 
root@FP2:/ # ip a
28: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 9c:eb:e8:08:6d:2a brd ff:ff:ff:ff:ff:ff
    inet 192.168.2.209/24 brd 192.168.2.255 scope global eth0
    inet6 fe80::9eeb:e8ff:fe08:6d2a/64 scope link 
       valid_lft forever preferred_lft forever
root@FP2:/ # ip r
default via 192.168.2.2 dev eth0 
192.168.2.0/24 dev wlan0  proto kernel  scope link  src 192.168.2.70 
192.168.2.0/24 dev eth0  proto kernel  scope link  src 192.168.2.209 
root@FP2:/ # 

…now i got it, nice. But I don’t like to have all the time to do this process. Is there anyone around who had solved this?

I try the same on my Acer tablet (Androit 6.0) and it works without root and straight forward.

gruss ivo

3 Likes

I’m wondering whether this isn’t to be filed into #software:dev.

@z3ntu is this relevant for the source code?

I’m wondering whether this actually should be “OTG”.

2 Likes

Typo

Thank you

gruss ivo

Someone had tried the same in 2016 here and also linked to the XDA site which I think is a very useful and informative site btw.
Maybe you are lucky to find a solution there.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.