[SOLVED] ODROID-H2+ NETWORK LAN 2.5GBE R8125 driver

Locked
der.einstein
Posts: 2
Joined: Mon Jun 29, 2020 6:11 am
languages_spoken: english
ODROIDs: ODROID-C2, ODROID-H2+
Has thanked: 0
Been thanked: 0
Contact:

[SOLVED] ODROID-H2+ NETWORK LAN 2.5GBE R8125 driver

Post by der.einstein »

Dear odroiders,
I installed Ubuntu 20.04 on an NVME SSD in my shiny new ODROID-H2+ just before finding out that neither the onboard 2.5 GBE LAN ports nor the WIFI dongle 5a work out of the box with this board and with this OS.
I tried:
- downloading the driver source from the realtek site on another PC
- downloading the needed packages and dependencies on another PC
- installed packages and dependencies on the H2+
- tried compiling the drivers on the H2+

It failed for both the WIFI as well as the LAN network adapters!

Did someone succeed and is able to tell the "how to"?

Thanks a lot!

joshua.yang
Posts: 408
Joined: Fri Sep 22, 2017 5:54 pm
languages_spoken: Korean, English
ODROIDs: XU4, XU4Q + Cloudshell2, H2, N2
Has thanked: 21 times
Been thanked: 89 times
Contact:

Re: ODROID-H2+ NETWORK LAN 2.5GBE R8125 driver

Post by joshua.yang »

Hi.

Have you read this Wiki page? https://wiki.odroid.com/odroid-h2/appli ... _on_h2plus
This page describes "How to install the LAN driver in various ways, with the internet or without that".

I recommend you to install the LAN driver using the DKMS Debian package so that you don't have to re-install the driver every time you install the new kernel.
These users thanked the author joshua.yang for the post:
domih (Mon Jun 29, 2020 5:01 pm)

domih
Posts: 274
Joined: Mon Feb 11, 2019 4:48 pm
languages_spoken: English, French
ODROIDs: UX4, HC2, N2, H2, C4, H2+
Location: San Francisco Bay Area
Has thanked: 90 times
Been thanked: 104 times
Contact:

Re: ODROID-H2+ NETWORK LAN 2.5GBE R8125 driver

Post by domih »

joshua.yang wrote:
Mon Jun 29, 2020 10:00 am
I recommend you to install the LAN driver using the DKMS Debian package so that you don't have to re-install the driver every time you install the new kernel.
I believe the .deb or manual installation perform both a DKMS installation with the same result. Someone to pitch in to confirm?

der.einstein
Posts: 2
Joined: Mon Jun 29, 2020 6:11 am
languages_spoken: english
ODROIDs: ODROID-C2, ODROID-H2+
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID-H2+ NETWORK LAN 2.5GBE R8125 driver

Post by der.einstein »

FInally, I succeeded using my smartphone with USB tethering.
The guide on the wiki page above did the trick, however, before you wrote the link I could not find that information in the wiki. So many thanks there!
I have working WIFI and LAN no!!!

Cheers.

joshua.yang
Posts: 408
Joined: Fri Sep 22, 2017 5:54 pm
languages_spoken: Korean, English
ODROIDs: XU4, XU4Q + Cloudshell2, H2, N2
Has thanked: 21 times
Been thanked: 89 times
Contact:

Re: ODROID-H2+ NETWORK LAN 2.5GBE R8125 driver

Post by joshua.yang »

der.einstein wrote:
Tue Jun 30, 2020 5:06 am
FInally, I succeeded using my smartphone with USB tethering.
The guide on the wiki page above did the trick, however, before you wrote the link I could not find that information in the wiki. So many thanks there!
I have working WIFI and LAN no!!!

Cheers.
Glad to hear that. :)

joshua.yang
Posts: 408
Joined: Fri Sep 22, 2017 5:54 pm
languages_spoken: Korean, English
ODROIDs: XU4, XU4Q + Cloudshell2, H2, N2
Has thanked: 21 times
Been thanked: 89 times
Contact:

Re: ODROID-H2+ NETWORK LAN 2.5GBE R8125 driver

Post by joshua.yang »

domih wrote:
Mon Jun 29, 2020 5:03 pm
I believe the .deb or manual installation perform both a DKMS installation with the same result. Someone to pitch in to confirm?
There's no difference between those two methods unless the Debian package is installed via the Launchpad PPA. ;)

