H2+ Realtek 8125

Post Reply
PigLover
Posts: 49
Joined: Wed Nov 15, 2017 3:55 am
languages_spoken: english
ODROIDs: C2, XU4, HC1, MC1
Has thanked: 5 times
Been thanked: 7 times
Contact:

H2+ Realtek 8125

Post by PigLover »

Just received by H2+ (thanks for the fast shipping).

I know that the Linux Kernel 5.4 fully supports the RTL8125 and have several different PCIe cards with this chip running on other system just using the stock Ubuntu 20.04 LTS release (syba, etc). They do run better once the official realtek driver is installed - but the 5.4 kernel recognizes them out of the box (albeit running them on the RTL8139 driver).

However - for some reason the NICs on the H2+ are not recognized by Ubuntu 20.04/Linux Kernel 5.4. This creates an issue when installing the Ubuntu Server load - when you put the driver from Realtek on a USB and put it onto the H2+ you can't run the install script because it depends on compiling the driver against the proper kernel header files and the Ubuntu Server install does not include the necessary tools. You need to install them over the network, which unfortunately is not available until after the driver is installed (vicious circle).

Is there something reconfigured in your BIOS codes for the NICs that is causing them not to be recognized by the 5.4 kernel? This shouldn't be happening.

mad_ady
Posts: 8316
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 573 times
Been thanked: 434 times
Contact:

Re: H2+ Realtek 8125

Post by mad_ady »

