Q: Setup cable LAN on Xperia 10

Have successfully connected an USB dock to the phone and keyboard + mouse works now fine. Next step is cable network. This is my adapter, connected to the USB hub:

How can I set up this device by CLI? There are no additional settings nowhere in the GUI settings menu after physically connecting the adapter.

Thanks for any help!

Is that device even supported by the kernel? Output of dmesg after plugging it in and also ifconfig -a should help.

output is, first a very long list of 2879:2879 transaction failed 29189/-22, size 32-0 line 3024, and at the end:

[13703.183864]   Please update the .rc file to explictly set 'capabilities NET_ADMIN'
[13703.183867]   Implicit grants are deprecated and will be removed in the future.
[13703.184066] Process cnss-daemon granted CAP_NET_ADMIN from Android group net_admin.
[13703.184070]   Please update the .rc file to explictly set 'capabilities NET_ADMIN'
[13703.184073]   Implicit grants are deprecated and will be removed in the future.
[13703.466268] binder: 2879:2879 transaction failed 29189/-22, size 32-0 line 3024
[13704.468071] binder: 2879:2879 transaction failed 29189/-22, size 32-0 line 3024
[13705.469789] binder: 2879:2879 transaction failed 29189/-22, size 32-0 line 3024
[13706.471523] binder: 2879:2879 transaction failed 29189/-22, size 32-0 line 3024
[13707.473275] binder: 2879:2879 transaction failed 29189/-22, size 32-0 line 3024
[13708.475058] binder: 2879:2879 transaction failed 29189/-22, size 32-0 line 3024
[13709.476774] binder: 2879:2879 transaction failed 29189/-22, size 32-0 line 3024
[13710.477801] binder: 2879:2879 transaction failed 29189/-22, size 32-0 line 3024
[13711.479698] binder: 2879:2879 transaction failed 29189/-22, size 32-0 line 3024
[13712.481516] binder: 2879:2879 transaction failed 29189/-22, size 32-0 line 3024
[13713.483350] binder: 2879:2879 transaction failed 29189/-22, size 32-0 line 3024
[13714.271120] usb 1-1.2: new high-speed USB device number 8 using xhci-hcd
[13714.399673] usb 1-1.2: New USB device found, idVendor=0bda, idProduct=8153
[13714.399700] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[13714.399708] usb 1-1.2: Product: USB 10/100/1000 LAN
[13714.399715] usb 1-1.2: Manufacturer: Realtek
[13714.399722] usb 1-1.2: SerialNumber: 000001
[13714.484696] binder: 2879:2879 transaction failed 29189/-22, size 32-0 line 3024
[13715.486472] binder: 2879:2879 transaction failed 29189/-22, size 32-0 line 3024
[13716.488187] binder: 2879:2879 transaction failed 29189/-22, size 32-0 line 3024
[13717.489885] binder: 2879:2879 transaction failed 29189/-22, size 32-0 line 3024
[13718.491222] binder: 2879:2879 transaction failed 29189/-22, size 32-0 line 3024
[13718.639150] Process cnss-daemon granted CAP_NET_ADMIN from Android group net_admin.
[13718.639163]   Please update the .rc file to explictly set 'capabilities NET_ADMIN'
[13718.639164]   Implicit grants are deprecated and will be removed in the future.
[13718.639178] Process cnss-daemon granted CAP_NET_ADMIN from Android group net_admin.
[13718.639186]   Please update the .rc file to explictly set 'capabilities NET_ADMIN'
[13718.639187]   Implicit grants are deprecated and will be removed in the future.
[13718.639250] Process cnss-daemon granted CAP_NET_ADMIN from Android group net_admin.
[13718.639251]   Please update the .rc file to explictly set 'capabilities NET_ADMIN'
[13718.639252]   Implicit grants are deprecated and will be removed in the future.
[root@Handy2 defaultuser]# 

ifconfig -a shows much, 3 Ethernet blocks, one is the WLAN. The 2 others are:

[root@Handy2 defaultuser]# ifconfig -a
bond0     Link encap:Ethernet  HWaddr 86:67:DE:CC:4A:72  
          BROADCAST MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

and

p2p0      Link encap:Ethernet  HWaddr 3A:78:62:5C:21:2F  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

when the cable isn’t connected, Device is connected by WLAN.

So the driver is obviously not part of the kernel, only a generic USB device is detected. Otherwise some more lines in dmesg should appear. Here is an output of my desktop:

[27204.425871] usb 2-2: New USB device found, idVendor=0b95, idProduct=1790, bcdDevice= 1.00
[27204.425879] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[27204.425882] usb 2-2: Product: AX88179
[27204.425884] usb 2-2: Manufacturer: ASIX Elec. Corp.
[27204.425886] usb 2-2: SerialNumber: 000000000001<B
[27205.258713] ax88179_178a 2-2:1.0 eth0: register 'ax88179_178a' at usb-0000:00:14.0-2, ASIX AX88179 USB 3.0 Gigabit Ethernet, 00:23:55:7c:18:05
[27205.259324] usbcore: registered new interface driver ax88179_178a

Tough luck unless kernel modules are enabled and you manage to build the required module(s).

Do I have a chance to manually install the missing driver?

When i connected it to a router i got an ip address and could access the web

I don’t know. The driver runs in kernel space, i.e. is either compiled in or loaded as a module. First thing to check is, if your kernel supports module loading:

# zcat /proc/config.gz | grep CONFIG_MODULES
CONFIG_MODULES=y

On my XA2 modules are enabled. If the module is not shipped with the kernel

find /lib/modules/ -name "*.ko"

you will have to compile it.

zcat command shows:

[root@Handy2 defaultuser]# zcat /proc/config.gz | grep CONFIG_MODULES
CONFIG_MODULES_USE_ELF_RELA=y
CONFIG_MODULES=y
CONFIG_MODULES_TREE_LOOKUP=y
[root@Handy2 defaultuser]# 

find command shows:

[root@Handy2 defaultuser]# find /lib/modules/ -name "*.ko"
/lib/modules/4.9.230/nfs_layout_flexfiles.ko
[root@Handy2 defaultuser]# 

What does this mean?

Modules are enabled but there’s only one module shipped with the kernel. If you find the kernel sources for your device, you might be able to compile the driver.

1 Like

I suggest this guide that worked for my usb-c ethernet dock dongle. networking - Setup usb-ethernet usb3.0 adapters on ubuntu - Ask Ubuntu