dkking
Posts: 15
Joined: Sat Feb 02, 2019 12:07 am
languages_spoken: english
ODROIDs: Rock64
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: ODROID-H2+ NETWORK LAN 2.5GBE R8125 driver

Post by dkking »

can you use the dkms method in fedora?

joshua.yang
Posts: 408
Joined: Fri Sep 22, 2017 5:54 pm
languages_spoken: Korean, English
ODROIDs: XU4, XU4Q + Cloudshell2, H2, N2
Has thanked: 21 times
Been thanked: 89 times
Contact:

Re: ODROID-H2+ NETWORK LAN 2.5GBE R8125 driver

Post by joshua.yang »

dkking wrote:
Sun Jul 12, 2020 10:02 pm
can you use the dkms method in fedora?
Hi.

You probably can install only the DKMS using the integrated script.

Clone r8125-dkms repository and use that script.

Code: Select all

git clone https://github.com/awesometic/realtek-r8125-dkms
cd realtek-r8125-dkms
sudo ./dkms-install.sh
Please let me know the results. :)
These users thanked the author joshua.yang for the post:
dkking (Fri Jul 17, 2020 12:17 am)

pfgsnoopy
Posts: 9
Joined: Sat Jul 11, 2020 1:51 am
languages_spoken: english, German
ODROIDs: Odroid-H2+
Has thanked: 3 times
Been thanked: 0
Contact:

Re: ODROID-H2+ NETWORK LAN 2.5GBE R8125 driver

Post by pfgsnoopy »

I'm going to piggyback on this thread ;)

I managed to install the driver, but somehow I still can't establish a network link. I keep getting a "No media detected". Strangely enough, it is possible to trigger the WoL from another client on my LAN. So the media (CAT6 cable) is there and properly connected. I have tried this with several different LAN configurations (H2+ connected to a variety of 1GBit/s switches and H2+ directly connected to one of the 1GBit/s Ports of my internet router (AVM Fritzbox 7590).

I could use a 1GBit/s-USB3-adapter (which I used for driver installation over the internet), but that would take away one USB3 port and leave me with two useless LAN ports onboard.

Anybody have any ideas what else I could try?
Odroid-H2+; HyperX Impact DDR4 HX424S14IB2K2/16; WD Black SN750 NVMe SSD 250GB

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: ODROID-H2+ NETWORK LAN 2.5GBE R8125 driver

Post by mad_ady »

You can try using ethtool to force 1G or 100M mode and avoid autonegociation.

dkking
Posts: 15
Joined: Sat Feb 02, 2019 12:07 am
languages_spoken: english
ODROIDs: Rock64
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: ODROID-H2+ NETWORK LAN 2.5GBE R8125 driver

Post by dkking »

joshua.yang wrote:
Tue Jul 14, 2020 9:22 am
dkking wrote:
Sun Jul 12, 2020 10:02 pm
can you use the dkms method in fedora?
Hi.

You probably can install only the DKMS using the integrated script.

Clone r8125-dkms repository and use that script.

Code: Select all

git clone https://github.com/awesometic/realtek-r8125-dkms
cd realtek-r8125-dkms
sudo ./dkms-install.sh
Please let me know the results. :)
it installed, ill reply once again when it works after a kernel upgrade. thanks again

pfgsnoopy
Posts: 9
Joined: Sat Jul 11, 2020 1:51 am
languages_spoken: english, German
ODROIDs: Odroid-H2+
Has thanked: 3 times
Been thanked: 0
Contact:

Re: ODROID-H2+ NETWORK LAN 2.5GBE R8125 driver

Post by pfgsnoopy »

mad_ady wrote:
Thu Jul 16, 2020 9:50 pm
You can try using ethtool to force 1G or 100M mode and avoid autonegociation.
Thanks for the tipp, but it didn't help either.

I even reinstalled Ubuntu 20.04 Server, installed build-essential, net-tools and ethtool (using an USB3-Ethernet-adapter) and redid the driver installation as in

Code: Select all

git clone https://github.com/awesometic/realtek-r8125-dkms
cd realtek-r8125-dkms
sudo ./dkms-install.sh
.

There are two NICs enp2s0 and enp3s0

