1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-30 03:18:20 +00:00
Commit Graph

59 Commits

Author SHA1 Message Date
Pavol Rusnak
14b0d4439a
embed: add GPLv3 source code headers 2018-02-26 14:07:37 +01:00
Pavol Rusnak
00c193f5cc
trezorhal, unix: drop flash_write_{byte,word} usage, rename flash_write_{byte,word}_rel to flash_write_{byte,word} 2018-01-23 16:58:53 +01:00
Pavol Rusnak
47f5cba439
flash/sdcard: introduce wur, simplify code 2017-12-16 18:42:06 +01:00
Pavol Rusnak
5e93cca0a9
WIP 2017-12-16 17:54:12 +01:00
Pavol Rusnak
11a3ff055c
boardloader/bootloader: typo 2017-12-16 15:12:58 +01:00
Jochen Hoenicke
9f2bbb0e1a Removed references to pin fail area 2017-12-14 17:18:45 +01:00
Pavol Rusnak
e268aeb8b7
flash: simplify/unify flash_erase_sectors usage 2017-12-09 18:00:37 +01:00
Pavol Rusnak
6b94fd26e4
boardloader: rename reset_flags_init to reset_flags_check 2017-12-09 14:36:02 +01:00
mcudev
430900ea2c boardloader: ensure check_sdcard fails when read fails 2017-11-06 14:36:56 +01:00
mcudev
1737f17f43
boardloader: flash option bytes, production changes 2017-11-05 16:42:20 +01:00
Pavol Rusnak
69c17dae9b
trezorhal: use uint32_t* for sdcard_{read,write}_blocks 2017-10-29 16:34:09 +01:00
Pavol Rusnak
fa802e9353
boardloader: fix test for existence of bootloader on sd card 2017-10-29 16:23:25 +01:00
Pavol Rusnak
36143033c4
bootloader: check vendor header / image header before flashing 2017-10-27 04:49:59 +02:00
Pavol Rusnak
4d36d0e1c1
trezorhal: use sectrue where possible 2017-10-27 03:58:00 +02:00
Pavol Rusnak
f73eb3effd
trezorhal: introduce secbool/sectrue/secfalse and use it where possible 2017-10-26 23:51:39 +02:00
Pavol Rusnak
7ddfdf69d6
trezorhal: support for non-continous areas in check_image_contents 2017-10-26 19:09:53 +02:00
Pavol Rusnak
89cc35b195
trezorhal: fix hash offset in check_image_contents 2017-10-26 18:53:20 +02:00
Pavol Rusnak
7c891e19e5
boardloader, bootloader: check image contents against hashes in the header 2017-10-26 17:16:59 +02:00
Pavol Rusnak
63636be0a3
trezorhal: rework header checking to new format 2017-10-26 15:54:02 +02:00
Pavol Rusnak
0c6ee14ee1
trezorhal: move image related defines to image.h 2017-10-26 01:17:57 +02:00
mcudev
abf7f822b8 boardloader: do not call shutdown directly, return and the startup code handles it 2017-10-24 17:17:20 +02:00
mcudev
041dd951d3 boardloader: do not use ensure before display_init, just return 2017-10-24 17:17:20 +02:00
mcudev
1f6edb448c boardloader: check reset flags for production 2017-10-24 17:17:20 +02:00
Pavol Rusnak
79fe9162b5
trezorhal: simplify api for init functions, use bool and void rather than int 2017-10-20 15:25:24 +02:00
mcudev
d6ae912703 boardloader: flash option bytes updates 2017-10-20 14:41:01 +02:00
mcudev
fc7b1cfe81 flash_init: remove empty function from all stages 2017-10-20 14:41:01 +02:00
mcudev
167d476fff image_parse_header: remove undefined behavior and other updates (#61)
boardloader: bootloader: remove undefined behavior in header parsing, code cleanup
2017-10-19 18:45:57 +02:00
Pavol Rusnak
4a14fb6c4d
boardloader: move periph_init to lowlevel.c 2017-10-17 11:44:53 +02:00
mcudev
45a4a944d0 boardloader, bootloader, firmware: only call periph_init in boardloader (#54) 2017-10-17 11:42:57 +02:00
Pavol Rusnak
6ea9b105e5
boardloader, bootloader: reorder erasing of sectors, check whether sector was really erased 2017-10-16 21:43:07 +02:00
Pavol Rusnak
82050912c4
bootloader: implement WipeDevice 2017-10-16 20:56:16 +02:00
Pavol Rusnak
001298a90e
boardloader: erase storage on failed option_bytes 2017-10-16 14:22:10 +02:00
Pavol Rusnak
e8e3ed98f3
boardloader: usability fixes 2017-10-15 22:20:13 +02:00
Pavol Rusnak
06fc509cbb
boardloader: reorder calls so one can abort also by ejecting SD card 2017-10-14 13:00:23 +02:00
Pavol Rusnak
8a707ce40d
boardloader: check flash_option_bytes at start 2017-10-14 12:49:00 +02:00
mcudev
70594a9bfe startup: setup the stack protector for the stage before main function (#46) 2017-10-14 12:25:13 +02:00
Pavol Rusnak
bdae87ddde
boardloader: small changes to program flow and display output 2017-10-13 17:19:14 +02:00
Pavol Rusnak
c5dfa37f3e
boardloader: don't call copy_sdcard twice 2017-10-13 00:28:06 +02:00
Pavol Rusnak
2fc69bed61
embed: rename trassert to ensure 2017-10-12 16:06:53 +02:00
Pavol Rusnak
66b6406b7c
boardloader, bootloader: add write-protection and downgrade-protection respectively 2017-10-12 14:35:01 +02:00
Pavol Rusnak
9a0c8f4687
build: introduce PRODUCTION flag 2017-10-12 12:17:04 +02:00
Pavol Rusnak
380d08f1d0
embed: introduce trassert (trezor assert) 2017-10-12 00:35:14 +02:00
Pavol Rusnak
d003c250d8
boardloader: refactor flash_option_bytes from trezorhal to boardloader/lowlevel 2017-10-11 23:53:29 +02:00
Pavol Rusnak
7babde646e
embed: more cleanup 2017-10-11 23:11:59 +02:00
Pavol Rusnak
6413c2c23e
embed: rework memory layout, enable stack protector 2017-10-11 21:19:52 +02:00
Pavol Rusnak
a6fd1da237
boardloader: wait 5 seconds before copying bootloader 2017-10-11 18:11:38 +02:00
mcudev
ead626404b boardloader: issue 34 (#36) 2017-10-11 12:58:36 +02:00
mcudev
4ee5872a55 display: backlight handling (#25) 2017-10-06 11:11:59 +02:00
Pavol Rusnak
6693d61aa0
boardloader+bootloader: remove prints during normal operation 2017-10-05 20:19:04 +02:00
Pavol Rusnak
39b614499f
build: update production keys 2017-10-04 20:20:01 +02:00