Most likely the 5.4 driver has a list of supported hardware ids (like usb's vid:pid, but for pci) that it tries to register to and these are missing from the driver. Maybe HK could distribute some precompiled ko file for standard distros (Ubuntu 20.04, Debian, CentOS, Fedora, etc) so that end users can more easily get network up to update kernel, install dkms, etc.

These users thanked the author mad_ady for the post:
emk2203 (Sat Jun 27, 2020 11:03 pm)

Ellicott
Posts: 16
Joined: Thu Apr 16, 2020 2:23 pm
languages_spoken: english
Has thanked: 4 times
Been thanked: 0
Contact:

Re: H2+ Realtek 8125

Post by Ellicott »

@mid_ady,

Just curious by which channel you get the H2 Plus so fast.

PigLover
Posts: 49
Joined: Wed Nov 15, 2017 3:55 am
languages_spoken: english
ODROIDs: C2, XU4, HC1, MC1
Has thanked: 5 times
Been thanked: 7 times
Contact:

Re: H2+ Realtek 8125

Post by PigLover »

Ellicott wrote:
Wed Jun 24, 2020 6:30 am
@mid_ady,

Just curious by which channel you get the H2 Plus so fast.
Direct from Hardkernel web site. Ordered on day of release (6/16). Got shipment confirmation on 6/19 with expected delivery Friday, 6/26. Package showed up Monday (6/21). Received Korea to CA in 5 days from order to receipt. Can't always get that kind of turnaround when ordering from other places in CA.

User avatar
odroid
Site Admin
Posts: 34854
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 932 times
Been thanked: 760 times
Contact:

Re: H2+ Realtek 8125

Post by odroid »

The very new RTL8125B on the H2+ is not compatible with old RTL8125 nor RTL8125A. :oops:
https://wiki.odroid.com/odroid-h2/hardw ... on_h2_plus

PigLover
Posts: 49
Joined: Wed Nov 15, 2017 3:55 am
languages_spoken: english
ODROIDs: C2, XU4, HC1, MC1
Has thanked: 5 times
Been thanked: 7 times
Contact:

Re: H2+ Realtek 8125

Post by PigLover »

odroid wrote:
Wed Jun 24, 2020 9:44 am
The very new RTL8125B on the H2+ is not compatible with old RTL8125 nor RTL8125A. :oops:
https://wiki.odroid.com/odroid-h2/hardw ... on_h2_plus
That makes sense. Thank you.

mad_ady
Posts: 8316
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 573 times
Been thanked: 434 times
Contact:

Re: H2+ Realtek 8125

Post by mad_ady »

Ellicott wrote:
Wed Jun 24, 2020 6:30 am
@mid_ady,

Just curious by which channel you get the H2 Plus so fast.
I didn't. I only have the regular H2 :)

Ellicott
Posts: 16
Joined: Thu Apr 16, 2020 2:23 pm
languages_spoken: english
Has thanked: 4 times
Been thanked: 0
Contact:

Re: H2+ Realtek 8125

Post by Ellicott »

Wow, shipment only took 5 days from Korean to US. @Ameridroid, you still haven't receive the H2 Plus board yet? It shows differences. SBC's benchmark is an important factor, so is the shipment benchmark.

brad
Posts: 1158
Joined: Tue Mar 29, 2016 1:22 pm
languages_spoken: english
ODROIDs: C2 N1 N2 N2+ H2 H2+ (64 bit ftw)
Location: Australia
Has thanked: 58 times
Been thanked: 105 times
Contact:

Re: H2+ Realtek 8125

Post by brad »

Look like firmware is being added recently upstream - https://git.kernel.org/pub/scm/linux/ke ... 53b2850870

Does this work for a workaround?

As root user

Code: Select all

# cd /lib/firmware/rtl_nic
# wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/rtl_nic/rtl8125b-1.fw
# wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/rtl_nic/rtl8125b-2.fw
Edit i guess it is hard to wget without network but they are the files needed to allow realktek driver to detect that chip. Ubuntu are uaually quick to add new firmware to linux-firmware package so hopefully not to long bedore it makes it into the repos

Ameridroid
Posts: 278
Joined: Thu Mar 17, 2016 4:19 am
languages_spoken: english
Has thanked: 51 times
Been thanked: 30 times
Contact:

Re: H2+ Realtek 8125

Post by Ameridroid »

Ellicott wrote:
Wed Jun 24, 2020 11:18 pm
Wow, shipment only took 5 days from Korean to US. @Ameridroid, you still haven't receive the H2 Plus board yet? It shows differences. SBC's benchmark is an important factor, so is the shipment benchmark.
No, we haven't received our shipment yet. It takes longer for large commercial shipments to clear customs than individual customer shipments.

brad
Posts: 1158
Joined: Tue Mar 29, 2016 1:22 pm
languages_spoken: english
ODROIDs: C2 N1 N2 N2+ H2 H2+ (64 bit ftw)
Location: Australia
Has thanked: 58 times
Been thanked: 105 times
Contact:

Re: H2+ Realtek 8125

Post by brad »

brad wrote:
Thu Jun 25, 2020 12:24 am
Look like firmware is being added recently upstream - https://git.kernel.org/pub/scm/linux/ke ... 53b2850870
The firmware made it to Ubuntu Groovy Gorilla but not Focal as yet
These users thanked the author brad for the post:
odroid (Mon Jun 29, 2020 10:35 am)

User avatar
odroid
Site Admin
Posts: 34854
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 932 times
Been thanked: 760 times
Contact:

Re: H2+ Realtek 8125

Post by odroid »

brad wrote:
Sat Jun 27, 2020 11:09 am
brad wrote:
Thu Jun 25, 2020 12:24 am
Look like firmware is being added recently upstream - https://git.kernel.org/pub/scm/linux/ke ... 53b2850870
The firmware made it to Ubuntu Groovy Gorilla but not Focal as yet
I hope Ubuntu 20.10 or 20.04.1 can activate the RTL8125B 2.5GbE ports out of the box.

brad
Posts: 1158
Joined: Tue Mar 29, 2016 1:22 pm
languages_spoken: english
ODROIDs: C2 N1 N2 N2+ H2 H2+ (64 bit ftw)
Location: Australia
Has thanked: 58 times
Been thanked: 105 times
Contact:

Re: H2+ Realtek 8125

Post by brad »

We have the same issue with pfsense as the realtek drivers need some update on the BSD O/S. I will try to work out a solution as currently the OS shuts down if it cannot detect at least 1 Ethernet port after install.

User avatar
odroid
Site Admin
Posts: 34854
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 932 times
Been thanked: 760 times
Contact:

Re: H2+ Realtek 8125

Post by odroid »

@brad,
Do you mean the OpenBSD?
viewtopic.php?f=170&t=39691

brad
Posts: 1158
Joined: Tue Mar 29, 2016 1:22 pm
languages_spoken: english
ODROIDs: C2 N1 N2 N2+ H2 H2+ (64 bit ftw)
Location: Australia
Has thanked: 58 times
Been thanked: 105 times
Contact:

Re: H2+ Realtek 8125

Post by brad »

odroid wrote:
Fri Jul 24, 2020 11:06 am
@brad,
Do you mean the OpenBSD?
viewtopic.php?f=170&t=39691
It actually based on freeBSD but should be the same driver, Thanks I will check that out.

fvolk
Posts: 451
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 41 times
Contact:

Re: H2+ Realtek 8125

Post by fvolk »

8125B support was added days ago in net-next kernel tree, so not yet in upcoming 5.8, but probably in 5.9...
https://git.kernel.org/pub/scm/linux/ke ... -next.git/
netdev-next.png
netdev-next.png (46.19 KiB) Viewed 476 times
These users thanked the author fvolk for the post (total 4):
brad (Fri Jul 24, 2020 3:13 pm) • odroid (Fri Jul 24, 2020 4:12 pm) • joshua.yang (Fri Jul 24, 2020 5:28 pm) • retro_1979 (Mon Jul 27, 2020 10:09 pm)

retro_1979
Posts: 5
Joined: Sat Jul 25, 2020 4:07 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 5 times
Been thanked: 0
Contact:

Re: H2+ Realtek 8125

Post by retro_1979 »

Hi all, I'm very new to the Odroid scene but have just bought the H2+ and am setting up a NAS drive.

I understand that in order to get the ethernet sockets working I need to update the above drivers. Thing is I've installed FreeNAS so is there a way I can update them via that instead of a win10/Linux install?

If not, if I install a Linux OS on another drive and then install the drivers will it all be okay if I then revert back to FreeNAS? As in do the drivers only work if that OS is running or are the updated at the bios/kernel level?

If my question is better placed somewhere else then let me know!

mad_ady
Posts: 8316
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 573 times
Been thanked: 434 times
Contact:

Re: H2+ Realtek 8125

Post by mad_ady »

Your FreeNAS will need to run the right drivers. There was a recent driver released for *BSD systems that might work
These users thanked the author mad_ady for the post:
retro_1979 (Mon Jul 27, 2020 10:08 pm)

retro_1979
Posts: 5
Joined: Sat Jul 25, 2020 4:07 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 5 times
Been thanked: 0
Contact:

Re: H2+ Realtek 8125

Post by retro_1979 »

mad_ady wrote:
Sat Jul 25, 2020 6:07 pm
Your FreeNAS will need to run the right drivers. There was a recent driver released for *BSD systems that might work
Hi, thanks for responding. The problem I have is that I'm doing a fresh setup so can't access the WebUI to be able to update FreeNAS. Unless there's a way to do it before that?

retro_1979
Posts: 5
Joined: Sat Jul 25, 2020 4:07 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 5 times
Been thanked: 0
Contact:

Re: H2+ Realtek 8125

Post by retro_1979 »

P.s. going to give a usb ethernet adapter a shot when it gets delivered so let's hope that works!

brad
Posts: 1158
Joined: Tue Mar 29, 2016 1:22 pm
languages_spoken: english
ODROIDs: C2 N1 N2 N2+ H2 H2+ (64 bit ftw)
Location: Australia
Has thanked: 58 times
Been thanked: 105 times
Contact:

Re: H2+ Realtek 8125

Post by brad »

For FreeBSD / FreeNAS / pfsense we will need to use a port for the moment as support is not built in as yet https://www.freshports.org/net/realtek-re-kmod/

This means download, compiling & installing the port on an already running system so it will probably be best to use usb or M.2 connected Ethernet adaptor for install and to gain initial network connection.

Going to try this out with the current pfsense release.
These users thanked the author brad for the post (total 2):
odroid (Mon Jul 27, 2020 11:36 am) • retro_1979 (Mon Jul 27, 2020 10:08 pm)

retro_1979
Posts: 5
Joined: Sat Jul 25, 2020 4:07 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 5 times
Been thanked: 0
Contact:

Re: H2+ Realtek 8125

Post by retro_1979 »

Managed to get connected via a USB ethernet dongle and think I'll need to wait for an idiots guide (like I said - I'm a beginner!).