But the problem remains the same. Whatever parameter I set, ethtool keeps telling me "Link detection: no" although the LEDs on the RJ45 port are flashing.

The H2+ is reacting to Wake-on-LAN, booting Ubuntu 20.04 Server, but it doesn't get an IP address.
Odroid-H2+; HyperX Impact DDR4 HX424S14IB2K2/16; WD Black SN750 NVMe SSD 250GB

SatDad
Posts: 3
Joined: Sat Jul 18, 2020 12:59 am
languages_spoken: english, german
ODROIDs: C4, H2b, H2+
Location: Bavaria
Has thanked: 0
Been thanked: 1 time
Contact:

Re: ODROID-H2+ NETWORK LAN 2.5GBE R8125 driver

Post by SatDad »

stuck with the same problem yesterday, both nic's did not respond even link led was up and traffic blinking.
Finally i used webmin netconfig to set both to DHCP and it works.
Just wondering both nic's responding to wol within a second but need about 30 sec to be reachable via network.
Assume there ist still something wrong, but at least i'm able to connect in the meantime

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: ODROID-H2+ NETWORK LAN 2.5GBE R8125 driver

Post by mad_ady »

If you're connecting to a managed switch with stp, the ports are are in learning state for 30s to prevent loops. They are up, but just receiving traffic. See if you can run tcpdump on them and see traffic.

pfgsnoopy
Posts: 9
Joined: Sat Jul 11, 2020 1:51 am
languages_spoken: english, German
ODROIDs: Odroid-H2+
Has thanked: 3 times
Been thanked: 0
Contact:

Re: ODROID-H2+ NETWORK LAN 2.5GBE R8125 driver

Post by pfgsnoopy »

By now I'm almost certain that I either made a boneheaded rookie mistake or the H2+ is defective.

Here some information about my configuration:

Code: Select all

cat /proc/net/dev | awk '{print $1}'
Inter-|
face
enp3s0:
enp2s0:
enx000ec6bf1bea:
lo:

Code: Select all

# /etc/network/interfaces

# Loopback Device
auto lo
iface lo net loopback

# enp2s0 1. onboard LAN Realtek r8125B
auto enp2s0
iface enp2s0 inet dhcp

# enp3s0 2. onboard LAN Realtek r8125B
auto enp3s0
iface enp3s0 inet dhcp

# USB3-LAN-Dongle
auto enx000ec6bf1bea
iface enx000ec6bf1bea inet dhcp

Code: Select all

ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: enp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 00:1e:06:45:32:a8 brd ff:ff:ff:ff:ff:ff
3: enx000ec6bf1bea: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:0e:c6:bf:1b:ea brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.8/24 brd 192.168.0.255 scope global dynamic enx000ec6bf1bea
       valid_lft 863740sec preferred_lft 863740sec
    inet6 2003:c9:5709:6f00:20e:c6ff:febf:1bea/64 scope global dynamic mngtmpaddr noprefixroute
       valid_lft 6942sec preferred_lft 1201sec
    inet6 fe80::20e:c6ff:febf:1bea/64 scope link
       valid_lft forever preferred_lft forever
4: enp3s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 00:1e:06:45:32:a9 brd ff:ff:ff:ff:ff:ff

Code: Select all

sudo ethtool enp2s0
[sudo] password for xyz:
Settings for enp2s0:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
                                2500baseX/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  Not reported
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Speed: 10Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        MDI-X: Unknown
        Supports Wake-on: pumbg
        Wake-on: g
        Current message level: 0x00000033 (51)
                               drv probe ifdown ifup
        Link detected: no
And here's what it looks like in Webmin:
Odroid-H2plus_Webmin_NIC.png
Odroid-H2plus_Webmin_NIC.png (265.31 KiB) Viewed 610 times
Last edited by pfgsnoopy on Sat Jul 18, 2020 3:06 am, edited 1 time in total.
Odroid-H2+; HyperX Impact DDR4 HX424S14IB2K2/16; WD Black SN750 NVMe SSD 250GB

pfgsnoopy
Posts: 9
Joined: Sat Jul 11, 2020 1:51 am
languages_spoken: english, German
ODROIDs: Odroid-H2+
Has thanked: 3 times
Been thanked: 0
Contact:

