Skip to content

Commit 148eca8

Browse files
pamauryluismarques
authored andcommitted
[sw] Fix chip_info location in test_rom
The `chip_info` structure is currently located inconsistently between the `mask_rom` and `test_rom`. In `mask_rom`, it resides in the last 128 bytes, but in `test_rom`, it's offset by an additional 32 bytes (to `last 160 bytes`). Given `chip_info`'s small size (12 bytes), it can safely occupy bytes 116-128 from the end of the ROM, leaving the final 32 bytes (0-31) for the scrambling tool's digest. This change aligns `test_rom`'s `chip_info` placement with `mask_rom`'s. Change-Id: I10bde4d9b856511030c34ed373569eaa00c8af04 Signed-off-by: Yi-Hsuan Deng <[email protected]> Signed-off-by: Amaury Pouly <[email protected]>
1 parent 90e809e commit 148eca8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

sw/device/lib/testing/test_rom/test_rom.ld

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ _rom_ext_virtual_size = LENGTH(rom_ext_virtual);
3131
ASSERT((_rom_ext_virtual_size <= (LENGTH(eflash) / 2)),
3232
"Error: rom ext flash is bigger than slot.");
3333

34-
_rom_digest_size = 32;
35-
_chip_info_start = ORIGIN(rom) + LENGTH(rom) - _rom_digest_size - _chip_info_size;
36-
3734
/* DV Log offset (has to be different to other boot stages). */
3835
_dv_log_offset = 0x0;
3936

0 commit comments

Comments
 (0)