Programming i.MX8 eFUSES from userspace

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

Programming i.MX8 eFUSES from userspace

Jump to solution
2,865 Views
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 Kudos
Reply
1 Solution
2,792 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
2 Replies
2,793 Views
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 Kudos
Reply
2,792 Views
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 Kudos
Reply