FreeNAS support on the Odroid H2+ with RTL8125B drivers

Post Reply
tobi
Posts: 12
Joined: Fri Jun 26, 2020 9:26 pm
languages_spoken: english
Has thanked: 2 times
Been thanked: 13 times
Contact:

FreeNAS support on the Odroid H2+ with RTL8125B drivers

Post by tobi »

It took me a while to get the RTL8125B drivers up and running on my Odroid H2+ so I thought I should share the information about how to get the drivers installed.

The drivers are available for download directly from Realtek as source code (https://www.realtek.com/en/component/zo ... s-software). I compiled these on a virtual machine and copied the binaries to the FreeNAS on my Odroid H2+.

You can download the binary here: https://www.embedded-ideas.de/files/if_ ... SD_11_3.ko

The binaries can be installed as follows:

1. Copy the file to /boot/kernel/ and rename it to if_re.ko
2. Change the owner and file attributes
chown root:wheel if_re.ko
chmod 0555 if_re.ko
3. Add the following line to the /boot/loader.conf
if_re_load="YES"

If you need more information about the process or if you want to compile it yourself, I also wrote a blog post which describes the details

https://www.embedded-ideas.de/2020/08/0 ... tallation/

Hope this is useful for someone.

Best
Tobi
Last edited by tobi on Mon Aug 17, 2020 1:12 am, edited 1 time in total.
These users thanked the author tobi for the post (total 3):
brad (Sat Aug 08, 2020 11:06 pm) • odroid (Mon Aug 10, 2020 10:44 am) • retro_1979 (Fri Aug 21, 2020 5:28 pm)

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

Re: FreeNAS support on the Odroid H2+ with RTL8125B drivers

Post by retro_1979 »

Hi there, looks like the exact fix to the issue I've been facing. Will give it a go later tonight but thanks for posting.

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

Re: FreeNAS support on the Odroid H2+ with RTL8125B drivers

Post by retro_1979 »

Hi, just tried it and can't get it to work

- Think I've transferred the .ko file correctly as I can see it in /boot/kernel - unless there already is one in there called that?

- I've followed the instructions to change owner and file attributes - but not sure if these have been implemented. Assume you do this whilst still in /boot/kernel? And press enter after each line? I dont see any confirmatory message to say it's been changed.

- I've amended the .conf file and inserted if_re_load="YES" under the "#Load some hardware modules that don't fit into kernel" area. Its definitely saved as its there when I go back in. I noticed in your post above the command was if_re load="YES" but in your blog post it has an underscore --> if_re_load="YES" (tried both!).

- After rebooting, When I run the kldstat command, if_re.ko is not running and suffice to say there's no network.

I have a USB ethernet adaptor so I am able to access the network / FreeNAS UI if that potentially makes it easier?

Any help would be greatly appreciated.

tobi
Posts: 12
Joined: Fri Jun 26, 2020 9:26 pm
languages_spoken: english
Has thanked: 2 times
Been thanked: 13 times
Contact:

Re: FreeNAS support on the Odroid H2+ with RTL8125B drivers

Post by tobi »

Hi retro_1979, if_re_load="YES" is the right syntax. Are you using FreeNAS 11.3? What is the output of the following commands on your system:

- freebsd-version
- ls -la /boot/kernel | grep if_re
- kldstat | grep if_re
- cat /boot/loader.conf | grep if_re
These users thanked the author tobi for the post:
retro_1979 (Fri Aug 21, 2020 5:28 pm)

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

Re: FreeNAS support on the Odroid H2+ with RTL8125B drivers

Post by retro_1979 »

Hi Tobi, thanks for getting back to me! Yes, I'm using FreeNAS 11.3.

Here's the outputs when I enter those command.

1) 11.3-RELEASE-p11
2) -r-xr-xr-x 1 root wheel 852288 Aug 15 19:50 if_re.ko
3) Nothing except gives usage commands for kldstat
4) if_re_load="YES"

Thanks!

tobi
Posts: 12
Joined: Fri Jun 26, 2020 9:26 pm
languages_spoken: english
Has thanked: 2 times
Been thanked: 13 times
Contact:

Re: FreeNAS support on the Odroid H2+ with RTL8125B drivers

Post by tobi »

Looks good. I double checked on my system and got the same results as you. Did you tried to load the module manually?

kldload /boot/kernel/if_re.ko
These users thanked the author tobi for the post:
retro_1979 (Fri Aug 21, 2020 5:28 pm)

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

Re: FreeNAS support on the Odroid H2+ with RTL8125B drivers

Post by retro_1979 »

That worked! Can see the interfaces now and just checked on reboot and they are still there.

I noticed there was an update to FreeNAS so I ran that. Then the kldload command got it working. Went into the .conf file and edited it again (seemed to have wiped the previous changes...?).

Thanks so much - really appreciate your help!!!

tobi
Posts: 12
Joined: Fri Jun 26, 2020 9:26 pm
languages_spoken: english
Has thanked: 2 times
Been thanked: 13 times
Contact:

Re: FreeNAS support on the Odroid H2+ with RTL8125B drivers

Post by tobi »

Good news! Thanks for sharing :-)

JoeHuang
Posts: 3
Joined: Sat Aug 22, 2020 1:37 pm
languages_spoken: english
Has thanked: 0
Been thanked: 2 times
Contact:

Re: FreeNAS support on the Odroid H2+ with RTL8125B drivers

Post by JoeHuang »

I made a FreeBSD 12.1 driver, it should work in FreeNAS 12.0.
Please find driver file in the attachment.
Enjoy.
Attachments
if_re.ko.zip
(155.42 KiB) Downloaded 174 times
These users thanked the author JoeHuang for the post:
odroid (Mon Aug 24, 2020 9:26 am)

sjonkeesse
Posts: 1
Joined: Thu Jul 15, 2021 12:53 am
languages_spoken: english
ODROIDs: H2+
Has thanked: 0
Been thanked: 0
Contact:

Re: FreeNAS support on the Odroid H2+ with RTL8125B drivers

Post by sjonkeesse »

Thanks a lot! Without this information I would have switched to another hardware platform.

Post Reply

Return to “Other OS”

Who is online

Users browsing this forum: No registered users and 1 guest