Am I right in thinking that this should be enabled with a bios update as noted by fvolk above? If so, I might just wait until then and soldier on with the USB adaptor for now.

brad
Posts: 1158
Joined: Tue Mar 29, 2016 1:22 pm
languages_spoken: english
ODROIDs: C2 N1 N2 N2+ H2 H2+ (64 bit ftw)
Location: Australia
Has thanked: 58 times
Been thanked: 105 times
Contact:

Re: H2+ Realtek 8125

Post by brad »

retro_1979 wrote:
Mon Jul 27, 2020 10:06 pm
Managed to get connected via a USB ethernet dongle and think I'll need to wait for an idiots guide (like I said - I'm a beginner!).

Am I right in thinking that this should be enabled with a bios update as noted by fvolk above? If so, I might just wait until then and soldier on with the USB adaptor for now.
Hi retro_1979,
nice name I was born in 1979!

It is not in the bios but the operating system(s) at the moment. The Realtek 8125b is very new and it takes some time for distributions to incorporate the relevant drivers. Seems that relevant people are making this happen for many Linux and BSD distros but it will probably take some time to make it incorporated into stable versions.

I'm going back to basics for the moment and will test drivers on FreeBSD to check some stability. I will try to find an interim method to install if they work well and rally the upstream maintainers to include.

