STM32MP157F OTP fuse override command not working as expected
I'm trying to testing secure boot on a STM32MP157F-EV1. To do so, I planned to use the fuse override command to test secure boot without having to actually burn the OTP 24-31 with the public key hash.
But it appears that fuse override command is not working properly: after overriding cache to store publicKeyhash.bin, the read is exempt of the key. (note: the publicKeyHash_values is a placeholder)
STM32MP> fuse override 0 0x00000018 publicKeyhash_values
Overriding bank 0 word 0x00000018 with publicKeyhash_values[0]
Overriding bank 0 word 0x00000019 with publicKeyhash_values[1]
Overriding bank 0 word 0x0000001a with publicKeyhash_values[2]
Overriding bank 0 word 0x0000001b with publicKeyhash_values[3]
Overriding bank 0 word 0x0000001c with publicKeyhash_values[4]
Overriding bank 0 word 0x0000001d with publicKeyhash_values[5]
Overriding bank 0 word 0x0000001e with publicKeyhash_values[6]
Overriding bank 0 word 0x0000001f with publicKeyhash_values[7]
STM32MP> fuse read 0 0x00000018 8
Reading bank 0:
Word 0x00000018: 00000000 00000000 00000000 00000000
Word 0x0000001c: 00000000 00000000 00000000 00000000I've tested it against stm32key, because I thought the OTP was locked, but it has the same results: apparently its not locked.
STM32MP> fuse sense 0 24 8
Sensing bank 0:
Word 0x00000018: 00000000 00000000 00000000 00000000
Word 0x0000001c: 00000000 00000000 00000000 00000000
STM32MP> fuse sense 0 0x10000018 8
Sensing bank 0:
Word 0x10000018: 10000000 10000000 10000000 10000000
Word 0x1000001c: 10000000 10000000 10000000 10000000
STM32MP> stm32key read
PKH OTP 24: 00000000 lock : 10000000
PKH OTP 25: 00000000 lock : 10000000
PKH OTP 26: 00000000 lock : 10000000
PKH OTP 27: 00000000 lock : 10000000
PKH OTP 28: 00000000 lock : 10000000
PKH OTP 29: 00000000 lock : 10000000
PKH OTP 30: 00000000 lock : 10000000
PKH OTP 31: 00000000 lock : 10000000
PKH is not locked!
PKH is free!I think the issue is somewhere else but I cannot figure it out for the moment.
