fw: Remove storage area address and size from partition table

Instead we calculate start addresses from area index and use fixed size.
This commit is contained in:
Mikael Ågren 2025-03-28 11:37:30 +01:00
parent b837eec9e6
commit 930d204e9f
No known key found for this signature in database
GPG key ID: E02DA3D397792C46
4 changed files with 51 additions and 27 deletions

View file

@ -26,12 +26,6 @@ int part_table_read(struct partition_table *part_table)
part_table->header.version = PART_TABLE_VERSION;
for (int i = 0; i < 4; i++) {
part_table->app_storage[i].addr_start =
(ADDR_STORAGE_AREA + i * SIZE_STORAGE_AREA);
part_table->app_storage[i].size = SIZE_STORAGE_AREA;
}
part_table_write(part_table);
}