RealTek 8168/8111 not working

Status
Not open for further replies.

crom

Cadet
Joined
Oct 31, 2013
Messages
9
Hi, I'm trying to setup Freenas 9.1 on the KBN-i 5200 board and the ethernet chip is not working. This is the relevant output from dmesg:

Code:
re0: <RealTek 8168/8111 B/C/CP/D/DP/E/F PCIe Gigabit Ethernet> port 0xd000-0xd0ff mem 0xfe900000-0xfe900fff,0xd0800000-0xd0803fff irq 32 at device 0.0 on pci2
re0: Using 1 MSI-X message
re0: ASPM disabled
re0: Chip rev. 0x4c000000
re0: MAC rev. 0x00000000
re0: Unknown H/W revision: 0x4c000000
device_attach: re0 attach returned 6
re0: <RealTek 8168/8111 B/C/CP/D/DP/E/F PCIe Gigabit Ethernet> port 0xd000-0xd0ff mem 0xfe900000-0xfe900fff,0xd0800000-0xd0803fff irq 32 at device 0.0 on pci2
re0: Using 1 MSI-X message
re0: Chip rev. 0x4c000000
re0: MAC rev. 0x00000000
re0: Unknown H/W revision: 0x4c000000
device_attach: re0 attach returned 6


ifconfig shows only lo0 and ipfw0 as interfaces. Is there any way to get the chip to work?


Edit: The specs say that it is a "RTL8111E Gigabit Fast Ethernet Controller".
 

crom

Cadet
Joined
Oct 31, 2013
Messages
9
That's not so good. :( There is only one PCIE slot and it is used by a SATA controller. But there is a vendor driver for Frebsd 8 I think. So if I use the latest version of FreeNAS 8, could I install the official driver and have have encrypted volumes?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Now you see why I constantly tell people to not go with mini-itx. One thing goes wrong that you can't fix and suddenly your hardware has no purpose.
 

crom

Cadet
Joined
Oct 31, 2013
Messages
9
Trying to integrate the realtek code into 9.1, maybe it works. At least there is an (expensive) fallback: http://www.ebay.com/itm/160985847942 :rolleyes:
Or maybe I find another, less expensive card of this type with a well supported chipset.

Edit: Any experiences with the JMC250B chipset?

Edit2: Just found this patch, it's currently rebuilding.
Code:
Index: sys/dev/re/if_re.c
===================================================================
--- sys/dev/re/if_re.c    (revision 255582)
+++ sys/dev/re/if_re.c    (working copy)
@@ -234,6 +234,10 @@
    { RL_HWREV_8168E_VL, RL_8169, "8168E/8111E-VL", RL_JUMBO_MTU_6K},
    { RL_HWREV_8168F, RL_8169, "8168F/8111F", RL_JUMBO_MTU_9K},
    { RL_HWREV_8411, RL_8169, "8411", RL_JUMBO_MTU_9K},
+    { RL_HWREV_8168G_0, RL_8169, "8168G/8111G", RL_JUMBO_MTU_9K},
+    { RL_HWREV_8168G_1, RL_8169, "8168G/8111G", RL_JUMBO_MTU_9K},
+    { RL_HWREV_8168G_2, RL_8169, "8168G/8111G", RL_JUMBO_MTU_9K},
+    { RL_HWREV_8168G_4, RL_8169, "8411", RL_JUMBO_MTU_9K},
    { 0, 0, NULL, 0 }
};
 
@@ -1457,6 +1461,10 @@
    case RL_HWREV_8168E_VL:
    case RL_HWREV_8168F:
    case RL_HWREV_8411:
+    case RL_HWREV_8168G_0:
+    case RL_HWREV_8168G_1:
+    case RL_HWREV_8168G_2:
+    case RL_HWREV_8168G_4:
        sc->rl_flags |= RL_FLAG_PHYWAKE | RL_FLAG_PAR |
            RL_FLAG_DESCV2 | RL_FLAG_MACSTAT | RL_FLAG_CMDSTOP |
            RL_FLAG_AUTOPAD | RL_FLAG_JUMBOV2 |
Index: sys/pci/if_rlreg.h
===================================================================
--- sys/pci/if_rlreg.h    (revision 255582)
+++ sys/pci/if_rlreg.h    (working copy)
@@ -191,6 +191,10 @@
#define    RL_HWREV_8402        0x44000000
#define    RL_HWREV_8168F        0x48000000
#define    RL_HWREV_8411        0x48800000
+#define    RL_HWREV_8168G_0    0x4c000000
+#define    RL_HWREV_8168G_1    0x4c100000
+#define    RL_HWREV_8168G_2    0x50900000
+#define    RL_HWREV_8168G_4    0x5c800000
#define    RL_HWREV_8139        0x60000000
#define    RL_HWREV_8139A        0x70000000
#define    RL_HWREV_8139AG        0x70800000
 

DJ9

Contributor
Joined
Sep 20, 2013
Messages
183
If you get it going let us know crom. Might help someone else in the future.
 

crom

Cadet
Joined
Oct 31, 2013
Messages
9
Tried to apply the patch to ./FreeBSD/src/sys/dev/re/if_re.c, did a build/do_build.sh -Jaff that succeeded but it still gives the same error on boot. Is this the right place or does the patch apply to nanobsd, trueos or somewhere else?
 

DJ9

Contributor
Joined
Sep 20, 2013
Messages
183
I wouldn't have a clue quite honestly. I haven't had to compile or apply patches in along time.
 
Status
Not open for further replies.
Top