How to disable random MAC address generation in Kernel

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to disable random MAC address generation in Kernel

3,972 Views
ganesank
Contributor III

Hi,

We want to disable random MAC address generation for Ethernet in i.MX6 BSP in our release build so that IEEE allotted MAC number is programmed without fail during product manufacturing. Usually MAC address is programmed in U-boot environment variable "ethaddr". If that variable is not set then random MAC gets generated. In our u-boot build, CONFIG_NET_RANDOM_ETHADDR is not selected but even then random MAC address is getting generated. I am wondering whether Linux kernel generate random MAC address. Is there a way to disable random MAC address generation in kernel? We are using 4.9 version.

Regards,

Ganesan. K

Labels (3)
0 Kudos
Reply
1 Reply

3,389 Views
b36401
NXP Employee
NXP Employee

You can update the driver for it to get MAC address from the fuses instead of generation.

Have a great day,
Victor

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply