On some RTL8169 onboard NICs (observed with a Lenovo ThinkPad 11e), the EEPROM is not merely not present: any attempt to read from the non-existent EEPROM will crash and reboot the system. The equivalent code to read from the EEPROM was removed from the Linux r8169 driver in 2009 with a comment suggesting that it was similarly found to be unreliable on some systems. Fix by accessing the EEPROM only on RTL8139 NICs, and assuming that the MAC address will always be correctly preset on RTL8169 NICs. Reported-by: Evan Prohaska <eprohaska@edkey.org> Tested-by: Evan Prohaska <eprohaska@edkey.org> Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
198 |
|
198 |
|
199 |
|
199 |
|
200 |
|
200 |
|
201 |
|
|
|
202 |
|
201 |
|
203 |
|
202 |
|
204 |
|
203 |
|
|
|
||
1089 |
|
1088 |
|
1090 |
|
1089 |
|
1091 |
|
1090 |
|
|
1091 |
|
|
1092 |
|
1092 |
|
1093 |
|
1093 |
|
1094 |
|
1094 |
|
|
|
||
1136 |
|
1136 |
|
1137 |
|
1137 |
|
1138 |
|
1138 |
|
1139 |
|
|
|
|
1139 |
|
|
|
1140 |
|
|
1140 |
|
1141 |
|
1141 |
|
1142 |
|
1142 |
|
1143 |
|