Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rom_ext] Inactive ROM_EXT is being locked down via flashcontroller #25435

Open
jettr opened this issue Nov 27, 2024 · 0 comments
Open

[rom_ext] Inactive ROM_EXT is being locked down via flashcontroller #25435

jettr opened this issue Nov 27, 2024 · 0 comments
Assignees
Labels
SW:ROM_EXT ROM_EXT related issues

Comments

@jettr
Copy link
Contributor

jettr commented Nov 27, 2024

Description

With ROM 7.0.7, it appears that ROM_EXT is locking down the inactive ROM_EXT region instead of the active ROM_EXT via the flash controller.

$ opentitantool rescue get-boot-log
...
  "rom_ext_slot": "SlotA",
  "rom_ext_major": 0,
  "rom_ext_minor": 7,
  "rom_ext_size": 65536,
  "rom_ext_nonce": 0,
  "bl0_slot": "Unknown",
  "ownership_state": "LockedOwner",
...

Dump from owner firmware (which agrees that active ROM_EXT is SlotA):

> version
version
RO_A:  * 7.0.7/00000000
RO_B:    7.0.7/00000000
RW_A:    0.36.4/DBG/ti50_common_tot:v0.0.1623-249835b2
RW_B:  * 0.36.4/DBG/ti50_common_tot:v0.0.1623-249835b2
> md 0x41000050 20
md 0x41000050 20
0x41000050: 09666666 09669966 09666666 09669966
0x41000060: 06696666 06696666 09669966 06696666
0x41000070: 00004000 00004100 00019c20 00019d20
0x41000080: 000024ee 000023ee 000003ff 00001dee
0x41000090: 00966666 00000000 00000000 00000000

Notice that region[1] is 0x00004100 (which is page 256 to 288, i.e. SlotB ROM_EXT) has permission 0x09669966, which means that program and erase are denied. However, region[0], which corresponds to SlotA ROM_EXT, has permission 0x09666666, which is fully writable.

@jettr jettr added the SW:ROM_EXT ROM_EXT related issues label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SW:ROM_EXT ROM_EXT related issues
Projects
None yet
Development

No branches or pull requests

3 participants