Skip to content

Commit 8068245

Browse files
committed
[sw,otbn] Fix otbn patch offset
The older OTBN boot binary in the `Earlgrey-PROD-A2-M6-ROM-RC1` ROM release is different from the one when PR #27679 was authored. The instruction to be patched in the binary built on `Earlgrey-PROD-A2-M6-ROM-RC1` tag is 0x888: ``` xxd /tmp/boot.bin | grep '7b38 fac1' 00000880: 7bb9 0fc1 7b3a f841 7b38 fac1 0b77 2000 {...{:.A{8...w . ``` Change-Id: I6f69b55c81c15543d0879701f489f2748bbb7a0b Signed-off-by: Yi-Hsuan Deng <[email protected]>
1 parent 3d90dc9 commit 8068245

File tree

1 file changed

+1
-1
lines changed
  • sw/device/silicon_creator/lib/drivers

1 file changed

+1
-1
lines changed

sw/device/silicon_creator/lib/drivers/otbn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ rom_error_t sc_otbn_load_app(const sc_otbn_app_t app) {
268268
void sc_otbn_patch(void) {
269269
enum {
270270
// Offset in the code of the bad instruction:
271-
kBugOffset = 0x958,
271+
kBugOffset = 0x888,
272272
// The bad instruction is:
273273
// bn.rshi w16, w20, w31 >> 192
274274
kBadInstr = 0xc1fa387b,

0 commit comments

Comments
 (0)