How to read OCOTP_MAC0/MAC to fec_main.c

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

How to read OCOTP_MAC0/MAC to fec_main.c

1,830 次查看
kalyankodamagul
Contributor I

Hello,

Method 1 :

I had programmed OCOTP_MAC0 (21B_C620h) and OCOTP_MAC1(21B_C630h) registers(IMX6 dualite application processor) fusing method.Intention is to fix the mac address instead of getting random mac address.

I was assuming that in fec_main.c  function "fec_get_mac"   

 kernel command line method(fec.macaddr=) is same as ocotp fusing method, as below

/*
* try to get mac address in following order:
*
* 1) module parameter via kernel command line in form
* fec.macaddr=0x00,0x04,0x9f,0x01,0x30,0xe0
*/
iap = macaddr;

/*

But dint read the mac address.Is my assumption is correct ? Please suggest how to read this from fec driver.

0 项奖励
回复
1 回复

1,577 次查看
igorpadykov
NXP Employee
NXP Employee

Hi kalyan

please check suggestions on

linux - Get MAC address using shell script - Stack Overflow 

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

0 项奖励
回复