Programming i.MX8 eFUSES from userspace

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

Programming i.MX8 eFUSES from userspace

跳至解决方案
2,012 次查看
rohitdubey
Contributor III

Hi, 

We're attempting to write the MAC address for the ethernet from a script to be executed during initial setup. I know the eFUSES can programmed from u-boot (Fusing MAC addresses in IMX8 ) but this is tricky to do from a script. We also don't have the option to boot from serial download that Universal Update Utility requires.

I can read the eFUSES from the sysfs (ocotp module) and the OTP memory mapped registers but they don't seem to be writable.

Is there a way to program the fuses from a Yocto based linux image running on the platform? 

Any guidance is truly appreciated.

Thanks,

Rohit

0 项奖励
1 解答
1,939 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Rohit

for access eFUSES from userspace one can try patches provided on

OCOTP write support on i.mx8m 

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

在原帖中查看解决方案

0 项奖励
2 回复数
1,940 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Rohit

for access eFUSES from userspace one can try patches provided on

OCOTP write support on i.mx8m 

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

0 项奖励
1,939 次查看
rohitdubey
Contributor III

Hi Igor,

Thanks for your reply. The patched fsl_otp driver in the above post seems to be working well for us:

   OCOTP Shadow register reload 

Thanks & Regards,

Rohit

0 项奖励