board: ti: sec-cfg.yaml: Fix OTP write_host_id order
PATCH 1/1 board: ti: sec-cfg.yaml: Fix OTP write_host_id order
The write_host_id is the last element here and order does matter. This may have gone unnoticed before as by default all elements are 0, but if this is updated to a different host, it will not work. Update the order so write_host_id is the last element in all current secure board configs.
Reported-by Prashant Shivhare <[email protected]>
Signed-off-by Andrew Davis <[email protected]>
--- board/beagle/beagleplay/sec-cfg.yaml | 2 +- board/beagle/beagley-ai/sec-cfg.yaml | 2 +- board/phytec/phycore_am62ax/sec-cfg.yaml | 2 +- board/phytec/phycore_am62x/sec-cfg.yaml | 2 +- board/phytec/phycore_am64x/sec-cfg.yaml | 2 +- board/ti/am62ax/sec-cfg.yaml | 2 +- board/ti/am62px/sec-cfg.yaml | 2 +- board/ti/am62x/sec-cfg.yaml | 2 +- board/ti/am64x/sec-cfg.yaml | 2 +- board/ti/am65x/sec-cfg.yaml | 2 +- board/ti/j7200/sec-cfg.yaml | 2 +- board/ti/j721s2/sec-cfg.yaml | 2 +- board/ti/j722s/sec-cfg.yaml | 2 +- board/ti/j784s4/sec-cfg.yaml | 2 +- board/toradex/verdin-am62/sec-cfg.yaml | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-)
board/beagle/beagleplay/sec-cfg.yaml +1 -1
@@ -248,7 +248,6 @@ sec-cfg: subhdr: magic: 0x4081 size: 69 - write_host_id: 0 otp_entry: - # 1 host_id: 0
@@ -346,6 +345,7 @@ sec-cfg: - # 32 host_id: 0 host_perms: 0 + write_host_id: 0 dkek_config: subhdr: magic: 0x5170
board/beagle/beagley-ai/sec-cfg.yaml +1 -1
@@ -248,7 +248,6 @@ sec-cfg: subhdr: magic: 0x4081 size: 69 - write_host_id: 0 otp_entry: - host_id: 0
@@ -346,6 +345,7 @@ sec-cfg: - host_id: 0 host_perms: 0 + write_host_id: 0 dkek_config: subhdr: magic: 0x5170
board/phytec/phycore_am62ax/sec-cfg.yaml +1 -1
@@ -248,7 +248,6 @@ sec-cfg: subhdr: magic: 0x4081 size: 69 - write_host_id: 0 otp_entry: - # 1 host_id: 0
@@ -346,6 +345,7 @@ sec-cfg: - # 32 host_id: 0 host_perms: 0 + write_host_id: 0 dkek_config: subhdr: magic: 0x5170
board/phytec/phycore_am62x/sec-cfg.yaml +1 -1
@@ -248,7 +248,6 @@ sec-cfg: subhdr: magic: 0x4081 size: 69 - write_host_id: 0 otp_entry: - # 1 host_id: 0
@@ -346,6 +345,7 @@ sec-cfg: - # 32 host_id: 0 host_perms: 0 + write_host_id: 0 dkek_config: subhdr: magic: 0x5170
board/phytec/phycore_am64x/sec-cfg.yaml +1 -1
@@ -248,7 +248,6 @@ sec-cfg: subhdr: magic: 0x4081 size: 69 - write_host_id: 0 otp_entry: - # 1 host_id: 0
@@ -346,6 +345,7 @@ sec-cfg: - # 32 host_id: 0 host_perms: 0 + write_host_id: 0 dkek_config: subhdr: magic: 0x5170
board/ti/am62ax/sec-cfg.yaml +1 -1
@@ -248,7 +248,6 @@ sec-cfg: subhdr: magic: 0x4081 size: 69 - write_host_id: 0 otp_entry: - # 1 host_id: 0
@@ -346,6 +345,7 @@ sec-cfg: - # 32 host_id: 0 host_perms: 0 + write_host_id: 0 dkek_config: subhdr: magic: 0x5170
board/ti/am62px/sec-cfg.yaml +1 -1
@@ -247,7 +247,6 @@ sec-cfg: subhdr: magic: 0x4081 size: 69 - write_host_id: 0 otp_entry: - # 1 host_id: 0
@@ -345,6 +344,7 @@ sec-cfg: - # 32 host_id: 0 host_perms: 0 + write_host_id: 0 dkek_config: subhdr: magic: 0x5170
board/ti/am62x/sec-cfg.yaml +1 -1
@@ -248,7 +248,6 @@ sec-cfg: subhdr: magic: 0x4081 size: 69 - write_host_id: 0 otp_entry: - # 1 host_id: 0
@@ -346,6 +345,7 @@ sec-cfg: - # 32 host_id: 0 host_perms: 0 + write_host_id: 0 dkek_config: subhdr: magic: 0x5170
board/ti/am64x/sec-cfg.yaml +1 -1
@@ -248,7 +248,6 @@ sec-cfg: subhdr: magic: 0x4081 size: 69 - write_host_id: 0 otp_entry: - # 1 host_id: 0
@@ -346,6 +345,7 @@ sec-cfg: - # 32 host_id: 0 host_perms: 0 + write_host_id: 0 dkek_config: subhdr: magic: 0x5170
board/ti/am65x/sec-cfg.yaml +1 -1
@@ -248,7 +248,6 @@ sec-cfg: subhdr: magic: 0x4081 size: 69 - write_host_id: 0 otp_entry: - # 1 host_id: 0
@@ -346,6 +345,7 @@ sec-cfg: - # 32 host_id: 0 host_perms: 0 + write_host_id: 0 dkek_config: subhdr: magic: 0x5170
board/ti/j7200/sec-cfg.yaml +1 -1
@@ -248,7 +248,6 @@ sec-cfg: subhdr: magic: 0x4081 size: 69 - write_host_id: 0 otp_entry: - # 1 host_id: 0
@@ -346,6 +345,7 @@ sec-cfg: - # 32 host_id: 0 host_perms: 0 + write_host_id: 0 dkek_config: subhdr: magic: 0x5170
board/ti/j721s2/sec-cfg.yaml +1 -1
@@ -248,7 +248,6 @@ sec-cfg: subhdr: magic: 0x4081 size: 69 - write_host_id: 0 otp_entry: - # 1 host_id: 0
@@ -346,6 +345,7 @@ sec-cfg: - # 32 host_id: 0 host_perms: 0 + write_host_id: 0 dkek_config: subhdr: magic: 0x5170
board/ti/j722s/sec-cfg.yaml +1 -1
@@ -248,7 +248,6 @@ sec-cfg: subhdr: magic: 0x4081 size: 69 - write_host_id: 0 otp_entry: - host_id: 0
@@ -346,6 +345,7 @@ sec-cfg: - host_id: 0 host_perms: 0 + write_host_id: 0 dkek_config: subhdr: magic: 0x5170
board/ti/j784s4/sec-cfg.yaml +1 -1
@@ -249,7 +249,6 @@ sec-cfg: subhdr: magic: 0x4081 size: 69 - write_host_id: 0 otp_entry: - # 1 host_id: 0
@@ -347,6 +346,7 @@ sec-cfg: - # 32 host_id: 0 host_perms: 0 + write_host_id: 0 dkek_config: subhdr: magic: 0x5170
board/toradex/verdin-am62/sec-cfg.yaml +1 -1
@@ -248,7 +248,6 @@ sec-cfg: subhdr: magic: 0x4081 size: 69 - write_host_id: 0 otp_entry: - # 1 host_id: 0
@@ -346,6 +345,7 @@ sec-cfg: - # 32 host_id: 0 host_perms: 0 + write_host_id: 0 dkek_config: subhdr: magic: 0x5170
Signature · 1 line
2.39.2
Quoted 8 lines · Andrew Davis
The
write_host_idis the last element here and order does matter. This may have gone unnoticed before as by default all elements are 0, but if this is updated to a different host, it will not work. Update the order sowrite_host_idis the last element in all current secure board configs.[...]
Applied to u-boot/master, thanks!
[1/1] board: ti: sec-cfg.yaml: Fix OTP write_host_id order
commit: feb55165233623648cb0a74953735b00ec6e322e
Signature · 1 line
Tom