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

    Trying to find out which Realtek drivers are being used?

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    8 Posts 3 Posters 574 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.
    • J
      jshoe
      last edited by

      I'm trying to find out which Realtek network drivers are being used prior to updating them. I read that kldstat tells you this, but I see this sh: Kldstat: not found.

      Any ideas? I'm not really familiar with the CLI on FreeBSD.

      Thanks

      patient0P 1 Reply Last reply Reply Quote 0
      • patient0P
        patient0 @jshoe
        last edited by

        @jshoe upper and lowercase is important in *nix: Kldstat is not valid but kldstat is:

        root: kldstat
        Id Refs Address                Size Name
         1   15 0xffffffff80200000  339ce08 kernel
         3    1 0xffffffff83b75000    1e2b0 opensolaris.ko
         4    1 0xffffffff84418000     2220 cpuctl.ko
         5    1 0xffffffff8441b000     3210 intpm.ko
         6    1 0xffffffff8441f000     2178 smbus.ko
         8    1 0xffffffff84451000     9288 aesni.ko
         9    1 0xffffffff84422000    2e560 if_wg.ko
        

        How and where do you execute the command?

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

          kldstat will only show you if you're running the alternative driver by loading a kernel module.

          If you are running that you will see the driver version reported when it loads in the boot log like:

          re0: <Realtek PCIe GbE Family Controller> port 0x1000-0x10ff mem 0xf7900000-0xf7900fff,0xf7800000-0xf7803fff irq 16 at device 0.0 on pci1
          re0: Using Memory Mapping!
          re0: Using 1 MSI-X message
          re0: ASPM disabled
          re0: version:1.99.04
          re0: Ethernet address: 00:0d:b9:37:30:10
          

          Otherwise you would be using the in-kernel driver which doesn't report a version.

          Steve

          J 1 Reply Last reply Reply Quote 0
          • J
            jshoe @stephenw10
            last edited by

            @stephenw10 is there anyway to tell the version or do I have to look up the kernel version and find it?

            All I want to do is get my box to stop randomly dropping out with high throughput.... I've seen a few ways to get alternate drivers. Do I need to edit the configuration file or is running install cmd enough?

            Thanks

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

              To run the alternate re driver install the kmod pkg:

              pkg install realtek-re-kmod
              

              Then add the required loader lines by running:

              echo 'if_re_load="YES"' >> /boot/loader.conf.local
              echo 'if_re_name="/boot/modules/if_re.ko"' >> /boot/loader.conf.local
              

              Then reboot and check the boot logs.

              J 1 Reply Last reply Reply Quote 0
              • J
                jshoe @stephenw10
                last edited by

                @stephenw10 Great, thanks. Is there a way to run this from the web based command prompt? I try running it but I'm unable to input Y for yes. Thanks

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

                  Yup, use: pkg install -y realtek-re-kmod

                  Though, if you can, I would always use the real command line so you can see any errors produced.

                  J 1 Reply Last reply Reply Quote 0
                  • J
                    jshoe @stephenw10
                    last edited by

                    @stephenw10 no more random drops. Thanks!

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