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

Hy there…did you find solutions to connect the Lan via USB dock to the Xperia 10? I also look for a solution, but can not find any useful posts. Best regards from thuringia, germany

1 Like

I think many kernels have CONFIG_ETHERNET disabled.
So no no game on those I guess…

Hi, thanks.

Is there any way to change this, or to enable it, or to have it changed for future kernels?

I am trying to connect my Sony Xperia 10 II to a LAN network using a USB-to-Ethernet adapter. This worked without any issues on /e/OS, but I am having trouble with Sailfish OS. Currently, I can only access the internet via Wi-Fi or mobile data, but I would like to use a LAN cable for a more stable connection.

Your reply likely explains why I haven’t found anyone on the forum who has successfully set up a USB-Ethernet adapter on Sailfish OS.

Nevertheless, I would be very grateful for any further tips regarding a future solution! Best regards, Michael


Xperia 10II connected via tp-link usbc adater to Lan . see picture.
Sending this one with mobike and wifi disabled.

1 Like

Just saw that a x10iii may work as well:

nemo@PGXperiiia10:~ $ zcat /proc/config.gz |grep ETH
CONFIG_L2TP_ETH=y
# CONFIG_ATA_OVER_ETH is not set
CONFIG_VETH=y
CONFIG_ETHERNET=y
# CONFIG_ENA_ETHERNET is not set
# CONFIG_GEMINI_ETHERNET is not set
# CONFIG_ETHOC is not set
# CONFIG_USB_KAWETH is not set
CONFIG_USB_NET_CDCETHER=y
# CONFIG_USB_NET_CX82310_ETH is not set
# CONFIG_USB_IPHETH is not set
CONFIG_USB_U_ETHER=y
nemo@PGXperiiia10:~ $

C2 definitely does not have CONFIG_ETHERNET.

1 Like

@jolla can we please have an uncastrated linux on the SailfishOS phones???

When porting a device, you usually take the upstream kernel, and adapt it for minimal requirements of Sailfish OS.
The HADK has a check tool for kernel config options, noting “required”, “optional”, and “forbidden” config options.
It would appear for some adaptations, some or many of the “optional” features are being left out…

I posed a question about this in a Community Meeting a while ago, and the answer was to please file PRs against that repo if you want something included:

See also: More generic kernel configs

So, please anyone who successfully used an USB Ethernet adapter with a SFOS device, please find out the driver used, and the corresponding kernel config option.
I can try to land a PR in that repo.

Of course you can also do it yourself ;D!

Hi, thanks a lot. For me as an newbie is this all to complicate to change the kernel or understand well, what you mean, so, what i understood, is, that there is not realy a solution yet. It’s need to wait…

(-;