Sorry we lost some posts because of database errors!

*New 12.1 series Release:
2020-09-01: XigmaNAS 12.1.0.4.7728 - released

*New 11.4 series Release:
2020-08-27: XigmaNAS 11.4.0.4.7718 - released!


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

No driver for Realtek 8125 2.5Gb

NIC, network controllers, compatibility questions, WOL, wake on lan
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
m_seitz
Starter
Starter
Posts: 28
Joined: 01 Mar 2015 15:36
Status: Offline

No driver for Realtek 8125 2.5Gb

#1

Post by m_seitz »

In search for a faster network, I stumbled over 2.5Gb Ethernet adapters based on the Realtek RTL8125. A 2.5Gb network card can be bought for less than 20 USD, and they don't seem to produce a lot of heat either, unlike 10Gb cards.

FreeBSD does unfortunately not contain drivers for the RTL8125. However, OpenBSD has drivers for this chip: https://man.openbsd.org/rge

Is it possible to get this driver to work in XigmaNAS?

Edit: my NAS is currently running v12.1.0.4.7542
My Nas
MB: Asus M5A78L-M/USB3 RAM: 32GB unbuffered ECC (4x Kingston KVR16E11/8)
CPU: AMD Phenom II X2 550 Storage: 6x 12TB HGST (crap, don't buy!) HUH721212ALN604 (raidZ2, one single pool)
PSU: Cooler Master V450S (450W) UPS: CyberPower CP1300EPFCLCD (USB via usbhid-ups)
OS: XigmaNAS 12.1 x64-embedded

kmot
NewUser
NewUser
Posts: 13
Joined: 26 May 2020 13:41
Status: Offline

Re: No driver for Realtek 8125 2.5Gb

#2

Post by kmot »

I came here to post EXACTLY the same kind of topic, only to find out m_seitz already posted it.

I really, really hope XigmaNAS would soon have the RTL8125 support.

m_seitz
Starter
Starter
Posts: 28
Joined: 01 Mar 2015 15:36
Status: Offline

Re: No driver for Realtek 8125 2.5Gb

#3

Post by m_seitz »

kmot wrote:
26 May 2020 13:46
I really, really hope XigmaNAS would soon have the RTL8125 support.
I guess it's up to FreeBSD to support the 8125. However, I have no idea whom to ask ... or rather, where to ask.

Since OpenBSD has a driver, I assume it shouldn't be difficult to port it to FreeBSD. But I am saying that only because both operating systems have "BSD" in their names :lol:
My Nas
MB: Asus M5A78L-M/USB3 RAM: 32GB unbuffered ECC (4x Kingston KVR16E11/8)
CPU: AMD Phenom II X2 550 Storage: 6x 12TB HGST (crap, don't buy!) HUH721212ALN604 (raidZ2, one single pool)
PSU: Cooler Master V450S (450W) UPS: CyberPower CP1300EPFCLCD (USB via usbhid-ups)
OS: XigmaNAS 12.1 x64-embedded

kmot
NewUser
NewUser
Posts: 13
Joined: 26 May 2020 13:41
Status: Offline

Re: No driver for Realtek 8125 2.5Gb

#4

Post by kmot »

The guy who added the 8125 support to OpenBSD, Kevin Lo, has also done ports to FreeBSD, so there's hope. Perhaps we could ask him?

His homepage: http://kevlo.org/

m_seitz
Starter
Starter
Posts: 28
Joined: 01 Mar 2015 15:36
Status: Offline

Re: No driver for Realtek 8125 2.5Gb

#5

Post by m_seitz »

I sent him an e-mail just now, and I will keep you updated on his response :-)
My Nas
MB: Asus M5A78L-M/USB3 RAM: 32GB unbuffered ECC (4x Kingston KVR16E11/8)
CPU: AMD Phenom II X2 550 Storage: 6x 12TB HGST (crap, don't buy!) HUH721212ALN604 (raidZ2, one single pool)
PSU: Cooler Master V450S (450W) UPS: CyberPower CP1300EPFCLCD (USB via usbhid-ups)
OS: XigmaNAS 12.1 x64-embedded

m_seitz
Starter
Starter
Posts: 28
Joined: 01 Mar 2015 15:36
Status: Offline

Re: No driver for Realtek 8125 2.5Gb

#6

Post by m_seitz »

Quick update: Kevin offered to help, but he doesn't have time to port the driver himself.

I am in the process to gather the source and hopefully find out what the differences between FreeBSD and OpenBSD are... Expect results within the next few months/years :-D
My Nas
MB: Asus M5A78L-M/USB3 RAM: 32GB unbuffered ECC (4x Kingston KVR16E11/8)
CPU: AMD Phenom II X2 550 Storage: 6x 12TB HGST (crap, don't buy!) HUH721212ALN604 (raidZ2, one single pool)
PSU: Cooler Master V450S (450W) UPS: CyberPower CP1300EPFCLCD (USB via usbhid-ups)
OS: XigmaNAS 12.1 x64-embedded

kmot
NewUser
NewUser
Posts: 13
Joined: 26 May 2020 13:41
Status: Offline

Re: No driver for Realtek 8125 2.5Gb

#7

Post by kmot »

Great work!

In case you need any help to speed things up a bit ;) don't hesitate to ask. I'm sure there are a lot of people here with knowledge relating to porting drivers.

kmot
NewUser
NewUser
Posts: 13
Joined: 26 May 2020 13:41
Status: Offline

Re: No driver for Realtek 8125 2.5Gb

#8

Post by kmot »

My new 2.5/10Gb switch arrived last week and my Realtek 8125 NIC should arrive this/next week. Looking forward to hearing any progress details from m_seitz.

kmot
NewUser
NewUser
Posts: 13
Joined: 26 May 2020 13:41
Status: Offline

Re: No driver for Realtek 8125 2.5Gb

#9

Post by kmot »

Nice, my RTL8125 NIC arrived today. Tested it with Win10 and worked flawlessly. Switch recognizes the connection correctly as 2.5G.

Now I'm able to test this Realtek card with the latest Xigmanas whenever the driver files are ready to test.

User avatar
apollo567
Site Admin
Site Admin
Posts: 737
Joined: 23 Jun 2012 06:37
Location: Ludwigshafen, Germany
Status: Offline

Re: No driver for Realtek 8125 2.5Gb

#10

Post by apollo567 »

kmot wrote:
16 Jun 2020 09:39
My new 2.5/10Gb switch arrived last week and my Realtek 8125 NIC should arrive this/next week. Looking forward to hearing any progress details from m_seitz.
May I ask please which switch do you use please ?
my NAS and its development until today: viewtopic.php?f=63&t=39&sid=039fed830cf ... 4d0abe4a04

kmot
NewUser
NewUser
Posts: 13
Joined: 26 May 2020 13:41
Status: Offline

Re: No driver for Realtek 8125 2.5Gb

#11

Post by kmot »

apollo567 wrote:
24 Jun 2020 22:17
May I ask please which switch do you use please ?
I have ZyXEL XGS1210-12: https://www.zyxel.com/products_services ... GS1210-12/

m_seitz
Starter
Starter
Posts: 28
Joined: 01 Mar 2015 15:36
Status: Offline

Re: No driver for Realtek 8125 2.5Gb

#12

Post by m_seitz »

Sorry for my being quiet for such a long time.

I took a quick look at some drivers for the same device on FreeBSD and OpenBSD, and there were a lot of changes/differences between the two BSDs. As I am not more than a mere script-kiddie, I cannot even dream about porting Kevin's driver to FreeBSD.

The OpenBSD driver is attached to this posting.
The driver, man page and general changes can be found on GitHub.
You do not have the required permissions to view the files attached to this post.
My Nas
MB: Asus M5A78L-M/USB3 RAM: 32GB unbuffered ECC (4x Kingston KVR16E11/8)
CPU: AMD Phenom II X2 550 Storage: 6x 12TB HGST (crap, don't buy!) HUH721212ALN604 (raidZ2, one single pool)
PSU: Cooler Master V450S (450W) UPS: CyberPower CP1300EPFCLCD (USB via usbhid-ups)
OS: XigmaNAS 12.1 x64-embedded

kmot
NewUser
NewUser
Posts: 13
Joined: 26 May 2020 13:41
Status: Offline

Re: No driver for Realtek 8125 2.5Gb

#13

Post by kmot »

Thanks m_seitz for the reply and for the files. I took a look at them and it was clear to me that this is beyond my expertise.

Is there anyone out there reading this who could push this thing forward?

cookiemonster
Advanced User
Advanced User
Posts: 291
Joined: 23 Mar 2014 02:58
Location: UK
Status: Offline

Re: No driver for Realtek 8125 2.5Gb

#14

Post by cookiemonster »

Looks like you might be in luck.
Knight-of-ni of zoneminder fame seems to have done it 5 days ago.
https://github.com/knight-of-ni/rtl_bsd_drv
You just need to build it. I would setup a jail with sources to do that.
Main: Xigmanas 11.2.0.4 x64-full-RootOnZFS as ESXi VM with 24GB memory.
Main Host: Supermicro X8DT3 Memory: 72GB ECC; 2 Xeon E5645 CPUs; Storage: (HBA) - LSI SAS 9211-4i with 3 SATA x 1 TB in raidZ1, 1 x 3 TB SAS drive as single stripe, 3 x 4 TB SAS drives in raidZ1.
Spare1: HP DL360 G7; 6 GB ECC RAM; 1 Xeon CPU; 5 x 500 GB disks on H210i
Backup1: HP DL380 G7; 24 GB ECC RAM; 2 Xeon E5645 CPUs; 8 x 500 GB disks on IBM M1015 flashed to LSI9211-IT

kmot
NewUser
NewUser
Posts: 13
Joined: 26 May 2020 13:41
Status: Offline

Re: No driver for Realtek 8125 2.5Gb

#15

Post by kmot »

I tried to do the build but seems it was too hard for me / poor (not basic enough) instructions. I've never build any drivers or anything.

So I'm giving up on this unless there are some helpful souls in here.

biggsy
experienced User
experienced User
Posts: 80
Joined: 02 Jul 2012 10:24
Location: Sydney, Australia
Status: Offline

Re: No driver for Realtek 8125 2.5Gb

#16

Post by biggsy »

Have a look at this thread in the pfSense forum:
https://forum.netgate.com/topic/135850/ ... release/45
Hope that helps.

kmot
NewUser
NewUser
Posts: 13
Joined: 26 May 2020 13:41
Status: Offline

Re: No driver for Realtek 8125 2.5Gb

#17

Post by kmot »

I downloaded the latest compiled driver by knight-of-ni and placed the file if_re.ko into /boot/kernel with correct ownership/permissions as instructed. I then edited the System > Advanced > loader.conf by adding the line if_re_load=“YES”.

But, it is still not working and when I reboot, the file if_re.ko from /boot/kernel disappears.

Any tips?

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4980
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: No driver for Realtek 8125 2.5Gb

#18

Post by raulfg3 »

kmot wrote:
24 Jul 2020 12:21
I downloaded the latest compiled driver by knight-of-ni and placed the file if_re.ko into /boot/kernel with correct ownership/permissions as instructed. I then edited the System > Advanced > loader.conf by adding the line if_re_load=“YES”.

But, it is still not working and when I reboot, the file if_re.ko from /boot/kernel disappears.

Any tips?
your install is embeded?
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

kmot
NewUser
NewUser
Posts: 13
Joined: 26 May 2020 13:41
Status: Offline

Re: No driver for Realtek 8125 2.5Gb

#19

Post by kmot »

Yes, embedded install.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4980
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: No driver for Realtek 8125 2.5Gb

#20

Post by raulfg3 »

files copied on embeded , dissapears on reboot, you need full install, or do a trick:


copy file to data disk, and write a script that copy file from data disk to boot disk on each reboot <- this are the trick that OBI use
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

biggsy
experienced User
experienced User
Posts: 80
Joined: 02 Jul 2012 10:24
Location: Sydney, Australia
Status: Offline

Re: No driver for Realtek 8125 2.5Gb

#21

Post by biggsy »

Apologies, kmot, I just realized that you're on v12.1.0.4.7542 (based on FreeBSD 12.1).

It looks like knight-of-ni has so far only built the driver for FreeBSD 11.3, on which pfSense 2.4.5 is based.

That driver will probably fail to load because of the kernel version mismatch.

kmot
NewUser
NewUser
Posts: 13
Joined: 26 May 2020 13:41
Status: Offline

Re: No driver for Realtek 8125 2.5Gb

#22

Post by kmot »

Ok, I could go with the full version, but I need the correct driver build for the latest Xigmanas version. I guess I just have to wait until someone with more skills builds the driver for the latest version.

kmot
NewUser
NewUser
Posts: 13
Joined: 26 May 2020 13:41
Status: Offline

Re: No driver for Realtek 8125 2.5Gb

#23

Post by kmot »

I installed the v11.4.0.4.7682 full version and now the knight-of-ni driver works. Nice! Thank you for you all for helping me with this. :)

biggsy
experienced User
experienced User
Posts: 80
Joined: 02 Jul 2012 10:24
Location: Sydney, Australia
Status: Offline

Re: No driver for Realtek 8125 2.5Gb

#24

Post by biggsy »

Great to hear you got it working.

m_seitz
Starter
Starter
Posts: 28
Joined: 01 Mar 2015 15:36
Status: Offline

Re: No driver for Realtek 8125 2.5Gb

#25

Post by m_seitz »

This is good news indeed.
@kmot what transfer rate do you get with your setup? If your pool is fast enough, you should see 200 to 250 MB/s.
My Nas
MB: Asus M5A78L-M/USB3 RAM: 32GB unbuffered ECC (4x Kingston KVR16E11/8)
CPU: AMD Phenom II X2 550 Storage: 6x 12TB HGST (crap, don't buy!) HUH721212ALN604 (raidZ2, one single pool)
PSU: Cooler Master V450S (450W) UPS: CyberPower CP1300EPFCLCD (USB via usbhid-ups)
OS: XigmaNAS 12.1 x64-embedded

kmot
NewUser
NewUser
Posts: 13
Joined: 26 May 2020 13:41
Status: Offline

Re: No driver for Realtek 8125 2.5Gb

#26

Post by kmot »

With iperf3 I get an average of 177 MBytes/sec sender/receiver and max at 180 MBytes/sec. About the same results with CrystalDiskMark Sequential Q32 T1 on SMB share. Haven't tried iSCSI share yet. I think results are pretty much the same.

My test rig is an old Fujitsu Celsius with 4x 2,5" 750GB 7200 rpm drives striped and i3 530 CPU and 16 GB RAM. Total power usage is ~50W running full steam, ~30W idle with disks spinning. So far the CPU usage is not being maxed.

m_seitz
Starter
Starter
Posts: 28
Joined: 01 Mar 2015 15:36
Status: Offline

Re: No driver for Realtek 8125 2.5Gb

#27

Post by m_seitz »

Sounds great! Tank you for posting this :-)
My Nas
MB: Asus M5A78L-M/USB3 RAM: 32GB unbuffered ECC (4x Kingston KVR16E11/8)
CPU: AMD Phenom II X2 550 Storage: 6x 12TB HGST (crap, don't buy!) HUH721212ALN604 (raidZ2, one single pool)
PSU: Cooler Master V450S (450W) UPS: CyberPower CP1300EPFCLCD (USB via usbhid-ups)
OS: XigmaNAS 12.1 x64-embedded

jack47
Starter
Starter
Posts: 35
Joined: 20 Jul 2013 09:27
Status: Offline

Re: No driver for Realtek 8125 2.5Gb

#28

Post by jack47 »

Hello,
someone compiler the driver for FreeBSD12.1:

https://forum.netgate.com/topic/135850/ ... 5707619944

It works (iperf):

[ ID] Interval Transfer Bandwidth
[ 4] 0.00-10.00 sec 2.44 GBytes 2.09 Gbits/sec sender
[ 4] 0.00-10.00 sec 2.44 GBytes 2.09 Gbits/sec receiver

Need to use the trick that raulfg3 said (script that copy the file at boot)

Hope that Xigmanas folks put this in the next release ;)

EDIT: WOL doesn't seem to work, even if ifconfig says it's enabled. Working on it ;)

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4980
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: No driver for Realtek 8125 2.5Gb

#29

Post by raulfg3 »

good news..
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

Post Reply

Return to “LAN , Network controllers”