Manipulating Device Fuse Data from Linux

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Manipulating Device Fuse Data from Linux

1,190件の閲覧回数
moose
Contributor IV

Hello,

Is there a way to manipulate imx8mn fuses from Linux? Today we use uboot `fuse read` and `fuse program` commands, and we prefer to do it from Linux instead. It was not clear online how to do this on imx8mn devices. Thank you.

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

1,165件の閲覧回数
Harvey021
NXP TechSupport
NXP TechSupport

Hi,

Please refer to the section of One-Time Programmable Controller Driver Using NVMEM Subsystem IMX_LINUX_USERS_GUIDE.pdf 

 

Regards

Harvey

0 件の賞賛
返信

1,127件の閲覧回数
moose
Contributor IV

Thank you for the reference. I am now able to read some fuses using the command `hexdump /sys/bus/nvmem/devices/imx-ocotp0/nvmem`; however, I am unclear on how to map them to the fuse table.

The reference manual for imx8mn lists fuse address space from 0x400 to 0x900 but the output of the hexdump command is not the same. I was able to identify the SRK hash fuse, for example, since it has a unique value. It was showing on address 0000060 in the hexdump output yet its fuse address is 0x580. The reference you shared discusses an example for the MAC address, but I don't really understand it.

Could you please elaborate on how we translate the hexdump address into fuse address? Also, is it possible to burn the fuse from Linux?

moose_0-1713391605122.png

 

0 件の賞賛
返信

1,070件の閲覧回数
moose
Contributor IV

@Harvey021 any update on this?

0 件の賞賛
返信