Tool to set MAC address in EEPROM of RTL8168/8111E devices
Go to file
Oliver Smith 1bf48da7a8 Fix missing pci_fill_info()
Before reading vendor_id or device_id from struct pci_dev, one must call
pci_fill_info() first. It looks like this had worked with previous
libpci versions, but with libpci 3.7.0 on debian 11 this patch is needed
or else the tool stops at 'starting bus iteration' without finding the
device.

Fixes: SYS#5956
2022-05-16 10:42:08 +02:00
debian debian: add dir for packaging 2022-05-10 14:56:56 +02:00
.gitignore gitignore: new file 2022-05-10 14:57:00 +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 Fix missing pci_fill_info() 2022-05-16 10:42:08 +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