2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-11-22 09:31:51 +00:00
xNBA/src
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
..
arch [efi] Perform meaningful error code conversions 2013-04-19 13:34:19 +01:00
bin
config [efi] Enable "cpuid" command by default for EFI 2013-03-22 13:58:54 +00:00
core [settings] Expose build architecture and platform via settings 2013-04-06 11:33:34 +01:00
crypto [libc] Use __einfo() tuple as first argument to EUNIQ() 2013-04-19 00:45:13 +01:00
doc
drivers [realtek] Use ID word to detect EEPROM presence 2013-04-28 18:59:09 +01:00
hci [build] Fix uses of literal 0 as a NULL pointer 2013-04-28 17:13:44 +01:00
image [efi] Add sample platform-generated error disambiguations 2013-04-19 13:34:19 +01:00
include [build] Default to short wchar_t in stddef.h 2013-04-28 17:43:37 +01:00
interface [efi] Perform meaningful error code conversions 2013-04-19 13:34:19 +01:00
libgcc
net [build] Fix dubious uses of bitwise operators 2013-04-28 17:31:23 +01:00
tests [test] Add self-tests for string functions 2012-11-12 16:58:49 +00:00
usr [autoboot] Split main control flow out of main() into a new function ipxe() 2013-03-13 22:24:13 +00:00
util [libc] Redefine low 8 bits of error code as "platform error code" 2013-04-19 13:34:13 +01:00
.gitignore [build] Add support for local configuration files 2010-03-26 19:07:22 +00:00
doxygen.cfg
Makefile [build] Add vmware build target 2013-03-06 19:52:51 +00:00
Makefile.housekeeping [build] Use -Wno-decl when running sparse 2013-04-28 16:43:32 +01:00