root@0030D629BD6B:/tmp# dmesg | grep ocotp
[ 4734.504139] imx_ocotp 30350000.ocotp-ctrl: failed write to locked region
root@0030D629BD6B:/tmp# ls -l /sys/bus/nvmem/devices/imx-ocotp0/nvmem
-rw-r--r-- 1 root root 0 Feb 1 18:48 /sys/bus/nvmem/devices/imx-ocotp0/nvmem
As you can see nvmem write is disabled on the IMX8MP. (release imx_5.4.70_2.3.0)
How can i enable it?
Please test on L5.10.72
Can you provide a patch or the commit where this is fixed? Upgrading is not possible for me at the moment.