tech-kern archive

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

Re: re(4) MAC address

> I found out that NetBSD's re(4) driver is reading the MAC from EEPROM
> while PPCBoot and Linux are reading it from the chip's ID-registers
> (RTK_IDRn).
> What is correct? This is a Realtek 8169S:

Probably it's defined by hardware vendors, not chip.

The old RTL8139 (RTL8169 has compat mode) seems to read MAC address
from EEPROM and those values are stored into RTK_IDRn registers.
I guess some NAS vendors overwrite RTK_IDn registers by firmware
to avoid extra EEPROM configurations during production.

We can change values per hardware by adding device properties
(prop_dictionary(3)) calls (like sys/dev/pci/if_wm.c etc).

Izumi Tsutsui

Home | Main Index | Thread Index | Old Index