Commit Graph

6 Commits

Author SHA1 Message Date
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
Holger Hans Peter Freyther 2052514dc9 Speculative fix for PATH_MAX not known
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];
|              ^~~~~~~~
2017-06-13 12:52:35 +08:00
Holger Hans Peter Freyther 47e0b24d7a build: At least honor the LDFLAGS from the environment
When not honoring the environment we end up linking it without the
GNU_HASH for symbol look-up. Put the content into LIBS and place
these options last to make it link.

We still override the CFLAGS but that seems to not cause issues yet

Fixes:

ERROR: ... No GNU_HASH in the elf binary: 'rtl8168-eeprom' [ldflags]
2017-04-02 14:14:11 +02:00
Harald Welte e62e515ce3 add COPYING file to include full GPLv2 license text 2015-07-10 19:25:57 +02:00
Harald Welte cf7fe61d82 add GPLv2 license disclaimer 2015-07-10 19:25:33 +02:00
Harald Welte c3b046a817 initial checkin of project 2015-03-22 22:15:40 +01:00