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!
The latest poky master build is failing with the error below. Let's
include limits.h and see if this is already fixing it.
| rtl8168-eeprom.c: In function 'eeprom_backup':
| rtl8168-eeprom.c:406:13: error: 'PATH_MAX' undeclared (first use in this function)
| char fname[PATH_MAX];
| ^~~~~~~~