Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Official Realtek Driver Binary 1.95 For 2.4.4 Release

    Scheduled Pinned Locked Moved Hardware
    194 Posts 52 Posters 124.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      lovingHDTV
      last edited by

      How do I update my Pfsense box with this driver?

      Do I just copy it to /boot/kernel?

      thanks
      david

      B 1 Reply Last reply Reply Quote 0
      • B
        breakaway @lovingHDTV
        last edited by breakaway

        @lovinghdtv

        Unzip & Place "if_re.ko" file at "/boot/kernel"

        Change ownership and permissions on the if_re.ko file

        chown root:wheel if_re.ko
        chmod 0555 if_re.ko

        Then edit "/boot/loader.conf” to add this line:

        if_re_load=“YES”

        Reboot.

        Then go to diagnostics > command prompt in the WebGUI

        Run the command

        kldstat

        If you did everything properly you’ll see “if_re.ko” in the list that comes up. If not, the driver isn’t loaded.

        L N P 3 Replies Last reply Reply Quote 1
        • L
          lovingHDTV @breakaway
          last edited by

          @breakaway said in Official Realtek Driver Binary 1.95 For 2.4.4 Release:

          @lovinghdtv

          Unzip & Place "if_re.ko" file at "/boot/kernel"

          Change ownership and permissions on the if_re.ko file

          chown root:wheel if_re.ko
          chmod 0555 if_re.ko

          Then edit "/boot/loader.conf” to add this line:

          if_re_load=“YES"

          Reboot.

          Then go to diagnostics > command prompt in the WebGUI

          Run the command

          kldstat

          If you did everything properly you’ll see “if_re.ko” in the list that comes up. If not, the driver isn’t loaded.

          Thanks that worked like a charm.

          Now hopefully it fixed my issue.

          david

          1 Reply Last reply Reply Quote 0
          • DerelictD
            Derelict LAYER 8 Netgate
            last edited by

            I would put it in /boot/loader.conf.local

            Chattanooga, Tennessee, USA
            A comprehensive network diagram is worth 10,000 words and 15 conference calls.
            DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
            Do Not Chat For Help! NO_WAN_EGRESS(TM)

            1 Reply Last reply Reply Quote 2
            • N
              Napsterbater @breakaway
              last edited by

              @breakaway said in Official Realtek Driver Binary 1.95 For 2.4.4 Release:

              @lovinghdtv

              Unzip & Place "if_re.ko" file at "/boot/kernel"

              Change ownership and permissions on the if_re.ko file

              chown root:wheel if_re.ko
              chmod 0555 if_re.ko

              Then edit "/boot/loader.conf” to add this line:

              if_re_load=“YES"

              Reboot.

              Then go to diagnostics > command prompt in the WebGUI

              Run the command

              kldstat

              If you did everything properly you’ll see “if_re.ko” in the list that comes up. If not, the driver isn’t loaded.

              Tip for anyone having a issue, If you copied and pasted the if_re_load=“YES" line fix the first “ and make it " yes there is a difference. /facedesk

              Works like a charm, once I found that =P

              Thanks for the updated driver and taking the time to compile, I have a ZOTAC ZBOX CI323 Nano with dual Realtek and a 2nd Generic system with a single Realtek (router on a Stick).

              1 Reply Last reply Reply Quote 3
              • B
                breakaway
                last edited by breakaway

                Odd - looks like the double quotes are messed up. You can thank my Phone for that! I’ll update it.

                Always use kldstat to verify if the driver if_re.ko is loaded!

                Shell Output - cat /boot/loader.conf

                kern.cam.boot_delay=10000
                kern.ipc.nmbclusters="1000000"
                kern.ipc.nmbjumbop="524288"
                kern.ipc.nmbjumbo9="524288"
                kern.geom.label.disk_ident.enable="0"
                kern.geom.label.gptid.enable="0"
                zfs_load="YES"
                if_re_load=“YES”
                autoboot_delay="3"
                hw.usb.no_pf="1”

                Shell Output - kldstat

                Id Refs Address Size Name
                1 20 0xffffffff80200000 2d9a7d0 kernel
                2 1 0xffffffff82f9c000 381f00 zfs.ko
                3 2 0xffffffff8331e000 a3a0 opensolaris.ko
                4 1 0xffffffff83329000 7d2c0 if_re.ko
                5 1 0xffffffff83911000 10a0 cpuctl.ko
                6 1 0xffffffff83913000 2ec0 cryptodev.ko
                7 1 0xffffffff83916000 c80 coretemp.ko

                N 1 Reply Last reply Reply Quote 1
                • N
                  Napsterbater @breakaway
                  last edited by

                  @breakaway upper case is fine, it is the left/backwards/upside down quotation mark that if copy pasted makes the loader throw a syntax error and not load the driver.

                  1 Reply Last reply Reply Quote 0
                  • P
                    penetal
                    last edited by

                    Could you post a guide on how to compile the driver? Would be nice to know what is needed from pfsense sources etc and if any configs is needed.

                    L 1 Reply Last reply Reply Quote 0
                    • L
                      Love.IT.Again @penetal
                      last edited by

                      @penetal

                      Here's a link of the guide. The files are a little bit old so use the newer version (Realtek driver v1.95 and FreeBSD 11.2), but the process is still the same.

                      https://gist.github.com/jovimon/524e116471f249626fd2ccd141f3fe05

                      P 1 Reply Last reply Reply Quote 1
                      • B
                        breakaway
                        last edited by

                        Also, is there any way to “slipstream” the driver and the modification to the loader.conf so that it will automatically include this driver when installing from media?

                        1 Reply Last reply Reply Quote 0
                        • C
                          coreybrett
                          last edited by

                          would it be possible to put driver into a pfS package?

                          1 Reply Last reply Reply Quote 0
                          • P
                            penetal @Love.IT.Again
                            last edited by

                            @love-it-again thanks a ton

                            1 Reply Last reply Reply Quote 0
                            • stephenw10S
                              stephenw10 Netgate Administrator
                              last edited by

                              It's very unlikely this could ever be added as an official package. Is it even using a license that would allow it?

                              The correct way to resolve this would be to fix the upstream FreeBSD driver. I've never looked to see what the differences are there.

                              Steve

                              1 Reply Last reply Reply Quote 0
                              • BiloxiGeekB
                                BiloxiGeek
                                last edited by

                                Just got finished putting this driver on my Odroid H2. This SBC has been nice but the NIC's seem to drop connection about a once a day.

                                Is there something I can do to track the state of the NIC's and the drivers to see what's happening when they lock up? I'd be willing to revert to the stock drivers just to find out why a daily reboot has been necessary.

                                1 Reply Last reply Reply Quote 0
                                • stephenw10S
                                  stephenw10 Netgate Administrator
                                  last edited by

                                  Not easily. You'd probably need to add debug messages to the driver for example. Maybe recompile it.

                                  Are you (were you) seeing the watchdog timeouts?

                                  Steve

                                  BiloxiGeekB 1 Reply Last reply Reply Quote 0
                                  • BiloxiGeekB
                                    BiloxiGeek @stephenw10
                                    last edited by

                                    @stephenw10 I hadn't been seeing the watchdog timeouts but I hadn't been looking for them either. What's the best way to look for them?

                                    1 Reply Last reply Reply Quote 0
                                    • stephenw10S
                                      stephenw10 Netgate Administrator
                                      last edited by

                                      They would be in the system log if you are hitting that issue.

                                      Steve

                                      1 Reply Last reply Reply Quote 0
                                      • T
                                        TheNarc
                                        last edited by

                                        Also, at least in my experience using the driver built in to FreeBSD, the watchdog timeout is pretty easy to provoke by running iperf tests against the LAN interface. I see that the Odroid H2 has dual RTL8111Gs whereas I, and I believe most others using the official Realtek driver, have been running Zotac machines that I believe have RTL8111Es. Both of those use the same driver, but I think it's fair to say that the RTL8111G is less "battle tested" with this driver. Have you also confirmed that the driver is indeed being loaded and used by looking for it in the output of ldstat?

                                        1 Reply Last reply Reply Quote 0
                                        • F
                                          fkoczan
                                          last edited by

                                          I have made FreeBSD 12 package.
                                          https://drive.google.com/file/d/1Ch4Z_w7gpbrpavQ4KhPUXUzYhRyzqnye/view?usp=sharing
                                          I dont consider it my work - I have just packed it in one archive. It is stable for me on 12.0 p3 more than
                                          "sed -i -e 's/TAILQ_FOREACH/CK_STAILQ_FOREACH/g' if_re.c"

                                          1 Reply Last reply Reply Quote 0
                                          • C
                                            coreybrett
                                            last edited by

                                            Will pfSense 2.5.0 / FreeBSD 12.0-RELEASE-p3 improve the built-in Realtek drivers situation at all?

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.