[ipxe-devel] Intel 82576 MAC swapping
Anton D. Kachalov
mouse at yandex-team.ru
Fri Jul 27 15:36:03 UTC 2012
Kieran,
regarding to "igb" driver, offset (in words) to EEPROM's MAC should be placed at 0x37 (in words) of EEPROM (page 178, table 6-1). It is 0xffff.
Try the attached patch.
I accidentally has added left shift by 2 instead of 1 :))
>> if ( ( rc = nvs_read ( &intel->eeprom, 0x37 << 2 /* NVM_ALT_MAC_ADDR_PTR */,
>>
>> to this one:
>>
>> if ( ( rc = nvs_read ( &intel->eeprom, 0x37 << 1 /* NVM_ALT_MAC_ADDR_PTR */,
27.07.2012, 19:01, "Kieran Evans" <keyz182 at gmail.com>:
> Anton, no luck there I'm afraid.
>
> http://dbyz.co.uk/ipxe4.png
>
> If you check the EEPROM dumps I sent earlier, you'll see that there is
> only one MAC in the whole EEPROM. Looking for it at different offsets
> will return garbage.
>
> Just to be sure, I dumped the EEPROM from both interfaces (both linked
> in an earlier email) and they are identical, so they are sharing the
> same EEPROM.
>
> /Kieran
>
> On 27/07/2012 14:55, Anton D. Kachalov wrote:
>> Kieran,
>>
>> my fault.
>>
>> Fix this line:
>>
>> if ( ( rc = nvs_read ( &intel->eeprom, 0x37 /* NVM_ALT_MAC_ADDR_PTR */,
>>
>> to this one:
>>
>> if ( ( rc = nvs_read ( &intel->eeprom, 0x37 << 2 /* NVM_ALT_MAC_ADDR_PTR */,
--
Anton D. Kachalov
ITO, R&D group, Senior System Engineer
Tel: +7 (495) 739-70-00 ext.7613
-------------- next part --------------
A non-text attachment was scrubbed...
Name: intel-eeprom-mac.patch
Type: text/x-c
Size: 1510 bytes
Desc: not available
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20120727/f191bbb0/attachment.bin>
More information about the ipxe-devel
mailing list