Search code examples
intelmac-addresspci-ebase-address

MAC Address not changing after writing to Base Address Register 0


I have a problem and I honestly have no idea where the problem is. I use an Intel Ethernet Controller and my objective is to change the MAC Address of that Controller.

What I allready did is mapping the BAR0 to virtual address space and changing the MAC Address there. After rebooting the value is still in BAR0 so it has successfully been written to the device. However when I check my MAC address with

ip link

I still get the old MAC address.

Does this have something to do with the prefetchable bit? I don't want to edit anything without being certain I won't "kill" the device or anything like that.

I hope someone can help me. Best reagards!


Solution

  • Problem solved. The problem was I needed to address the flash ob the network controller instead of its content directly. After that performing a flash cycle changes the MAC address.