On 2013/10/11 00:23, m...@m021.nl wrote:
> >Synopsis:    Realtek 8168 ethernet not working
> >Category:    bugs
> >Environment:
>       System      : OpenBSD 5.3
>       Details     : OpenBSD 5.3 (GENERIC.MP) #62: Tue Mar 12 18:21:20 MDT 2013
>                        
> dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> 
>       Architecture: OpenBSD.amd64
>       Machine     : amd64
> >Description:
>       OpenBSD does recognize the NIC as Realtek 8168 but the NIC will have
>       no valid mac-address and even if set, the NIC won't work.
> >How-To-Repeat:
>       Install OpenBSD on hardware with the RTL8186 chipset
> >Fix:
>       Realtek has new drivers available on there website
>       (http://www.realtek.com.tw) -- Perhaps someone with the
>       knowlage of how to compile and embed them into OpenBSD kernel
>       can create a fix for this problem.

you could maybe try this.. it's reduced/converted from a diff at
http://lists.freebsd.org/pipermail/freebsd-current/2013-September/044569.html

Index: re.c
===================================================================
RCS file: /cvs/src/sys/dev/ic/re.c,v
retrieving revision 1.144
diff -u -p -r1.144 re.c
--- re.c        5 Oct 2013 22:59:57 -0000       1.144
+++ re.c        11 Oct 2013 10:08:03 -0000
@@ -244,6 +244,7 @@ static const struct re_revision {
        { RL_HWREV_8168DP,      "RTL8168DP/8111DP" },
        { RL_HWREV_8168E,       "RTL8168E/8111E" },
        { RL_HWREV_8168E_VL,    "RTL8168E/8111E-VL" },
+       { RL_HWREV_8168G,       "RTL8168G/8111G" },
        { RL_HWREV_8169,        "RTL8169" },
        { RL_HWREV_8169_8110SB, "RTL8169/8110SB" },
        { RL_HWREV_8169_8110SBL, "RTL8169SBL" },
@@ -896,6 +897,7 @@ re_attach(struct rl_softc *sc, const cha
        case RL_HWREV_8169_8110SBL:
        case RL_HWREV_8169_8110SCd:
        case RL_HWREV_8169_8110SCe:
+       case RL_HWREV_8168G:
                sc->rl_flags |= RL_FLAG_PHYWAKE;
                /* FALLTHROUGH */
        case RL_HWREV_8169:
Index: rtl81x9reg.h
===================================================================
RCS file: /cvs/src/sys/dev/ic/rtl81x9reg.h,v
retrieving revision 1.76
diff -u -p -r1.76 rtl81x9reg.h
--- rtl81x9reg.h        17 Mar 2013 20:47:23 -0000      1.76
+++ rtl81x9reg.h        11 Oct 2013 10:08:03 -0000
@@ -188,6 +188,7 @@
 #define RL_HWREV_8402          0x44000000
 #define RL_HWREV_8168F         0x48000000
 #define RL_HWREV_8411          0x48800000
+#define RL_HWREV_8168G         0x4c000000
 #define RL_HWREV_8139          0x60000000
 #define RL_HWREV_8139A         0x70000000
 #define RL_HWREV_8139AG                0x70800000

Reply via email to