Skip to main content
AVazquez
Associate III
September 16, 2020
Solved

secure boot and stm32key from

  • September 16, 2020
  • 2 replies
  • 955 views

Hi, All.

In the wiki, the process to program the PKH into the OTP is done with stm32key tool in u-boot. Also, PKH file must be available in a filesystem partition. All these tasks need to be done manually...

Is it possible to do this same process from sysfs? 

My idea is to be able to automate this task in a script.

This topic has been closed for replies.
Best answer by Olivier GALLIEN

​Hi @AVazquez​ 

For automation maybe you can consider to use STM32CubeProgrammer ?

See

https://wiki.st.com/stm32mpu/wiki/STM32CubeProgrammer#How_to_fuse_STM32MP15x_OTP

For PKH OTP fuse.

I guess filesystem partition can also be manage ?

Using CLI of STM32CubeProgrammer made it easy to use in some script

Hope it help

Olivier

2 replies

Olivier GALLIEN
Olivier GALLIENBest answer
Technical Moderator
September 23, 2020

​Hi @AVazquez​ 

For automation maybe you can consider to use STM32CubeProgrammer ?

See

https://wiki.st.com/stm32mpu/wiki/STM32CubeProgrammer#How_to_fuse_STM32MP15x_OTP

For PKH OTP fuse.

I guess filesystem partition can also be manage ?

Using CLI of STM32CubeProgrammer made it easy to use in some script

Hope it help

Olivier

Olivier GALLIEN In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
AVazquez
AVazquezAuthor
Associate III
September 26, 2020

Yes , I need manage filesystem partition.

You are rigth, maybe the best option is use STM32CubeProgrammer.

Thanks!!