OPNsense Forum

English Forums => Hardware and Performance => Topic started by: TheZeke on February 01, 2018, 06:30:50 pm

Title: Not able to use DGE-530T Gigabit Ethernet Adapter (rev.C1) [Realtek RTL8169]
Post by: TheZeke on February 01, 2018, 06:30:50 pm
Hello,

This PC is AMD64 with one on-board NIC (bfe0) and two PCI cards (identical cards).  They are both DGE-530T Gigabit Ethernet Adapter (rev.C1) [Realtek RTL8169] (single port GigE).

So from a brand new install with no additional packages added or anything (virgin) what steps should I take to get these two NIC's operational?

Applicable DMESG output:
root@OPNsense:/usr/src # dmesg | grep 'network' | grep 'no driver attached'
pci4: <network, ethernet> at device 8.0 (no driver attached)
pci4: <network, ethernet> at device 9.0 (no driver attached)


PCICONF output:
root@OPNsense:/usr/src # pciconf -lv | tail -10
none11@pci0:4:8:0:   class=0x020000 card=0x43021186 chip=0x43021186 rev=0x10 hdr=0x00
    vendor     = 'D-Link System Inc'
    device     = 'DGE-530T Gigabit Ethernet Adapter (rev.C1) [Realtek RTL8169]'
    class      = network
    subclass   = ethernet
none12@pci0:4:9:0:   class=0x020000 card=0x43021186 chip=0x43021186 rev=0x10 hdr=0x00
    vendor     = 'D-Link System Inc'
    device     = 'DGE-530T Gigabit Ethernet Adapter (rev.C1) [Realtek RTL8169]'
    class      = network
    subclass   = ethernet


OPNsense 18.1_1
root@OPNsense:/usr/src # uname -a
FreeBSD OPNsense.localdomain 11.1-RELEASE-p6 FreeBSD 11.1-RELEASE-p6  6621d681e(stable/18.1)  amd64


I previously tried with OPNsense 17 to install the tools package from GitHub and do 'make buildworld' and 'make buildkernel' so I could then build the kernel module to override the if_re module provided by the FreeBSD kernel.  I had trouble with the buildworld (first step) so I scrapped things and installed OPNsense 18 and I'm starting new now.

After reading a bit though I've discovered that DGE-530T actually uses the sk(4) module.  I've tried creating a /boot/loader.conf.local with if_sk_load="YES" and rebooting but that didn't do anything different. 

So is it re(4) or sk(4)?  How do I get one of those to load for these NICs?