david/ipxe
Archived
1
0
This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
ipxe/src/drivers
Michael Brown d90fc3156c [realtek] Use ID word to detect EEPROM presence
Some onboard RTL8169 NICs seem to leave the EEPROM pins disconnected.
The existing is_valid_ether_addr() test will not necessarily catch
this, since it expects a missing EEPROM to show up as a MAC address of
00:00:00:00:00:00 or ff:ff:ff:ff:ff:ff.  When the EEPROM pins are
floating the MAC address may read as e.g. 00:00:00:00:0f:00, which
will not be detected as invalid.

Check the ID word in the first two bytes of the EEPROM (which should
have the value 0x8129 for all RTL8139 and RTL8169 chips), and use this
to determine whether or not an EEPROM is present.

Reported-by: Carl Karsten <carl@nextdayvideo.com>
Tested-by: Carl Karsten <carl@nextdayvideo.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2013-04-28 18:59:09 +01:00
..
bitbash [bitbash] Add optional open() and close() methods for bit-bashing interfaces 2012-08-24 17:26:10 +01:00
block [libc] Use __einfo() tuple as first argument to EUNIQ() 2013-04-19 00:45:13 +01:00
bus [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
infiniband [hermon] Use PCI VPD for non-volatile option storage 2012-10-25 08:24:00 -07:00
linux [device] Make driver name a generic device property 2011-04-07 23:09:19 +01:00
net [realtek] Use ID word to detect EEPROM presence 2013-04-28 18:59:09 +01:00
nvs [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00