写eFUSE可以通過u-boot命令去燒寫. 在Linux BSP文檔包里面, i.MX_6Dual6Quad_Sabre-SD_Linux_User_Guide.pdf 中提到imxotp命令:
10.1 How to Fuse in U-Boot
U-Boot contains a tool, imxotp, which is used for fusing.
U-Boot > imxotp
imxotp - One-Time Programable sub-system
Usage:
imxotp imxotp read
- read fuse at 'index'
imxotp blow [--force]
- blow fuse at 'index' with hex value 'value'
Tips:
'addr' to 'index':
convert 'index' from 'address'
index = (addr - otp_base) / 0x10
eg, addr is 0x021bc410, otp_base is 0x021bc400, the index = 1
• '--force' must be present in order to blow the fuse. Command will abort if '--force' is missing.
• index = (addr - otp_base) / 0x10, where the addr is the address of the fuse you want to operate, the otp_base is the base address of the fuse block.
• 'value' should correspond to fuse settings according to the fuse map and desired fuse configuration.
|