Writing to OTP fuse memory via nvmem file

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

Writing to OTP fuse memory via nvmem file

1,969 次查看
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?

标签 (1)
0 项奖励
回复
3 回复数

1,946 次查看
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 项奖励
回复

1,920 次查看
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 项奖励
回复

1,952 次查看
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 项奖励
回复