Commit Graph

57 Commits (30ff61b588b46ad88be9e2bf8be147555f93898c)

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