Programming i.MX8 eFUSES from userspace

cancel
Showing results for 
Search instead for 
Did you mean: 

Programming i.MX8 eFUSES from userspace

Jump to solution
1,007 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
1 Solution
934 Views
igorpadykov
NXP TechSupport
NXP TechSupport

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
2 Replies
935 Views
igorpadykov
NXP TechSupport
NXP TechSupport

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
934 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