Writing to OTP fuse memory via nvmem file

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

Writing to OTP fuse memory via nvmem file

821 Views
logman
Contributor II

Hello,

I would like to program and override the fuse OTP memory on the imx6UL device via the nvmem file (Full path is /sys/bus/nvmem/devices/imx-ocotp0/nvmem)

I can successfully read fuse memory via the nvmem file, and I can read, override and program the fuses using the fuse commands in uboot.

Is it possible to write this memory via the nvmem file?  And is it possible to override the shadow registers using a similar mechanism?  I would like to do this from my application code.

Best Regards,

Tom.

@Dhruvit any ideas please?

Labels (1)
0 Kudos
Reply
3 Replies

798 Views
logman
Contributor II

Thanks @joanxie 

So, this is a valid method to 'prog' the fuse memory from the custom application.  Is there anyway to override the memory instead?  This would be useful during code development, when mistakes are likely.

0 Kudos
Reply

772 Views
joanxie
NXP TechSupport
NXP TechSupport

Writing fuse through NVMEM is not supported in current LF6.1.1_1.0.0 release, the feature will be officially released in 2023 LF Q3 version, for current bsp, maybe you need change the source code,

maybe you can refer to this

https://community.nxp.com/t5/i-MX-Processors/OCOTP-write-support-on-i-mx8m/m-p/825028

https://community.nxp.com/t5/Security-Blog-NXP-Internal/How-to-fuse-key-through-nvmem/ta-p/1394179

0 Kudos
Reply

804 Views
joanxie
NXP TechSupport
NXP TechSupport

pls refer to the document as below, the default should be read only, you can change it in the dts file

https://www.digi.com/resources/documentation/digidocs/embedded/dey/3.0/cc6/bsp_r_otp_cc6cc6qp

this is another topic for imx6/7

https://community.nxp.com/t5/Security-Blog-NXP-Internal/Internal-Fuse-programming-error-with-NVMEM-O...

0 Kudos
Reply