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:
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)
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).
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:
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.
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
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
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:~ $
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:
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.
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…