Tool to set MAC address in EEPROM of RTL8168/8111E devices
Go to file
Daniel Willmann 70df7678f8 Wait a little longer for the erase to complete
Sometimes the erase operation would timeout, but the new MAC address was
still written:

$ /usr/sbin/rtl8168-eeprom -s 2:0 -m 00:0d:b9:4f:0f:7d
failed: 1

initializing pci access
building filter
starting bus iteration
found matching device (02:00.0), base_addr=0xf7c00000 (len=0)
Existing/Old MAC address: 00:0d:b9:4f:0f:7d
Saving EEPROM backup to 000DB94F0F7D.backup
Writing new MAC address 00:0d:b9:4f:0f:7d...
timeout during ERASE
Error during EEPROM WRITE, MAC address is corrupt!
2019-09-24 09:42:27 +02:00
COPYING add COPYING file to include full GPLv2 license text 2015-07-10 19:25:57 +02:00
Makefile build: At least honor the LDFLAGS from the environment 2017-04-02 14:14:11 +02:00
README initial checkin of project 2015-03-22 22:15:40 +01:00
rtl8168-eeprom.c Wait a little longer for the erase to complete 2019-09-24 09:42:27 +02:00

README

rtl8168-mac-eeprom utility

Usage:

	./rtl8168_mac_eeprom
will generate an EEPROM backup file for all supported cards

	./rtl8168_mac_eeprom -s 1:0
will generate an EEPROM backup file for PCI slot 1:0

	./rtl8168_mac_eeprom -s 1:0 -m 01:02:03:04:05:06
will set the new mac address 01:02:03:04:05:06 to PCI slot 1:0