40 Commits

Author SHA1 Message Date
Conor Patrick
b78f2cd2e7 keep initialize last_addr and reject if it doesnt change 2020-02-13 17:17:23 -05:00
Conor Patrick
f74dba7ff0 enforce ascending writes in bootloader update 2020-02-06 13:05:57 -05:00
Conor Patrick
de55e521cc fix bootloader build 2019-11-22 19:02:52 -05:00
Conor Patrick
21f3a0d10f remove hacker constraint for booting into bootloader 2019-10-28 12:55:38 -04:00
Conor Patrick
8b146c4a16 fix issue with bootloader not replying data 2019-10-28 10:51:35 -04:00
Conor Patrick
a1a79b05fd fix solo locked flag for bootloader 2019-10-27 10:25:00 -04:00
Conor Patrick
ff88660027 fix const qualifer warnings 2019-10-08 14:43:24 -04:00
Conor Patrick
9ecfda02c5 remove atomic counter from bootloader to save space 2019-10-08 14:43:24 -04:00
Szczepan Zalega
a053bbc669
Do not verify version for the hacker edition 2019-08-24 10:26:44 +02:00
Szczepan Zalega
3c7bf5a264
Remove obsolete debug messages 2019-08-24 10:26:38 +02:00
Szczepan Zalega
e3ff136196
Remove obsolete region for the app static firmware version address 2019-08-24 10:17:59 +02:00
Szczepan Zalega
74181406fe
Rename last_addr->last_written_app_address 2019-08-24 10:17:55 +02:00
Szczepan Zalega
cb13fb65de
Store version in the bootloader. Debug code. 2019-08-24 10:17:43 +02:00
Szczepan Zalega
7fddd58704
Bootloader: get uploaded application version from the 4 last bytes of its firmware 2019-08-24 10:17:40 +02:00
Szczepan Zalega
1100b159a9
Refactor. Add debug code. Use %u for unsigned. Use volatile pointer instead of memory storage. 2019-08-24 10:17:21 +02:00
Szczepan Zalega
35e52f4968
Initial modification to move bootloader data after the application 2019-08-24 10:17:15 +02:00
Szczepan Zalega
efddd2f3a8
Use the same public bootloader key as before 2019-08-24 10:17:12 +02:00
Szczepan Zalega
17ceb7b9e8
Make the public key generic 2019-08-24 10:17:09 +02:00
Szczepan Zalega
188a34d1da
Add missing Makefile entry. Rename pubkey file. 2019-08-24 10:17:05 +02:00
Szczepan Zalega
9248c6462c
Add missing is_newer and pubkey 2019-08-24 10:17:02 +02:00
Szczepan Zalega
e4e0a3a84e
Add code responsible for firmware version verification in the bootloader 2019-08-24 10:16:50 +02:00
Conor Patrick
aca28fde61 add to bootloader 2019-05-09 02:44:17 -04:00
Nicolas Stalder
50bfbc1eff I think this does it 2019-03-10 15:26:45 +01:00
Conor Patrick
14974e0ebe fix compile issues 2019-02-26 15:30:57 -05:00
Conor Patrick
1a6895ca25 merge 2019-02-26 13:10:16 -05:00
yparitcher
85004370b7
fix bootloader versions 2019-02-12 23:10:36 -05:00
Conor Patrick
6e497ad04e VERSION macro was colliding with something 2019-02-12 22:02:11 -05:00
Conor Patrick
7df402a20a
Merge branch 'master' into code-comments 2019-02-12 20:34:03 -05:00
yparitcher
1dd835d698
add -Wextra: further code cleanup
please fix Wno-unused-parameter -Wno-missing-field-initializers in the future
2019-02-12 18:22:03 -05:00
yparitcher
400b37a96a
clean up build: GCC warnings 2019-02-12 18:19:38 -05:00
Conor Patrick
894f6f7ee1
Merge branch 'master' into license-change 2019-02-12 17:47:28 -05:00
Conor Patrick
ed676151f1 update license to apache2 + mit 2019-02-12 17:18:17 -05:00
Conor Patrick
6c23532f08 use 3-byte version 2019-02-12 16:37:32 -05:00
Conor Patrick
020fe21546 organize version header info 2019-02-12 16:11:06 -05:00
Conor Patrick
8303bb04d3 write bootloader version from bootloader 2019-02-12 13:59:36 -05:00
Conor Patrick
d23bf0a144 change product name, include version string 2019-02-12 13:59:16 -05:00
Conor Patrick
f470e9a9cd dont need to init clock at first in bootloader 2019-02-06 18:05:22 -05:00
Conor Patrick
4ba57ccc85 refactor init functions 2019-02-02 00:23:01 -05:00
Szczepan Zalega
f38b29256b
Describe operations done in the bootloader
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
2019-01-08 19:31:33 +01:00
Nicolas Stalder
5f3c50e690 we use l432, not l442 2019-01-05 01:44:53 +01:00