cancel
Showing results for 
Search instead for 
Did you mean: 

secure boot and stm32key from

AVazquez
Associate III

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Olivier GALLIEN
ST Employee

​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.

View solution in original post

2 REPLIES 2
Olivier GALLIEN
ST Employee

​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
Associate III

Yes , I need manage filesystem partition.

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

Thanks!!