5 Commits

Author SHA1 Message Date
Michael Cardell Widerkrantz
d85d60db72
fw: Implement redundancy of partition table 2025-04-04 14:32:15 +02:00
Michael Cardell Widerkrantz
6cae31dc1e
Remove commented out code about creating partition table 2025-04-04 13:59:34 +02:00
Mikael Ågren
469546ff33
fw: Add checksum to partition table
Refuse to boot if blake2s digest over the partition table does not match
digest stored on flash
2025-04-04 13:41:56 +02:00
Mikael Ågren
a8f355e19a
fw: Remove storage area address and size from partition table
Instead we calculate start addresses from area index and use fixed size.
2025-04-04 13:41:55 +02:00
Michael Cardell Widerkrantz
8da9eef5d0
Add filesystem code and storage syscalls
Adds syscalls:

- ALLOCATE_AREA
- DEALLOCATE_AREA
- WRITE_DATA
- READ_DATA

and code to access the filesystem and the flash over SPI.

Based on original work by Daniel Jobson <jobson@tillitis.see> for
these files:

- auth_app.[ch]
- flash.[ch]
- spi.[ch]
- partition_table.[ch]
- rng.[ch]
- storage.[ch]

which are used with small changes to integrate with the new syscall
method.

Co-authored-by: Daniel Jobson <jobson@tillitis.se>
Co-authored-by: Mikael Ågren <mikael@tillitis.se>
2025-04-04 13:41:44 +02:00