OPNsense Forum

Archive => 20.7 Legacy Series => Topic started by: lox on August 10, 2020, 07:31:03 am

Title: Updated Unix Realtek Drivers (1.96.04)
Post by: lox on August 10, 2020, 07:31:03 am
Hello,

I have made a pull request (https://github.com/opnsense/src/pull/68) in order to update the Realtek drivers to support Ordoid H2+.

How can I make use of it straight away ? I see in this thread (https://forum.opnsense.org/index.php?topic=9644.msg43875#msg43933) that user @franco advised to update the kernel with a command like:

Quote from: franco link=topic=9644.msg43933#msg43933
Code: [Select]
# opnsense-update -kr 18.7.2-re
# opnsense-shell reboot

How can I do so ?

Title: Re: Updated Unix Realtek Drivers (1.96.04)
Post by: franco on August 10, 2020, 10:08:21 am
Hi,

Thanks for the contribution. Due to the size of the code it's barely auditable so we need to take the driver from the download page and integrate this from our end, build a test kernel and provide it here.

Trouble with Realtek is that they haven't released a driver in a longer time now and though we look about every month for it's easy to miss...


Cheers,
Franco
Title: Re: Updated Unix Realtek Drivers (1.96.04)
Post by: lox on August 10, 2020, 10:11:35 am
I only replaced the files with the ones downloaded but I understand the security wise reasons.

Just tell me when the kernel is ready, I have an Odroid H2+ ready for testing.
Title: Re: Updated Unix Realtek Drivers (1.96.04)
Post by: franco on August 10, 2020, 11:07:50 am
Hi,

Retained your original commit with a small change for ARM builds that is not in the upstream driver....

Kernel can be installed like so:

# opnsense-update -kr 20.7-re-mcast
# opnsense-shell reboot


Cheers,
Franco
Title: Re: Updated Unix Realtek Drivers (1.96.04)
Post by: lox on August 10, 2020, 01:01:02 pm
That was fast thks.

Maybe the build isn't finished I get:

Code: [Select]
# opnsense-update -kr 20.7-re-mcast
Fetching kernel-20.7-re-mcast-amd64.txz: ..... failed, no signature found
Title: Re: Updated Unix Realtek Drivers (1.96.04)
Post by: franco on August 10, 2020, 01:25:41 pm
Sorry, too fast it seems. Had to build another one for the multicast reports and removed the first one to avoid confusion...

# opnsense-update -kr 20.7-re-mcast2
# opnsense-shell reboot


Cheers,
Franco
Title: Re: Updated Unix Realtek Drivers (1.96.04)
Post by: lox on August 14, 2020, 06:14:20 am
Thank heaps it works. Is it included in 20.7.1 ?
Title: Re: Updated Unix Realtek Drivers (1.96.04)
Post by: MartB on August 25, 2020, 03:50:26 pm
Its not included in 20.7.1 as far as i can tell.
The RTL8125B is not supported, eventhough the drivers mentioned should contain support for it. Moreover the specific command franco posted does not work anymore as it seems to be removed.
Title: Re: Updated Unix Realtek Drivers (1.96.04)
Post by: biomatrix on August 25, 2020, 06:43:15 pm
Its not included in 20.7.1 as far as i can tell.
The RTL8125B is not supported, eventhough the drivers mentioned should contain support for it. Moreover the specific command franco posted does not work anymore as it seems to be removed.

perhaps this can help :

https://forums.serverbuilds.net/t/guide-resolve-realtek-nic-stability-issues-on-pfsense-2-4-4-2-4-5-2-5-0-opnsense-use-2-5gb-realtek/3555

verifyed working build - with the RTL8125B confirmed working - I understand the best way would be OPNSENSE to compile it themselves - but here is a module that works.
Title: Re: Updated Unix Realtek Drivers (1.96.04)
Post by: franco on August 26, 2020, 10:35:08 am
You can use this one...

# opnsense-update -kr 20.7.1-netmap4


Cheers,
Franco
Title: Re: Updated Unix Realtek Drivers (1.96.04)
Post by: va176thunderbolt on September 04, 2020, 03:27:36 pm
I didn't see this in the 20.7.2 release notes. Is it targeted for a later release?
Title: Re: Updated Unix Realtek Drivers (1.96.04)
Post by: franco on September 04, 2020, 10:10:01 pm
Yes, feedback has been quite low...


Cheers,
Franco
Title: Re: Updated Unix Realtek Drivers (1.96.04)
Post by: va176thunderbolt on September 04, 2020, 11:28:33 pm
I tossed opnsense-update -kr 20.7.1-netmap4 on one of my boxes. I'll let you know if I run into any issues.

Adam
Title: Re: Updated Unix Realtek Drivers (1.96.04)
Post by: franco on September 04, 2020, 11:31:24 pm
Thanks Adam. Careful with the netmap changes so far bundled with that same kernel (IPS and Sensei) ... still not reliable in these two feature sets. Everything else is fine.


Cheers,
Franco
Title: Re: Updated Unix Realtek Drivers (1.96.04)
Post by: MartB on September 06, 2020, 11:46:28 am
Im running on this realtek driver version (compiled the module myself by cherry picking the opnsense commit) for 2 weeks now and its rock stable. Im not using any sort of IDS though, but the NIC driver is stable so far. (~80 GB transfered from wan to lan in the last 7 days)

I will only update this whenever it reaches beta / GA to avoid having to hookup to the device with a monitor / serial again haha.
Title: Re: Updated Unix Realtek Drivers (1.96.04)
Post by: MartB on September 19, 2020, 02:41:18 am
Still fine so far, did anyone else test this?
Runs stable and i pushed it through quite some config cycles and hundreds of gigabytes by now.
Title: Re: Updated Unix Realtek Drivers (1.96.04)
Post by: jbergler on September 23, 2020, 11:56:38 am
Been running 20.7.2-netmap for these drivers pretty happily for a bit now.
Title: Re: Updated Unix Realtek Drivers (1.96.04)
Post by: franco on September 23, 2020, 12:07:05 pm
For 20.7.3 this won't be released, but a 20.7.3-netmap kernel exists for compatibility.

The next kernel after that will likely merge the "-netmap" content including the Realtek update.

Thanks for all the feedback so far!


Cheers,
Franco
Title: Re: Updated Unix Realtek Drivers (1.96.04)
Post by: va176thunderbolt on September 23, 2020, 05:21:26 pm
Been running 20.7.2-netmap for these drivers and haven't experienced any issues. Have Suricata running on three interfaces, one with several vlans.
Title: Re: Updated Unix Realtek Drivers (1.96.04)
Post by: MartB on October 14, 2020, 03:29:13 pm
Minor update: Still going strong so far on the latest netmap kernel. 300GB in 18 days and no weird issues encountered.
Title: Re: Updated Unix Realtek Drivers (1.96.04)
Post by: foresthus on April 07, 2021, 01:07:16 pm
Hi,
I have read a lot about the problems with realtek drivers and opnsense. Is the Problem really at this point? Or could it be, that the addon from sunvally (sensei) causes the problem iwth their netmap-implemantation? In my hardware I am using there is this hardware-nic: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller. The performance is going down after installing sensei.

Before I have a download my rate was:
Download 550MBit and Upload 98Mbit
This is the hardware: AMD and opnsense and realtek-NIC: Probe URL: https://bsd-hardware.info/?probe=4f3f6a4102

So without sensei everything is OK.

Please look here: https://forum.opnsense.org/index.php?topic=22019.msg110532#msg110532