How can I get cpu id of imx8mm in bsp 5.4.70_2.3.2?
已解决! 转到解答。
If you read the code, you will find below for uuid
cat /sys/devices/soc0/soc_uid
5.10cat /sys/devices/soc0/serial_number
在原帖中查看解决方案
do you mean function "get_cpu_rev" of soc.c?
"https://source.codeaurora.org/external/imx/uboot-imx/tree/arch/arm/mach-imx/imx8m/soc.c?h=imx_v2020...."
Hi,Joanxie
I mean to get cpu ids(or unique ids) in user-mode apps
you can use the command as below:
fuse read 0 1
fuse read 0 2
You can also get the same values reading the OCOTP_HW_OCOTP_TESTER0 and OCOTP_HW_OCOTP_TESTER1 registers.
Commands are:
md.l 0x30350410 1
md.l 0x30350420 1