linux-postmarketos-omap: USB networking broken
Describe your issue
What's the expected behaviour?
Connecting USB cable between phone and PC allows network connectivity between the two (e.g. ssh, ping)
What's the current behaviour?
It is not possible to pass any network packets between PC and phone
How to reproduce your issue?
Connect phone to PC, assign IP addresses, then attempt to ping between the two
What device are you using?
Nokia N900. The issue is NOT device-specific. It was initially reported for samsung espresso
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch) -
v23.06
-
v22.12
(Supported until 2023-07-06) -
I confirm that the issue still is present after running sudo apk upgrade -a
On what environment did you encounter the issue?
Environments
-
GNOME Shell on Mobile -
Phosh -
Plasma Mobile -
Sxmo (Wayland/Sway) Please post the output of sxmo_version.sh
-
Other: Issue is environment-agnostic
How did you get postmarketOS image?
-
from https://images.postmarketos.org -
I built it using pmbootstrap -
It was preinstalled on my device
What's the build date of the image? (in yyyy-mm-dd format)
Additional information
relevant part of phone dmesg:
[ 19.513153] configfs-gadget.g1 gadget.0: HOST MAC 9e:58:9f:de:33:85
[ 19.513183] configfs-gadget.g1 gadget.0: MAC a6:76:51:33:e6:01
Link information: phone side:
2: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether f6:91:ba:0c:cb:eb brd ff:ff:ff:ff:ff:ff
Link information: PC side:
$ ip link show enx9e589fde3385
24: enx9e589fde3385: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN mode DEFAULT group default qlen 1000
link/ether 9e:58:9f:de:33:85 brd ff:ff:ff:ff:ff:ff
Observations:
- the PC is using correct MAC address as assigned by phone (in dmesg)
- PC link state is UNKNOWN. this may or may not be important
- PC does not get assigned IP address by
unudhcpd
, even though it is running on phone
Wireshark output after assigning IP addresses on both ends of the connection (wireshark running on pc only):
- Ping from PC to phone (
ping 172.16.42.1
)
- Ping from phone to PC (
ping 172.16.42.2
)
The Wireshark output shows that PC responds correctly to ARP requests, but phone does not.