AnsweredAssumed Answered

Accessing imx6 CPUID from nvmem (/sys/fsl_opt/ is missing)

Question asked by jsmith883 on Feb 29, 2020
Latest reply on Apr 24, 2020 by Repelis plus

Hello,

 

I'm using the 5.4.x kernel and I noticed that I do not have access to /sys/fsl_opt/ to read the CPUID.  I checked the kernel config and I do have everything selected in the NVMEM section, but it's still not showing up.  If I use hexdump and have a look at /sys/bus/nvmem/devices/imx-ocotp0/nvmem, I can see that it's probably in there somewhere, but not sure how to read this.  Is there a better way to get the CPUID, or is there something I need to do to enable /sys/fsl_opt/?  Also I tried: cat /proc/cpuinfo, but it just shows all zeros for the serial number.

 

# hexdump /sys/bus/nvmem/devices/imx-ocotp0/nvmem
0000000 0003 2022 9502 ee7f 11d4 1e0d 0076 2002
0000010 0302 0062 5870 0000 0010 0000 0000 0000
0000020 00c0 0000 0040 0000 00cc 0000 0000 0000
0000030 0000 0000 0000 0000 e37d 5754 0000 0000
0000040 bada bada bada bada bada bada bada bada
*
0000060 0000 0000 0000 0000 0000 0000 0000 0000
*
0000100 bada bada bada bada bada bada bada bada
*
0000200

Outcomes