Commit Graph
20 Commits
Author SHA1 Message Date
Julien Cretin cf31110922 Define the storage locations in the board 2020-05-13 15:17:35 +02:00
Julien Cretin ecf02eb6ce Only store the storage location in the Kernel 2020-05-08 17:00:59 +02:00
Julien Cretin 3edb387615 Remove writable flash regions support
Removing support for writable flash regions permits to save 1 page in the binary
due to alignment constraints. It also permits to reduce the diff with libtock-rs
which doesn't support writable flash regions.

This commit also updates the `SyscallStorage` documentation.
2020-05-06 15:18:27 +02:00
Julien Cretin 1f22004133 Merge branch 'master' into no_wfr 2020-04-30 16:18:41 +02:00
Julien Cretin a2eff7c632 Merge pull request #105 from ia0/rename_layout
Rename linker script according to the chip
2020-04-30 16:17:14 +02:00
Julien Cretin fb0b1db759 Rename linker script according to the chip
The layout applies to all boards sharing the nrf52840 chip.
2020-04-30 16:04:28 +02:00
Julien Cretin 718514d207 Merge branch 'master' into no_wfr 2020-04-29 15:12:39 +02:00
Julien Cretin 5c2b72ce83 Move storage bound checking to driver 2020-04-29 15:09:50 +02:00
Julien Cretin 88920035fa Permit the app to read the storage 2020-04-29 13:50:42 +02:00
Julien Cretin 892f950cc1 Add missing cfg 2020-04-29 12:59:22 +02:00
Julien Cretin 6247098069 Do not use writeable flash regions for persistent storage
They don't play well with DFU.
2020-04-29 12:52:31 +02:00
Julien Cretin 690db41dc6 Merge pull request #73 from ia0/wipe
Wipe sensitive data on entry deletion
2020-03-28 15:06:08 +01:00
Julien Cretin 1a337ab90d Fix typos in documentation 2020-03-23 12:57:27 +01:00
Julien Cretin 4a9cc3ce2e Add more details to the store documentation 2020-03-22 17:17:21 +01:00
Julien Cretin b798b195f4 Return invariant status only and assert in test 2020-03-18 11:10:01 +01:00
Julien Cretin e1fa8549e1 Merge branch 'master' into wipe 2020-03-18 10:59:24 +01:00
Julien Cretin 61a4fb9784 Wipe sensitive data on entry deletion
When inserting (or replacing) entries in the store, the data may be marked as
sensitive. When that entry is deleted, the data is wiped by overwritting it with
zeroes. This may cost a few bytes of overhead per entry with sensitive data to
satisfy the constraint that words may only be written twice.
2020-03-10 14:27:07 +01:00
Julien Cretin e52a671810 Support storing in RAM instead of flash
This permits to run without persistent storage. The benefit is that the board
doesn't implement a the syscall API in Tock. The disadvantage is that rebooting
the key will reset the storage.
2020-03-04 16:24:06 +01:00
Julien Cretin 53b46ce6d5 Add instructions to re-run setup.sh 2020-02-10 11:30:45 +01:00
Julien Cretin 796261d538 Check that rustup and pip3 are installed
Fixes #25
2020-02-09 16:30:23 +01:00