How to disable random MAC address generation in Kernel

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to disable random MAC address generation in Kernel

3,730 次查看
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

标签 (3)
0 项奖励
回复
1 回复

3,147 次查看
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 项奖励
回复