5 Commits

Author SHA1 Message Date
Mikael Ågren
feca8f19f4
Do note delete or corrupt preloaded app 0 when storing preloaded app 1 2025-03-20 16:22:47 +01:00
Mikael Ågren
6dcb5018d1
Store app digest and signature for each app slot 2025-03-20 16:07:21 +01:00
Mikael Ågren
970668a47b
Add second pre-loaded app slot in flash 2025-03-20 16:07:20 +01:00
Michael Cardell Widerkrantz
c359a52905
Introduce symbolic names for present and present & authenticated
A preloaded app can be:

- present and not yet authenticated (0x01)
- present and authenticated (0x02)

Let's use symbolic names for these.
2025-03-18 17:40:11 +01:00
Michael Cardell Widerkrantz
6ef6c36f6f
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-03-18 17:40:10 +01:00