USB to Gigabit Ethernet Problem Compilation (with raspberry pi 4 snapshot image)

Zero issues... even ripped one open (don't attempt it)... damn they run cool...

running other usb devices / fancy drivers / services by any chance / extension cable or nearby RF?

If you saw the message lease of 10.x.x.x obtained, lease time 3600 in your logs, it means the packet was received and examined by OpenWrt. So it has passed already the part where a bad driver or faulty card would cause problems.

1 Like

no other usb devices than the usb card, the raspberry pi 4 itself positioned near ISP modem. but there are other cable (including PoE to AP) nearby.

I do plan to wait for few more weeks and observe if the problem persists or not, and maybe try switching the USB ethernet as LAN port and leaving the WAN side to native LAN, is it a good idea?

I see, that's also explained when using generic AX88179 in the interfaces I don't get WAN side IP (the 10.x.x.x part) and the error a bit different. I try to look for other possibilities then.

Is not a bad idea. Main reason to keep your USB NIC as WAN is to have access to your LAN interface for admin purposes, you can use your RPi4's WiFi for this purpose, tho'.

In any case, when I used my AX88179 I had no problems at all. My Pi is close to my cable modem right under my APs —like 30 cm apart of each other— and right besides a microwave oven, which is less than ideal and, I have none of your problems.

1 Like

hi guys,
I'm running for months a PI4 + Buster image + r8153 USB adapter, sniffing all my data (usb 3.0 port), with no disconnections or issues (ntop-ng on it).
And decide to try an openwrt image on it rpi-4_snapshot_1.7.66-7_r14267. BUILD_ID="r14267-18fbb9aa21"
So the HW is the same, but after a day playing, I came up with the infamous disappearances/instability listed above.
I performed

opkg update
opkg install kmod-usb-net-rtl8152

But it doesn't seem to be better.

[ 602.048544] usb 1-1: USB disconnect, device number 2
[ 602.350168] usb 1-1.2: device not accepting address 5, error -62
[ 602.367037] usb 1-1-port2: couldn't allocate usb_device

Any ideas?
tx

community build... to clarify...

  1. the build already has the driver installed
  2. i'd advise you to either remove all 'usbmode switch / qmi / lte / otg" style packages or test with an official build to be absolutely certain that your issues are not the result of package combinations within the build...

if I had to guess though... i'd say it's not build related... and more likely as stated above... related to particular device/chip / use case or environmental/hw combinations/subtlties/factors...

what is the exact adapter you are using? and exact rpi model?

Tx wulfy23

root@pi4_openwrt /34# cat /proc/cpuinfo | grep -A3 Revision
Revision : c03112
Serial : 100000004cbdd30d
Model : Raspberry Pi 4 Model B Rev 1.2

PI4B 4Gb, the adapter is the black chinese no-name one.. like the one from this post https://forum.openwrt.org/t/update-kmod-usb-net-rtl8152-driver-to-avoid-usb-3-0-to-gigabit-lan-issues/65466/14

What I found strange is that the exact same HW configuration on Buster image works with no issues, hence my suspicions in param/config.

which image would you like me to try (can u share a link, plz?)
tx again!

1 Like

in this case 99.999% sure it's not build related... and doubt using the official image assist... ( although particular package conflicts are still in the picture )...

official images ( i.e. to test with a bare minimum package set ) but again... fairly confident it will yeild identical outcomes...

note: there are two version of the pi4b-4gb

cat /proc/cpuinfo  | grep -A3 Revision
comparing these with yours or yours on buster may yeild something
/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0
################################################ /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0
authorized
bAlternateSetting
bInterfaceClass
bInterfaceNumber
bInterfaceProtocol
bInterfaceSubClass
bNumEndpoints
driver
ep_02
ep_81
ep_83
modalias
net
power
subsystem
supports_autosuspend
uevent
drwxr-xr-x    7 root     root             0 Aug 29 01:21 .
drwxr-xr-x    6 root     root             0 Jan  1  1970 ..
-rw-r--r--    1 root     root          4096 Aug 29 01:28 authorized
-r--r--r--    1 root     root          4096 Aug 29 01:28 bAlternateSetting
-r--r--r--    1 root     root          4096 Aug 29 01:28 bInterfaceClass
-r--r--r--    1 root     root          4096 Aug 29 01:28 bInterfaceNumber
-r--r--r--    1 root     root          4096 Aug 29 01:28 bInterfaceProtocol
-r--r--r--    1 root     root          4096 Aug 29 01:28 bInterfaceSubClass
-r--r--r--    1 root     root          4096 Aug 29 01:28 bNumEndpoints
lrwxrwxrwx    1 root     root             0 Aug 29 01:28 driver -> ../../../../../../../../../../bus/usb/drivers/r8152
drwxr-xr-x    3 root     root             0 Aug 29 01:28 ep_02
drwxr-xr-x    3 root     root             0 Aug 29 01:28 ep_81
drwxr-xr-x    3 root     root             0 Aug 29 01:28 ep_83
-r--r--r--    1 root     root          4096 Aug 29 01:28 modalias
drwxr-xr-x    3 root     root             0 Aug 29 01:21 net
drwxr-xr-x    2 root     root             0 Aug 29 01:28 power
lrwxrwxrwx    1 root     root             0 Aug 29 01:28 subsystem -> ../../../../../../../../../../bus/usb
-r--r--r--    1 root     root          4096 Aug 29 01:28 supports_autosuspend
-rw-r--r--    1 root     root          4096 Aug 29 01:28 uevent
############################################## netsub: /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/addr_assign_type
3
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/addr_len
6
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/address
00:11:32:99:99:99
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/broadcast
ff:ff:ff:ff:ff:ff
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/carrier
1
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/carrier_changes
4
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/carrier_down_count
2
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/carrier_up_count
2
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/dev_id
0x0
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/dev_port
0
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/dormant
0
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/duplex
full
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/flags
0x1003
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/gro_flush_timeout
0
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/ifalias
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/ifindex
4
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/iflink
4
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/link_mode
0
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/mtu
1500
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/name_assign_type
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/napi_threaded
0
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/netdev_group
0
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/operstate
up
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/phys_port_id
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/phys_port_name
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/phys_switch_id
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/proto_down
0
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/speed
1000
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/tx_queue_len
1000
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/type
1
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/net/eth1/uevent
INTERFACE=eth1
IFINDEX=4
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../authorized
1
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../avoid_reset_quirk
0
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../bConfigurationValue
1
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../bDeviceClass
00
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../bDeviceProtocol
00
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../bDeviceSubClass
00
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../bMaxPacketSize0
9
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../bMaxPower
256mA
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../bNumConfigurations
2
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../bNumInterfaces
 1
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../bcdDevice
3000
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../bmAttributes
a0
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../busnum
2
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../configuration
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../descriptors
EgEAAwAAAAlXIwEGADABAgYCCQI5AAEBAKAgCQQAAAP//wAABwWBAgAEAAYwAwAAAAcFAgIABAAG
MAMAAAAHBYMDAgAIBjAAAAIACQJiAAICAKAgCQQAAAECBgAFBSQAEAEFJAYAAQ0kDwMAAAAA6gUA
AAAHBYMDEAAIBjAAAAgACQQBAAAKAAAACQQBAQIKAAAEBwWBAgAEAAYwAwAAAAcFAgIABAAGMAMA
AAA=
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../dev
189:129
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../devnum
2
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../devpath
2
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../devspec
(null)
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../idProduct
0601
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../idVendor
2357
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../ltm_capable
yes
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../manufacturer
TP-LINK
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../maxchild
0
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../product
USB 10/100/1000 LAN
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../quirks
0x0
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../removable
unknown
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../remove
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../rx_lanes
1
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../serial
000001000000
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../speed
5000
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../tx_lanes
1
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../uevent
MAJOR=189
MINOR=129
DEVNAME=bus/usb/002/002
DEVTYPE=usb_device
DRIVER=usb
PRODUCT=2357/601/3000
TYPE=0/0/0
BUSNUM=002
DEVNUM=002
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../urbnum
167032
#################### /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/../version
 3.00

im using rpi4 with rlt8152 usb 3 1000mbits without probleme

in the context of this thread... not stating the actual adapter is of little benefit...

was also reading other posts, about link power mgt or other
eg. disable link power mgt? usbcore.quirks=0bda:8153:k ? how would I do this on the PI4 openwrt to see if any diff?

or things about Link Negotiation:auto or not... how to change all those params?

note, I have 2 of those adapaters, let me play & see if any difference as well ...
tx

yeah... you could try the quirks but to be honest... when troubleshooting things like this you are best to start broad and work your way down...

is buster 32bit? there is 32bit openwrt for the pi... well worth a comparison imho... especially any differences in sysfs/ethtool regarding usb/that nic...

But isn't usbcore.quirks already enabled for the rtl8153 chip in drivers/usb/core/quirks.c by default?

1 Like

tx, so having 2 of the chinese stuff (same shop...) helps... the second one definitely behaves much more stable (running iperf3 for minutes with no issues), so keeping an eye for it in next days.

I'll then try the initial buster setup back, see if any difference, of if the adapter went ballistic just recently...
tx guys

To state the overly obvious.... (hey, lots of problems have taken me too long to figure out because it was too "obvious") do you see any low power warnings in the RPi log? Or tried a different, beefier power supply?

I had intermittent problems with a Pi music streamer setup (Moode player, highly reccomended!) that ended up being the power supply not quite up to it, and occasionally browning out.. Took me a while to realize that.

Though I'd guess it's more likely to be something farther up in HW or driver issues.

hi JonP;

tx for the tip, here I'm using the official 3A supply, and only the USB adapter is connected.
but tx again :slight_smile:

the second adapater's been stable since yesterday, keeping an eye

Ah.. I read "cheap, no-name" power supply and feared the worst...

I think I found the culprit for the "ethernet disconnect every weeks or so", and it might not be about the USB ethernet, but more because of the configs

  • Using bridged connection from GPON (fiber) modem to OpenWRT router
  • ISP Gateway provide new IP Address with different subnet for sometimes regularly
  • WAN ipv6 turned on (default on most OpenWRT config) but ISP Gateway didn't provide one

Disabling the WAN ipv6 now and OpenWRT get new ipv4 ip address without problem, hopefully it's resolved but I'd try to monitor for more few weeks.