10 Commits

Author SHA1 Message Date
Mikael Ågren
0ece0c00f1
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-03-26 09:07:01 +01:00
Mikael Ågren
5308544064
fw: Remove pre loaded app auth and status from partition table 2025-03-26 09:07:01 +01:00
Mikael Ågren
2caaf2a453
WIP: verify pre loaded app 2 2025-03-24 11:36:11 +01:00
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
a86cd4a618
Delete app digest and signature when preloaded app is deleted 2025-03-20 16:07:21 +01:00
Mikael Ågren
6dcb5018d1
Store app digest and signature for each app slot 2025-03-20 16:07:21 +01:00
Michael Cardell Widerkrantz
dd147657a4
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-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
2cb5f2eca6
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-03-18 17:40:10 +01:00