Port-sandpoint archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Fix MAC address for Realtek 8110S based NAS


On Christmas I fixed altboot(8) to read the correct MAC address from
the flash ROM of a QNAP V200 board (tested with TS-100 and TS-101):


All re(4) based sandpoint NAS lack the EEPROM to store the MAC address.
For QNAP V200 it is stored in an ext2 file system (ETH0.MAC_ADDR) of
the Flash ROM. For NH230/231 based NAS we can rely on UBoot to configure
the chip's IDR register correctly.

Unfortunately in all cases you also have to patch sys/dev/ic/rtl8169.c,
because re(4) always wants to read the MAC address from the EEPROM,
which is wrong (IMHO)!

The following simple patch fixes that (not committed, because I have
to discuss that with the author first):

--- rtl8169.c.orig      2012-12-25 10:38:01.000000000 +0100
+++ rtl8169.c   2012-12-25 10:38:31.000000000 +0100
@@ -643,7 +643,7 @@
        /* Reset the adapter. */
-       if ((sc->sc_quirk & RTKQ_NOEECMD) != 0) {
+       if (1 /*(sc->sc_quirk & RTKQ_NOEECMD) != 0*/) {
                 * Get station address from ID registers.

Frank Wille

Home | Main Index | Thread Index | Old Index