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

    Official Realtek Driver v1.95 Binary

    Scheduled Pinned Locked Moved Hardware
    22 Posts 8 Posters 8.0k Views 10 Watching
    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.
    • T Offline
      TheNarc @stephenw10
      last edited by TheNarc

      @stephenw10 I knew I'd forget some critical detail . . . yes that's 64-bit. If I get a chance I'll grab a 32-bit 11.1 10.3 VM and compile under it against the 2.3.5 sources as well.

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

        @stephenw10 I've made what I consider to be a valiant effort to compile a 32-bit version of this module, but with no luck so far. I started by cloning the RELENG_2_3 label of FreeBSD-src (https://github.com/pfsense/FreeBSD-src.git) and can build the 64-bit module. But when I try to build 32-bit, I receive a bunch of errors:
        0_1533658757403_clang_errors.png

        I've also tried to build using gcc (FreeBSD Ports version 6.4.0) instead of clang and receive the error:
        0_1533658676419_gcc_error.png

        Now, I was attempting to cross-compile from a FreeBSD 11.1 64-bit environment, which I thought should be possible, but maybe not. I'll still try to grab a 10.3 32-bit VM soon and see whether it's happier then . . .

        1 Reply Last reply Reply Quote 1
        • T Offline
          TheNarc @stephenw10
          last edited by

          @stephenw10 Got it; a 32-bit 10.3 VM worked. So the following was built against the RELENG_2_3 branch of https://github.com/pfsense/FreeBSD-src.git:

          32-bit Realtek v1.95 Driver: if_re__ko_v195_32bit.zip

          Please note that I do not have a 32-bit pfSense 2.3.5 system with which to test, so this module has not been tested by me.

          1 Reply Last reply Reply Quote 2
          • W Offline
            wogman @TheNarc
            last edited by

            @thenarc Working fine in my CI323, thanks for compiling this for us. 😀

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

              @wogman Glad to hear it! And no problem. I'll try to get one out ASAP once 2.4.4 is released also. In theory I believe I could do it in advance now by compiling against the official FreeBSD 11.2 kernel source, but I figure it's best to wait and compile against the pfSense 2.4.4 kernel source once it's finalized.

              1 Reply Last reply Reply Quote 0
              • C Offline
                coreyinoz
                last edited by

                Thanks OP! I periodically check to see if Realtek has made any updates and was super pleased to see a binary already built.

                CI 325 Nano user here. Did the update this morning, and all appears to be working well. Ran a handful of speedtests trying to stress things out a bit, so far so good. Will report back later if anything changes.

                1 Reply Last reply Reply Quote 0
                • gregeehG Offline
                  gregeeh
                  last edited by

                  I have tried to compile the Realtek Driver version 1.95 following these instructions:

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

                  just changing the commands from 1.94 to those of 1.95.

                  However the size of my if_re_ko is slightly different to yours at 524584 bytes.

                  I did get the following messages after the make command, so I may have an issue:

                  https://vgy.me/Rp2XxO.jpg

                  Any help appreciated.

                  TIA

                  Greg

                  PfSense running on Qotom mini PC
                  CPU N3150, 2 GB memory, 32 GB SSD & 2 Realtek Gb Ethernet ports.
                  UniFi AC-Lite access point

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

                    It's certainly possible that you might not get a bitwise identical binary if the compiler version and/or kernel sources were at all different. But that doesn't mean it's invalid either. Is there a reason you don't want to use the compiled 1.95 binaries already available? I'll be building one for 2.4.4 as well; I've just been holding off for the official release.

                    gregeehG 1 Reply Last reply Reply Quote 0
                    • gregeehG Offline
                      gregeeh @TheNarc
                      last edited by gregeeh

                      @thenarc said in Official Realtek Driver v1.95 Binary:

                      Is there a reason you don't want to use the compiled 1.95 binaries already available?

                      No not really, I just thought I would try and do it myself, I suppose just as practice/learning experience. Silly when you think about it I suppose.

                      What I do not understand is must the drivers be re-compiled for each version of pfSense or FreeBSD, or is it just best practice? Presently I have 1.94 drivers installed on the current stable release of pfSense (2.4.3-RELEASE-p1), so do they stop working, or cause issues, once I upgrade?

                      Thanks for taking the time to reply.

                      Greg

                      Edit: I'm assuming the messages after the make command were normal?

                      PfSense running on Qotom mini PC
                      CPU N3150, 2 GB memory, 32 GB SSD & 2 Realtek Gb Ethernet ports.
                      UniFi AC-Lite access point

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

                        Nothing wrong with wanting to do it yourself. And I don't think that warning is anything to worry about. It was output before the compilation (the line beginning with "cc") even began. I believe that technically a re-compilation should only be necessary on major release changes of FreeBSD, which going from pfSense 2.4.3 to 2.4.4 will be (it's going from 10 to 11). So a re-compilation will be necessary for 2.4.4.

                        GrimsonG gregeehG 2 Replies Last reply Reply Quote 0
                        • GrimsonG Offline
                          Grimson Banned @TheNarc
                          last edited by

                          @thenarc said in Official Realtek Driver v1.95 Binary:

                          I believe that technically a re-compilation should only be necessary on major release changes of FreeBSD, which going from pfSense 2.4.3 to 2.4.4 will be (it's going from 10 to 11).

                          No it's going from 11.1 to 11.2.

                          gregeehG 1 Reply Last reply Reply Quote 0
                          • gregeehG Offline
                            gregeeh @TheNarc
                            last edited by

                            @thenarc said in Official Realtek Driver v1.95 Binary:

                            I believe that technically a re-compilation should only be necessary on major release changes of FreeBSD, which going from pfSense 2.4.3 to 2.4.4 will be (it's going from 10 to 11). So a re-compilation will be necessary for 2.4.4.

                            So which comes first, upgrade from 2.4.3 to 2.4.4 and then re-compile and install. Or, re-compile and install and then upgrade from 2.4.3 to 2.4.4. Or does it not matter.

                            Sorry for all the dumb questions, just trying to understand.

                            PfSense running on Qotom mini PC
                            CPU N3150, 2 GB memory, 32 GB SSD & 2 Realtek Gb Ethernet ports.
                            UniFi AC-Lite access point

                            1 Reply Last reply Reply Quote 0
                            • gregeehG Offline
                              gregeeh @Grimson
                              last edited by

                              @grimson said in Official Realtek Driver v1.95 Binary:

                              @thenarc said in Official Realtek Driver v1.95 Binary:

                              I believe that technically a re-compilation should only be necessary on major release changes of FreeBSD, which going from pfSense 2.4.3 to 2.4.4 will be (it's going from 10 to 11).

                              No it's going from 11.1 to 11.2.

                              It's going from 11.1-RELEASE-p10 to 11.2-RELEASE-p11.

                              PfSense running on Qotom mini PC
                              CPU N3150, 2 GB memory, 32 GB SSD & 2 Realtek Gb Ethernet ports.
                              UniFi AC-Lite access point

                              T GrimsonG 2 Replies Last reply Reply Quote 0
                              • T Offline
                                TheNarc
                                last edited by

                                No problem. It shouldn't really matter, it's just that if you have the driver compiled for 2.4.4 and are running 2.4.3, it will fail to load and will use the built-in driver. Likewise, if you have the driver compiled for 2.4.3 and are running 2.4.4, it will also fail and use the built-in driver. But no catastrophic failure will occur.

                                gregeehG 1 Reply Last reply Reply Quote 0
                                • T Offline
                                  TheNarc @gregeeh
                                  last edited by

                                  @gregeeh Thanks @Grimson, I should have checked. So in that case, possibly the driver will still work in 2.4.4. I think it's probably still best practice to re-compile, and I plan to. But I'm not familiar enough with FreeBSD development to be sure.

                                  1 Reply Last reply Reply Quote 0
                                  • gregeehG Offline
                                    gregeeh @TheNarc
                                    last edited by

                                    @thenarc said in Official Realtek Driver v1.95 Binary:

                                    No problem. It shouldn't really matter, it's just that if you have the driver compiled for 2.4.4 and are running 2.4.3, it will fail to load and will use the built-in driver. Likewise, if you have the driver compiled for 2.4.3 and are running 2.4.4, it will also fail and use the built-in driver. But no catastrophic failure will occur.

                                    Great, thanks for clearing that up.

                                    PfSense running on Qotom mini PC
                                    CPU N3150, 2 GB memory, 32 GB SSD & 2 Realtek Gb Ethernet ports.
                                    UniFi AC-Lite access point

                                    1 Reply Last reply Reply Quote 0
                                    • GrimsonG Offline
                                      Grimson Banned @gregeeh
                                      last edited by

                                      @gregeeh said in Official Realtek Driver v1.95 Binary:

                                      It's going from 11.1-RELEASE-p10 to 11.2-RELEASE-p11.

                                      Nope. 11.2 is at p3 currently, p11 doesn't even exist yet for 11.2.

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

                                        Hi TheNarc - Did you manage to compile v1.95 driver for pfSense 2.4.4 yet?

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

                                          See: https://forum.netgate.com/topic/135850/official-realtek-driver-binary-1-95-for-2-4-4-release

                                          Steve

                                          1 Reply Last reply Reply Quote 1
                                          • F Offline
                                            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
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.