We talk about different things here
Did you install all five drivers that I listed in my post (a few posts above this one)? Maybe you should try to load them into kernel using the insmod <module_name> command after you install them with the "opkg install <module_name>" command. I'm not very proficient with this part of Linux, but I've seen some references about installing drivers in OpenWRT, which used both the opkg install and the insmod commands.
In my case, I compiled these kernel modules into the image, so I believe they were inserted into the kernel, but I may be completely off base here. It's not my area of expertise yet.
Interesting take indeed, i should try to install all five, that is a good tip.
Its working now with @mj82 patch with the real realtek drivers but ill keep it in mind for sure
Maybe like this, although i dont understand much
With 19.07.5 coming up, does these steps still work?
Maybe the "kmod-usb-net-rtl8152" available from openwrt officiall opkg repository now contains RTL8156 ?
edit: i guess they kinda dont, because the patchurl is
how can i fix this for 19.07.5?
@mj82 or anyone else please?
I cant upgrade without this working...
If the files it's patching haven't changed between .4 and .5, simply patch the .4, and move the files over.
Updated patch for 19.07.5 kmod-usb-net-rtl8152
git clone https://github.com/openwrt/openwrt.git cd openwrt git checkout v19.07.5 wget https://github.com/mj22226/openwrt/commit/34ac227af72ce3fda8e87d23bd00cc96dd2c3b62.patch patch -p 1 -i 34ac227af72ce3fda8e87d23bd00cc96dd2c3b62.patch ./scripts/feeds update -a ./scrripts/feeds install -a wget -O .config https://downloads.openwrt.org/releases/19.07.5/targets/x86/64/config.buildinfo make defconfig make menuconfig
Thanks alot @mj82
does anyone with these chips have an update re: current 5.10 master driver?
- afaik... some patching from 5.13 (or other source) may still be required?
- is this a rpi4 only problem? ( pc users don't have driver crashes? )
manjaro march https://forum.manjaro.org/t/sabrent-usb-2-5g-ethernet-adapter-realtek-8152-chipset-drivers-from-aur/55483/56
basically seeing some crashing after several hours with 8156 in-tree driver... so not sure if others are seeing the same or it's load related, or if I have some weird 81xx conflict on the system... (wrong opkg kmod or something aka kmod-usb-net-rtl8152 vs kmod-usb-net-rtl8150)
I am also trying to add the RTL8156 to a Pi 4. With my limited knowledge, I think the Realtek official Linux driver is meant for the x86 system. I think the best bet is to backport Linux 5.13 RTL8152 driver to OpenWRT. However, I am new to Linux kernel and still learning.
there is a related thread on the turris forum
basically... poor or mixed results all around... so I think you are pretty much correct re: needing 5.13+
I am by no means experienced on that field, but there IS an official driver for kernels up to 5.6 available: https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-usb-3-0-software --> https://www.realtek.com/en/directly-download?downloadid=14693064993b470514fcf9f45f2442e5
So this should have been working for 19.07-series as well? Just had a quick google search and was directed to the very first post (https://www.phoronix.com/scan.php?page=news_item&px=Realtek-RTL8153-RTL8156-Linux) that reads like this driver is available already for a longer time?
So maybe someone experienced in compiling could try get this working for pre 5.6-kernels (so in reality all 21.02 and 19.07-targets, right?).
19.07 is kernel 4.14, 21.02 is 5.4.
there's no r8152 in 19.07, but a
kmod-usb-net-rtl8152 in 21.02.
so we are just unlucky, that the provided driver (that has to be built via the above linked source) is not working?
This thread is old, at the time it got started there was no 21.02.
Whatever's posted, isn't quite .... relevant/up to date anymore.
I can imagine the device works fine in 21.02, trial and error though.
Search the forum for
r8152 for newer threads.
No, I entered this information because @anon50098793 is actively working on this topic and
kmod-usb-net-rtl8152 is as of now not working for RTL8156-devices. And this I tried understand since actual code (dated April 2021) is available for the pre-5.6 kernels.
Not sure whether this has been addressed in this thread: but the rtl drivers in the linux kernel work, but they lack some features only found in the downloadable driver from RTL themselves. So if you want peak performance for 2.5GB stuff, you need to download and use the drivers (patch) from RTL.
Would a wiki/howto suffice to get this stuff working? I'm fairly satisfied with my 2.5Gb adaptor, except for one weird problem: if it's left plugged into my powered USB3 hub, and I disconnect the computer, it (adaptor, still connected to net and powered hub, so it has power, and net, but no control from computer) starts to cause some avalanche effect on the network to everything else connected to the same switch, and paralyzes the network. Not seen this with my slightly older ASIX gigabit adaptor.
Could anyone else verify this problem with their RTL adaptors? Mine is a Plugable.
user who reported issue with theirs said it was sort of a time/intermittent based issue...
different chipset but interesting result w rtl driver from recent jeff-"the-pie-guy"-geerling show: https://youtu.be/V3jwQzb46Zc?t=481