MAC Address burnt in but eMMC using old Virtual MAC

I have 4 i.MX6 solo’s that I have added u-boot and buildroot with my application in the eMMC. The SoMs did not have the MAC address burnt in at the time and a virtual MAC was giving. I have since burnt in a MAC address and they will use that MAC address when I boots from the load. I put my application on the eMMC and boot. When I do an ifconfig the MAC address is the old virtual MAC and not the one I burnt in. Doing a grep on the number of the virtual MAC I found one in /dev/mmcblk2boot0:etheaddr=d2:63:b4:ba:24:55 so that is possibly where it is get the old MAC address.

I need a way to clear the old virtual MAC and get it to use the one burnt in. Is there a u-boot parameter I am missing to clear this?

The old MAC address is stored in your env environment, and it will be chosen by default so you have the option to override the fused MAC if needed for testing. In u-boot you can do env default -f -a and then env save then reset the device.

Thanks jnettlet, that was what I was looking for. What I did was mmc erase secure-erase 0 5555 /dev/mmcblk2boot0 The 5555 was a little random but worked, I was after the size of the boot area but the sizes that I found were too big and the erase failed.

1 Like