I have a OnePlus5T that runs PostmarketOS (console, no GUI). I use pmbootstrap to flash the image and it serves me well for the most part. To make the internet connection more stable, I wish to connect the phone to the router using an Ethernet adapter.
I have borrowed a Porttonics Ethernet 8in1 adapter and works well on other stock android phones. I can use ethernet nicely and surf sites on those phones
I seem to be unable to do this with Postmarket OS. Based on what i have read, I think the kernel needs to be tweaked so it can connect and work with the router. Does anyone know how to do this?
(This is my second post on this topic. Apologies).
Anything in the logs when you plug it in?
Nothing there and as I wrote in another comment here, I think the mainline doesn’t have the necessary drivers for this.
Are you using external power with the Adapter? I ran into this issue with my oneplus 6t, which cant supply power to a usb device. Using a external chsrger with a Combo dongle works fine right now. You may need to enable host mode though
When testing the Ethernet, I didn’t put power. I wanted to isolate each variable at a time.
The oneplus 6t can supply 500mA through USB, it just can’t negotiate usbC power delivery.
Does it show up as an interface in
ip a? If it doesn’t it usually means, that you don’t have drivers for it / the drivers aren’t in mainline, but sometimes it’s the usb role switching of the phone being stuck in peripheral mode (a reboot with the adapter plugged in usually fixes it).Depending on what you want to do with the phone and how permanent the connection is, an alternative method would be to connect it to the router with a usb cable. Enable the usb debug connection on in pmbootstrap when building the image (it might be possible to do this on the phone too) and set up routing on the router and add an ip address and a default route to the debug interface on the phone, it should behave as if it were a normal network card (but with a dhcp server running on it).
I’m sorry I didn’t read that you posted on this before before finishing this, I’m way too tired qwq
With ‘lsusb’, I can see the portonics being detected. But ‘ip a’ doesn’t seem to show any valid Ethernet connection.
It seems you are right on the absence of correct drivers. I’ll try the USB-debugging mode + router port approach to see if that works.
I would ideally want to leave this for the next couple of years without having to fiddle with it.
Look into how to either enable OTG or host mode in your specific device. Sometimes the pmOS wiki has instructions on how to do so.