Re: ODROID-H2+ NETWORK LAN 2.5GBE R8125 driver

Post by pfgsnoopy »

mad_ady wrote:
Sat Jul 18, 2020 1:19 am
If you're connecting to a managed switch with stp, the ports are are in learning state for 30s to prevent loops. They are up, but just receiving traffic. See if you can run tcpdump on them and see traffic.
In my case all switches are unmanaged. I have ordered a managed PoE-switch (Zyxel GS1200-5HPv2 for a Raspberry Pi cluster project), but that won't be here for a couple of days.

What puzzles me is that the H2+ responds to WoL and the LEDs on the RJ45 port are blinking, but still ethtool shows that there is no link.
Odroid-H2+; HyperX Impact DDR4 HX424S14IB2K2/16; WD Black SN750 NVMe SSD 250GB

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: ODROID-H2+ NETWORK LAN 2.5GBE R8125 driver

Post by mad_ady »

To rule out the switch, connect a straight cable between both h2+ ports and see if they come up.

SatDad
Posts: 3
Joined: Sat Jul 18, 2020 12:59 am
languages_spoken: english, german
ODROIDs: C4, H2b, H2+
Location: Bavaria
Has thanked: 0
Been thanked: 1 time
Contact:

Re: ODROID-H2+ NETWORK LAN 2.5GBE R8125 driver

Post by SatDad »

same to me, try to set them to dhcp at networkconfig and they will show up after 30 sec

pfgsnoopy
Posts: 9
Joined: Sat Jul 11, 2020 1:51 am
languages_spoken: english, German
ODROIDs: Odroid-H2+
Has thanked: 3 times
Been thanked: 0
Contact:

Re: ODROID-H2+ NETWORK LAN 2.5GBE R8125 driver

Post by pfgsnoopy »

mad_ady wrote:
Sat Jul 18, 2020 3:48 am
To rule out the switch, connect a straight cable between both h2+ ports and see if they come up.
Since I tried it on 2 different switches and directly on one of the ethernet ports of my router, I doubt that it's a switch problem.

Are the LAN ports on the H2+ able to establish x-linked connections, 'cause if they aren't connecting both ports with a standard LAN cable won't get you anywhere.

But I tried it anyway and as I expected, both onboard NICs stay down.

edit:
Upon reading this post, one could argue that I was impolite. That was not my intention. So please let me apologize. I'm pretty frustrated right now, but that's no excuse for bad behavior.
Thanks for trying to help me.
Last edited by pfgsnoopy on Sat Jul 18, 2020 4:27 am, edited 2 times in total.
Odroid-H2+; HyperX Impact DDR4 HX424S14IB2K2/16; WD Black SN750 NVMe SSD 250GB

pfgsnoopy
Posts: 9
Joined: Sat Jul 11, 2020 1:51 am
languages_spoken: english, German
ODROIDs: Odroid-H2+
Has thanked: 3 times
Been thanked: 0
Contact:

Re: ODROID-H2+ NETWORK LAN 2.5GBE R8125 driver

Post by pfgsnoopy »

SatDad wrote:
Sat Jul 18, 2020 3:53 am
same to me, try to set them to dhcp at networkconfig and they will show up after 30 sec
There isn't even a link at the enp2s0 and enp3s0 entries (in Webmin). The enx000ec6bf1bea entry is linked to a page where I could disable/enable DHCP and do all the other TCP/IP configuration changes.
Odroid-H2+; HyperX Impact DDR4 HX424S14IB2K2/16; WD Black SN750 NVMe SSD 250GB

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: ODROID-H2+ NETWORK LAN 2.5GBE R8125 driver

Post by mad_ady »

Hmm, not sure what to suggest next. The ports should have autosense, so a straight cable between them should work. Let's see what odroid suggests next.
These users thanked the author mad_ady for the post:
pfgsnoopy (Sat Jul 18, 2020 7:48 pm)

pfgsnoopy
Posts: 9
Joined: Sat Jul 11, 2020 1:51 am
languages_spoken: english, German
ODROIDs: Odroid-H2+
Has thanked: 3 times
Been thanked: 0
Contact:

Re: ODROID-H2+ NETWORK LAN 2.5GBE R8125 driver

Post by pfgsnoopy »

mad_ady wrote:
Sat Jul 18, 2020 1:30 pm
Hmm, not sure what to suggest next. The ports should have autosense, so a straight cable between them should work.
Thank you anyway.
mad_ady wrote:
Sat Jul 18, 2020 1:30 pm
Let's see what odroid suggests next.
I hope they can come up with a solution. Otherwise I'm afraid, I'll need to get a replacement unit.
Odroid-H2+; HyperX Impact DDR4 HX424S14IB2K2/16; WD Black SN750 NVMe SSD 250GB

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: ODROID-H2+ NETWORK LAN 2.5GBE R8125 driver

Post by mad_ady »

I expect odroid will reply on monday. In the mwantime, if you have time can you boot windows and see if it behaves the same way? To rule out kernel/driver issue.

SatDad
Posts: 3
Joined: Sat Jul 18, 2020 12:59 am
languages_spoken: english, german
ODROIDs: C4, H2b, H2+
Location: Bavaria
Has thanked: 0
Been thanked: 1 time
Contact:

Re: ODROID-H2+ NETWORK LAN 2.5GBE R8125 driver

Post by SatDad »

I'm not quite sure, fiddled around that much, but I think I created both nics again via "add new interface" even with the same names. At least I get that thing up and running. Maybe it is worth a try
Ps: I just checked another H2b, same behavior, as long as there is no cable connected, you cannot change anything on this port. And I don't think it's a hardware problem, I had the same strange behaviour only showing a sync with 10 or 100 mbps before and at least it is trying to sync
These users thanked the author SatDad for the post:
pfgsnoopy (Sun Jul 19, 2020 3:01 am)

pfgsnoopy
Posts: 9
Joined: Sat Jul 11, 2020 1:51 am
languages_spoken: english, German
ODROIDs: Odroid-H2+
Has thanked: 3 times
Been thanked: 0
Contact:

Re: ODROID-H2+ NETWORK LAN 2.5GBE R8125 driver

Post by pfgsnoopy »

mad_ady wrote:
Sat Jul 18, 2020 8:48 pm
I expect odroid will reply on monday. In the mwantime, if you have time can you boot windows and see if it behaves the same way? To rule out kernel/driver issue.
Unfortunately, Windows is not an option. The only Windows license I have is runnig on my Surface Pro.
Odroid-H2+; HyperX Impact DDR4 HX424S14IB2K2/16; WD Black SN750 NVMe SSD 250GB

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: ODROID-H2+ NETWORK LAN 2.5GBE R8125 driver

Post by PigLover »

pfgsnoopy wrote:
Sun Jul 19, 2020 2:33 am
Unfortunately, Windows is not an option. The only Windows license I have is runnig on my Surface Pro.
Windows license allows you to download windows 10 and install it on a machine for 30 days without activating it. In fact, it will not stop working after 30 days, you’ll just get nags and a couple of meaningless features wont work (e.g., you can’t change the wallpaper from a black screen). They allow this for exactly your use case - testing and validation.

When the install gets to the page asking for an activation key just click the “skip” button on the bottom corner of the screen.

You can download it here: https://www.microsoft.com/en-us/softwar ... ndows10ISO

pfgsnoopy
Posts: 9
Joined: Sat Jul 11, 2020 1:51 am
languages_spoken: english, German
ODROIDs: Odroid-H2+
Has thanked: 3 times
Been thanked: 0
Contact:

Re: ODROID-H2+ NETWORK LAN 2.5GBE R8125 driver

Post by pfgsnoopy »

SatDad wrote:
Sat Jul 18, 2020 10:35 pm
I'm not quite sure, fiddled around that much, but I think I created both nics again via "add new interface" even with the same names. At least I get that thing up and running. Maybe it is worth a try
Ps: I just checked another H2b, same behavior, as long as there is no cable connected, you cannot change anything on this port. And I don't think it's a hardware problem, I had the same strange behaviour only showing a sync with 10 or 100 mbps before and at least it is trying to sync
Unbelievable! You are right! Using Webmin to re-add the two onboard interfaces did the trick! I don't know why, but it did it!

Thanks!

Thanks to everybody who took the time to work with me on that issue!
Odroid-H2+; HyperX Impact DDR4 HX424S14IB2K2/16; WD Black SN750 NVMe SSD 250GB

Locked

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 0 guests