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
d0310ff3e0
fw: Remove TK1_SYSCALL_REG_MGMT
...
Validate preload API access using the fixed, pre-calculated app digest
instead of letting an app register itself as a management app.
2025-04-04 13:41:54 +02:00
Mikael Ågren
e5a574204b
fw: Remove pre loaded app auth and status from partition table
2025-04-04 13:41:54 +02:00
Mikael Ågren
68917cc1bb
WIP: verify pre loaded app 2
2025-04-04 13:41:53 +02:00
Mikael Ågren
bca578a3e9
Do note delete or corrupt preloaded app 0 when storing preloaded app 1
2025-04-04 13:41:51 +02:00
Mikael Ågren
b1d52c58c0
Delete app digest and signature when preloaded app is deleted
2025-04-04 13:41:50 +02:00
Mikael Ågren
1afa354321
Store app digest and signature for each app slot
2025-04-04 13:41:50 +02:00
Michael Cardell Widerkrantz
42cb68a7ff
Introduce syscalls to change preloaded app
...
Introduce syscalls:
- TK1_SYSCALL_PRELOAD_STORE
- TK1_SYSCALL_PRELOAD_STORE_FIN
- TK1_SYSCALL_PRELOAD_DELETE
- TK1_SYSCALL_REG_MGMT = 11
Change preload_store_finalize() not to take USS arg. Unused for
preloaded apps.
2025-04-04 13:41:50 +02:00
Mikael Ågren
b44fa2949a
Add second pre-loaded app slot in flash
2025-04-04 13:41:49 +02:00
Michael Cardell Widerkrantz
ee5feef2f4
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-04-04 13:41:47 +02:00
Michael Cardell Widerkrantz
60e80c5a38
Add start of pre-loaded app from flash
...
Based on earlier code by Daniel Jobson <jobson@tillitis.se> now
integrated into the new world order.
Co-authored-by: Mikael Ågren <mikael@tillitis.se>
Co-authored-by: Daniel Jobson <jobson@tillitis.se>
2025-04-04 13:41:45 +02:00