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

HW tests: wear-leveling for storage #4417

Open
matejcik opened this issue Dec 3, 2024 · 0 comments
Open

HW tests: wear-leveling for storage #4417

matejcik opened this issue Dec 3, 2024 · 0 comments
Labels
code Code improvements core Trezor Core firmware. Runs on Trezor Model T and T2B1. hardware only Issue which does not appear on the emulator - but on physical device only. tests Automated integration tests

Comments

@matejcik
Copy link
Contributor

matejcik commented Dec 3, 2024

In #4375 we only erase one sector of storage instead of all of them to gain a bit of speed. (This should not be a problem in practice because tests are never long enough to need the sector switching logic -- although it might be a good idea to test that too :) ).

Anyway, this saves some wear on the second sector of storage. To even out the load, we could also flip the active sector every time storage is reinitialized. See also #4375 (review)

@matejcik matejcik added core Trezor Core firmware. Runs on Trezor Model T and T2B1. hardware only Issue which does not appear on the emulator - but on physical device only. tests Automated integration tests code Code improvements labels Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code Code improvements core Trezor Core firmware. Runs on Trezor Model T and T2B1. hardware only Issue which does not appear on the emulator - but on physical device only. tests Automated integration tests
Projects
Status: No status
Development

No branches or pull requests

1 participant