Brad.
These users thanked the author brad for the post:
retro_1979 (Tue Jul 28, 2020 1:36 am)

fvolk
Posts: 451
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 41 times
Contact:

Re: H2+ Realtek 8125

Post by fvolk »

retro_1979 wrote:
Mon Jul 27, 2020 10:06 pm
wait for an idiots guide (like I said - I'm a beginner!).
Am I right in thinking that this should be enabled with a bios update as noted by fvolk above?
No, I did not say anything about a bios update above.

Brand new hardware components such as new network chips require software driver support.
The current Linux kernel does not have a driver for it included - yet.
I just took a quick look at the driver support - the driver is already queued for integration (net-next => networking updates for next development cycle) and we just have to wait a bit more - that's the way how the development process happens in such a complex worldwide community project as the Linux kernel.

Those who know how to manually-patch and want to invest their time, they can set up a custom kernel build themselves already.
For example I know how to do it, but I deliberately have not yet bought a H2+ because I know that I would be tempted to play with it, so instead I'll wait until support is integrated in mainline and "it just works", save the time and do other stuff instead :-)
These users thanked the author fvolk for the post:
retro_1979 (Tue Jul 28, 2020 1:36 am)

retro_1979
Posts: 5
Joined: Sat Jul 25, 2020 4:07 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 5 times
Been thanked: 0
Contact:

Re: H2+ Realtek 8125

Post by retro_1979 »

Thanks both - yes, 1979 here! And love for retro gaming. Will persevere with patience and thanks for helping me understand some more.

fvolk
Posts: 451
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 41 times
Contact:

Re: H2+ Realtek 8125

Post by fvolk »

fvolk wrote:
Fri Jul 24, 2020 1:58 pm
but probably in 5.9...
8125B support was just pulled by Linus -> see https://git.kernel.org/pub/scm/linux/ke ... 169_main.c
netnext.png
netnext.png (41.98 KiB) Viewed 70 times

User avatar
odroid
Site Admin
Posts: 34854
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 932 times
Been thanked: 760 times
Contact:

Re: H2+ Realtek 8125

Post by odroid »

@fvolk,
Thank you for the good news.
Can you or we try the new Kernel and driver once Linus releases 5.9 RC1 early next week ?

brad
Posts: 1158
Joined: Tue Mar 29, 2016 1:22 pm
languages_spoken: english
ODROIDs: C2 N1 N2 N2+ H2 H2+ (64 bit ftw)
Location: Australia
Has thanked: 58 times
Been thanked: 105 times
Contact:

Re: H2+ Realtek 8125

Post by brad »

odroid wrote:
Thu Aug 06, 2020 3:43 pm
@fvolk,
Thank you for the good news.
Can you or we try the new Kernel and driver once Linus releases 5.9 RC1 early next week ?
Yes this is good news :) The patch notes mention (https://git.kernel.org/pub/scm/linux/ke ... 6d140ce2ef)
Add support for RTL8125B rev.b. In my tests 2.5Gbps worked well
w/o firmware, however for a stable link at 1Gbps firmware revision
0.0.2 is needed.
So for stable connection at 1Gbps sounds like we would need the update firmware in the OS as well which is here in this patch in linux-firmware https://git.kernel.org/pub/scm/linux/ke ... a3947f037d

Updated firmware package for Ubuntu / other OS's should be relatively easy produce and install but it sounds like it is a requirement for 1Gbps connections.

Edit: I have a new PC motherboard on the way with a RTL8125BG(S)-CG in it so I will have something to connect to at 2.5 for testing
These users thanked the author brad for the post:
odroid (Thu Aug 06, 2020 4:58 pm)

fvolk
Posts: 451
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 41 times
Contact:

Re: H2+ Realtek 8125

Post by fvolk »

odroid wrote:
Thu Aug 06, 2020 3:43 pm
Can you or we try the new Kernel and driver once Linus releases 5.9 RC1 early next week ?
I currently do not own a H2+ nor a 2.5G network, sorry.
(But I plan to upgrade my H2 server to a H2+ some day because of the power jolt to harddisks at power-on bug)
These users thanked the author fvolk for the post:
odroid (Thu Aug 06, 2020 4:58 pm)

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 0 guests