Trying to find out which Realtek drivers are being used?
-
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
-
@jshoe upper and lowercase is important in *nix:
Kldstat
is not valid butkldstat
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?
-
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
-
@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
-
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.
-
@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
-
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.
-
@stephenw10 no more random drops. Thanks!