DS920+ not working with either WAVLINK [WL-NWU340G Rev.a1] or UGREEN 5Gbps USB C LAN Adapter Ethernet Adapter [CM848]
Description of the problem
I am having problems getting (one of) my two 5G Realtek 8157 USB dongles to work on my Synology DS920+ NAS. I've followed all explained detailed steps, but no new network connection shows up under network interfaces.
Description of your products
NAS Synology DS920+ DSM 7.7.2-72806 Update 3
sh-4.4# uname-a
Linux host-name 4.4.302+ #72806 SMP Thu Sep 5 13:44:44 CST 2024 x86_64 GNU/Linux synology_geminilake_920+
CPU: quad core Intel Celeron J4125 (-MCP-) speed/min/max: 2001/800/2001 MHz
Kernel: 4.4.302+ x86_64 Up: 5h 42m Mem: 2696.8/19852.1 MiB (13.6%)
Storage: 1.39 TiB (3595.1% used) Procs: 444 Shell: sh inxi: 3.3.27
Dongle 1 WAVLINK WL-NWU340G Rev.a1 USB-C 5 Gigabit Ethernet Adapter
Same device as mentioned in this video: https://www.youtube.com/watch?v=SzMVNtzrxCM
|__usb1 1d6b:0002:0404 09 2.00 480MBit/s 0mA 1IF (Linux 4.4.302+ xhci-hcd xHCI Host Controller 0000:00:15.0) hub
|__1-4 f400:f400:0100 00 2.00 480MBit/s 200mA 1IF (Synology DiskStation 7F00047D2513F267)
|__usb2 1d6b:0003:0404 09 3.00 5000MBit/s 0mA 1IF (Linux 4.4.302+ xhci-hcd xHCI Host Controller 0000:00:15.0) hub
|__2-1 0bda:8157:3000 00 3.20 5000MBit/s 0IFs (Realtek USB 10/100/1G/2.5G/5G LAN [S/N])
T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=5000 MxCh= 0
D: Ver= 3.20 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs= 3
P: Vendor=0bda ProdID=8157 Rev=30.00
S: Manufacturer=Realtek
S: Product=USB 10/100/1G/2.5G/5G LAN
S: SerialNumber=X
C: #Ifs= 0 Cfg#= 0 Atr= MxPwr=
cat: '/sys/bus/usb/devices/usb2/2-1/2-*:?.*/bInterfaceNumber': No such file or directory
cat: '/sys/bus/usb/devices/usb2/2-1/2-*:?.*/bAlternateSetting': No such file or directory
cat: '/sys/bus/usb/devices/usb2/2-1/2-*:?.*/bNumEndpoints': No such file or directory
cat: '/sys/bus/usb/devices/usb2/2-1/2-*:?.*/bInterfaceClass': No such file or directory
cat: '/sys/bus/usb/devices/usb2/2-1/2-*:?.*/bInterfaceSubClass': No such file or directory
cat: '/sys/bus/usb/devices/usb2/2-1/2-*:?.*/bInterfaceProtocol': No such file or directory
/usr/local/bin/usb-devices: line 79: printf: (none): invalid number
I: If#= 0 Alt= 0 #EPs= 0 Cls=() Sub= Prot= Driver=
Dongle 2 UGREEN 5Gbps USB C LAN Adapter Ethernet Adapter CM848
|__usb1 1d6b:0002:0404 09 2.00 480MBit/s 0mA 1IF (Linux 4.4.302+ xhci-hcd xHCI Host Controller 0000:00:15.0) hub
|__1-1 0bda:8157:3000 00 2.10 480MBit/s 0IFs (Realtek USB 10/100/1G/2.5G/5G LAN [S/N])
|__1-4 f400:f400:0100 00 2.00 480MBit/s 200mA 1IF (Synology DiskStation 7F00047D2513F267)
|__usb2 1d6b:0003:0404 09 3.00 5000MBit/s 0mA 1IF (Linux 4.4.302+ xhci-hcd xHCI Host Controller 0000:00:15.0) hub
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 6 Spd=480 MxCh= 0
D: Ver= 2.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 3
P: Vendor=0bda ProdID=8157 Rev=30.00
S: Manufacturer=Realtek
S: Product=USB 10/100/1G/2.5G/5G LAN
S: SerialNumber=X
C: #Ifs= 0 Cfg#= 0 Atr= MxPwr=
cat: '/sys/bus/usb/devices/usb1/1-1/1-*:?.*/bInterfaceNumber': No such file or directory
cat: '/sys/bus/usb/devices/usb1/1-1/1-*:?.*/bAlternateSetting': No such file or directory
cat: '/sys/bus/usb/devices/usb1/1-1/1-*:?.*/bNumEndpoints': No such file or directory
cat: '/sys/bus/usb/devices/usb1/1-1/1-*:?.*/bInterfaceClass': No such file or directory
cat: '/sys/bus/usb/devices/usb1/1-1/1-*:?.*/bInterfaceSubClass': No such file or directory
cat: '/sys/bus/usb/devices/usb1/1-1/1-*:?.*/bInterfaceProtocol': No such file or directory
/usr/local/bin/usb-devices: line 79: printf: (none): invalid number
I: If#= 0 Alt= 0 #EPs= 0 Cls=() Sub= Prot= Driver=
Description of your environment
Connection:
Synology NAS
USB-A UGREEN converter > USB-C WAVLINK 5G dongle > CAT 8 UGREEN cable > UCG Fiber > Modem > Internet
MacBook Pro M1 MAX
WIFI directly to UCG Fiber with a U7 Pro Max LAN directly to UCG Fiber with a UGREEN usb-c to rh45 5GbE Adapter model CM848 and a CAT8 UGREEN cable
Or adapters vice versa
Output of dmesg command
[ 339.519613] r8152: module verification failed: signature and/or required key missing - tainting kernel
[ 339.530797] usbcore: registered new interface driver r8152
[ 448.879506] usb 2-1: new SuperSpeed USB device number 3 using xhci_hcd
[ 448.898655] usb 2-1: USB device idVendor=0bda idProduct=8157 manufacturer=Realtek product=USB 10/100/1G/2.5G/5G LAN is prohibited!
[ 448.911805] usb 2-1: USB device idVendor=0bda idProduct=8157 manufacturer=Realtek product=USB 10/100/1G/2.5G/5G LAN is prohibited!
[ 448.924959] usb 2-1: USB device idVendor=0bda idProduct=8157 manufacturer=Realtek product=USB 10/100/1G/2.5G/5G LAN is prohibited!
[ 448.938094] usb 2-1: USB device idVendor=0bda idProduct=8157 manufacturer=Realtek product=USB 10/100/1G/2.5G/5G LAN is prohibited!
[ 448.951242] usb 2-1: USB device idVendor=0bda idProduct=8157 manufacturer=Realtek product=USB 10/100/1G/2.5G/5G LAN is prohibited!
[ 448.964395] usb 2-1: USB device idVendor=0bda idProduct=8157 manufacturer=Realtek product=USB 10/100/1G/2.5G/5G LAN is prohibited!
[ 448.977540] usb 2-1: USB device idVendor=0bda idProduct=8157 manufacturer=Realtek product=USB 10/100/1G/2.5G/5G LAN is prohibited!
[ 448.990682] usb 2-1: USB device idVendor=0bda idProduct=8157 manufacturer=Realtek product=USB 10/100/1G/2.5G/5G LAN is prohibited!
[ 449.003826] usb 2-1: USB device idVendor=0bda idProduct=8157 manufacturer=Realtek product=USB 10/100/1G/2.5G/5G LAN is prohibited!
Output of lsusb command
sh-4.4# lsusb
|__usb1 1d6b:0002:0404 09 2.00 480MBit/s 0mA 1IF (Linux 4.4.302+ xhci-hcd xHCI Host Controller 0000:00:15.0) hub
|__1-4 f400:f400:0100 00 2.00 480MBit/s 200mA 1IF (Synology DiskStation 7F00047D2513F267)
|__usb2 1d6b:0003:0404 09 3.00 5000MBit/s 0mA 1IF (Linux 4.4.302+ xhci-hcd xHCI Host Controller 0000:00:15.0) hub
|__2-1 0bda:8157:3000 00 3.20 5000MBit/s 0IFs (Realtek USB 10/100/1G/2.5G/5G LAN [S/N])
Output of ifconfig -a command
docker0 Link encap:Ethernet HWaddr <mac>
inet addr:172.17.0.1 Bcast:172.17.255.255 Mask:255.255.0.0
inet6 addr: fe80::42:41ff:fe3f:7b1e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:39403 errors:0 dropped:0 overruns:0 frame:0
TX packets:36774 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4585458 (4.3 MiB) TX bytes:6443140 (6.1 MiB)
docker03f Link encap:Ethernet HWaddr <mac>
inet6 addr: fe80::70b3:c9ff:fed2:2cb4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6426 errors:0 dropped:0 overruns:0 frame:0
TX packets:5037 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1241941 (1.1 MiB) TX bytes:964864 (942.2 KiB)
docker247 Link encap:Ethernet HWaddr <mac>
inet6 addr: fe80::4c70:9bff:fec0:b37/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4357 errors:0 dropped:0 overruns:0 frame:0
TX packets:4495 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:404664 (395.1 KiB) TX bytes:818722 (799.5 KiB)
docker7b1 Link encap:Ethernet HWaddr <mac>
inet6 addr: fe80::e0e2:f6ff:fe42:a254/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:113 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:15482 (15.1 KiB)
docker80e Link encap:Ethernet HWaddr <mac>
inet6 addr: fe80::b43f:7eff:fe6f:7dfb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5711 errors:0 dropped:0 overruns:0 frame:0
TX packets:5892 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:466635 (455.6 KiB) TX bytes:1868241 (1.7 MiB)
dockeraff Link encap:Ethernet HWaddr <mac>
inet6 addr: fe80::b8b0:63ff:fe7c:17bf/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:112 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:15392 (15.0 KiB)
dockere15 Link encap:Ethernet HWaddr <mac>
inet6 addr: fe80::ac6c:60ff:fe25:30f6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:40987 errors:0 dropped:0 overruns:0 frame:0
TX packets:39743 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4320736 (4.1 MiB) TX bytes:4132465 (3.9 MiB)
dockerf0c Link encap:Ethernet HWaddr <mac>
inet6 addr: fe80::3c92:34ff:fe9f:981c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:98 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:13918 (13.5 KiB)
eth0 Link encap:Ethernet HWaddr <mac>
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:15100061 errors:0 dropped:0 overruns:0 frame:0
TX packets:13866012 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:11261700786 (10.4 GiB) TX bytes:33143903314 (30.8 GiB)
Interrupt:97 base 0xc000
eth1 Link encap:Ethernet HWaddr <mac>
UP BROADCAST SLAVE 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)
Interrupt:96 base 0xe000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:258432 errors:0 dropped:0 overruns:0 frame:0
TX packets:258432 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:44377311 (42.3 MiB) TX bytes:44377311 (42.3 MiB)
ovs-syste Link encap:Ethernet HWaddr <mac>
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:1
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
ovs_eth0 Link encap:Ethernet HWaddr <mac>
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::211:32ff:feca:ada7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14812110 errors:0 dropped:0 overruns:0 frame:0
TX packets:4378377 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:11035254985 (10.2 GiB) TX bytes:33143903314 (30.8 GiB)
ovs_eth1 Link encap:Ethernet HWaddr <mac>
inet addr:169.254.21.100 Bcast:169.254.255.255 Mask:255.255.0.0
UP 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:1
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 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:1
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.8.0.1 P-t-P:10.8.0.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP 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:500
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
EXTRA
When stopping and starting the package, dmesg outputs the following
[23218.078560] usbcore: deregistering interface driver r8152
[23223.025276] usb 1-1: USB device idVendor=0bda idProduct=8157 manufacturer=Realtek product=USB 10/100/1G/2.5G/5G LAN is prohibited!
[23223.038474] usbcore: registered new interface driver r8152
Installation is with the latest release from March 31st > 2.19.2-2
I saw Realtek released a new driver version so I was willing to try by updating the driver in the package but couldn't figure out how to compile it. 2.20.1
For the output above used Front Panel USB 3.2 port. But tried all ports during my trial-and-errors.
Not the owner of this repo but I have the same ethernet adapter and USB-A adapter as you. I'm using a DS1520+, so the same year as your NAS, and things are working for me. DSM 7.2.x. I'm seeing 3.4Gbps with 5GbE link using the adapter.
A few ideas:
- What is your DSM version? Which asset from release 2.19.2-2 are you using? Looks like you have a gemini lake CPU, so make sure you download the gemini lake asset and the correct DSM version.
- The UGREEN USB-C to USB-A adapter is orientation sensitive on the USB-C side. One orientation gave me 400Mbps with 1GbE link. I then flipped it over and the other orientation gave me 4.7Gbps with 5GbE link (using a desktop).
The "is prohibited" part doesn't sound great...
[23223.025276] usb 1-1: USB device idVendor=0bda idProduct=8157 manufacturer=Realtek product=USB 10/100/1G/2.5G/5G LAN is prohibited!
Not the owner of this repo but I have the same ethernet adapter and USB-A adapter as you. I'm using a DS1520+, so the same year as your NAS, and things are working for me. DSM 7.2.x. I'm seeing 3.4Gbps with 5GbE link using the adapter.
A few ideas:
- What is your DSM version? Which asset from release 2.19.2-2 are you using? Looks like you have a gemini lake CPU, so make sure you download the gemini lake asset and the correct DSM version.
- The UGREEN USB-C to USB-A adapter is orientation sensitive on the USB-C side. One orientation gave me 400Mbps with 1GbE link. I then flipped it over and the other orientation gave me 4.7Gbps with 5GbE link (using a desktop).
The "is prohibited" part doesn't sound great...
[23223.025276] usb 1-1: USB device idVendor=0bda idProduct=8157 manufacturer=Realtek product=USB 10/100/1G/2.5G/5G LAN is prohibited!
Hey, thanks for your reply!
Great to hear that you have a similar setup with a geminilake processor-NAS. Let me reply to your ideas:
DSM Verion is DSM 7.7.2-72806 Update 3
The asset I'm using is the r8152-geminilake-2.19.2-2_7.2.spk
2.
So I actually have two adapters that I both tried and that didn't work, but why not give it a try turning around the UGREEN one.
Turning around the connector helped:
sh-4.4# lsusb
|__usb1 1d6b:0002:0404 09 2.00 480MBit/s 0mA 1IF (Linux 4.4.302+ xhci-hcd xHCI Host Controller 0000:00:15.0) hub
|__1-4 f400:f400:0100 00 2.00 480MBit/s 200mA 1IF (Synology DiskStation 7F00047D2513F267)
|__usb2 1d6b:0003:0404 09 3.00 5000MBit/s 0mA 1IF (Linux 4.4.302+ xhci-hcd xHCI Host Controller 0000:00:15.0) hub
|__2-1 0bda:8157:3000 00 3.20 5000MBit/s 0IFs (Realtek USB 10/100/1G/2.5G/5G LAN [S/N])
However:
[147587.086644] usb 2-1: new SuperSpeed USB device number 4 using xhci_hcd
[147587.105891] usb 2-1: USB device idVendor=0bda idProduct=8157 manufacturer=Realtek product=USB 10/100/1G/2.5G/5G LAN is prohibited!
[147587.119127] usb 2-1: USB device idVendor=0bda idProduct=8157 manufacturer=Realtek product=USB 10/100/1G/2.5G/5G LAN is prohibited!
[147587.132378] usb 2-1: USB device idVendor=0bda idProduct=8157 manufacturer=Realtek product=USB 10/100/1G/2.5G/5G LAN is prohibited!
[147587.145603] usb 2-1: USB device idVendor=0bda idProduct=8157 manufacturer=Realtek product=USB 10/100/1G/2.5G/5G LAN is prohibited!
[147587.158832] usb 2-1: USB device idVendor=0bda idProduct=8157 manufacturer=Realtek product=USB 10/100/1G/2.5G/5G LAN is prohibited!
[147587.172061] usb 2-1: USB device idVendor=0bda idProduct=8157 manufacturer=Realtek product=USB 10/100/1G/2.5G/5G LAN is prohibited!
[147587.185284] usb 2-1: USB device idVendor=0bda idProduct=8157 manufacturer=Realtek product=USB 10/100/1G/2.5G/5G LAN is prohibited!
[147587.198512] usb 2-1: USB device idVendor=0bda idProduct=8157 manufacturer=Realtek product=USB 10/100/1G/2.5G/5G LAN is prohibited!
[147587.211748] usb 2-1: USB device idVendor=0bda idProduct=8157 manufacturer=Realtek product=USB 10/100/1G/2.5G/5G LAN is prohibited!
The prohibited error remains the same.
Really unsure what to do with this or how to troubleshoot it. Searching for this 'lan prohibited' error doesn't resolve in any research-direction. Not with an AI search or with regular old Google.
Anyway thanks for trying to help me!
Alright after some hard digging I figured it out!
Apparantly and I'm not sure why, but the files
50-usb-realtek-net.rules and 51-usb-r8152-net.rules
Weren't successfully created in (or copied to) directory /lib/udev/rules.d/
Just as with other linux systems using usb.conf , the device needs ot know that certain USB accessories are allowed. By means of these files, DSM knows this. Before it simply didn't allow the connection. After manually creating these files, the adapter now works.
For the love of me don't ask why this doesn't work natively on my system though... Maybe something to look into? @bb-qq
While I provide a mechanism to install udev.rules, I don't recommend it because it modifies the system. This is touched upon here: https://github.com/bb-qq/r8152/wiki/Troubleshooting#hot-plugging-does-not-work
I don't understand why the driver wouldn't work without udev.rules being installed. Attaching these logs to this issue might help us understand what's happening: https://github.com/bb-qq/r8152/wiki/Troubleshooting#how-to-investigate-if-the-driver-does-not-work-properly
Hey @bb-qq ,
So your request is for me to share both the contents of /var/packages/r8152/var/log/start-stop-status.log and /var/log/synopkg.log with you, correct?
Yes
Was this helpful? @bb-qq
Attached the two requested files:
synopkg.log start-stop-status.log
Hopefully this helps!
Let me ask you questions.
- When you obtained this log, did you have
50-usb-realtek-net.rulesinstalled on your system? - Also, what would happen if you only installed
51-usb-r8152-net.rules?
Upon investigation, it appears the “prohibited” message is being output by libsynousb.so, part of Synology's USB system. Since the behavior of this module is undocumented, I cannot determine any further details. Reinstalling DSM may resolve the issue.
Since there has been no response for a long time, this issue is closed. Please feel free to re-open it if you have any questions.