Raspberry Pi读取OTP
OTP简介
OTP(One Time Programmable)是MCU的一种存储器类型,意思是一次性可编程: 程序烧入IC后, 将不可再次更改
读取OTP信息
只需要在shell中输入即可
- sudo vcgencmd otp_dump
例如
- rootming@pi3:~ $ sudo vcgencmd otp_dump
- 08:00000000
- 09:00000000
- 10:00000000
- 11:00000000
- 12:00000000
- 13:00000000
- 14:00000000
- 15:00000000
- 16:00280000
- 17:1020000a
- 18:1020000a
- 19:ffffffff
- 20:ffffffff
- 21:ffffffff
- 22:ffffffff
- 23:ffffffff
- 24:ffffffff
- 25:ffffffff
- 26:ffffffff
- 27:00002727
- 28:8015f91e
- 29:7fea06e1
- 30:00a02082
- 31:00000000
- 32:00000000
- 33:00000000
- 34:00000000
- 35:00000000
- 36:00000000
- 37:00000000
- 38:00000000
- 39:00000000
- 40:00000000
- 41:00000000
- 42:00000000
- 43:00000000
- 44:00000000
- 45:00000000
- 46:00000000
- 47:00000000
- 48:00000000
- 49:00000000
- 50:00000000
- 51:00000000
- 52:00000000
- 53:00000000
- 54:00000000
- 55:00000000
- 56:00000000
- 57:00000000
- 58:00000000
- 59:00000000
- 60:00000000
- 61:00000000
- 62:00000000
- 63:00000000
- 64:00000000
- 65:00000000
- 66:00000000
获取到这些信息后, 就可以知道树莓派的MAC地址, 以及启动模式
Locations 28 and 30 store the Serial and Revision values that get displayed by /proc/cpuinfo (the Serial is also used to determine the Ethernet MAC address on Model B boards), and location 32 stores the value of the warranty bit. Purpose of values in other locations is unknown. RPI_vcgencmd_usage