Commit Graph

79 Commits (031d20b25f5358f352b4e52ef50cc04d4d59cf6c)

Author SHA1 Message Date
Pavol Rusnak 14b0d4439a
embed: add GPLv3 source code headers
6 years ago
Pavol Rusnak 1469ede956
embed: bump versions
6 years ago
Pavol Rusnak c934109d65
boardloader, bootloader: bump versions to 2.0
7 years ago
Pavol Rusnak 00c193f5cc
trezorhal, unix: drop flash_write_{byte,word} usage, rename flash_write_{byte,word}_rel to flash_write_{byte,word}
7 years ago
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
Pavol Rusnak d9574bf131
trezorhal: enable BOR level 3, PVD level 5, turn off display in PVD handler
7 years ago
mcudev 430900ea2c boardloader: ensure check_sdcard fails when read fails
7 years ago
Pavol Rusnak 8190e0909e
boardloader: set BOR level to 2
7 years ago
mcudev 1737f17f43
boardloader: flash option bytes, production changes
7 years ago
Pavol Rusnak 311a28242b
boardloader: fix production build, disable reset_flags_init for now
7 years ago
Pavol Rusnak 16f657361c
boardloader: disable BOR protection; fix setting OB flags
7 years ago
Pavol Rusnak a08f18c2ce
boardloader: use PVD level 4
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
mcudev 3f58a771b4 boardloader: stop clearing standby flag
7 years ago
mcudev b1eea5a434 boardloader: enable PVD programmable voltage detector and interrupt
7 years ago
Jan Pochyla f93316bebd cleanup .gitignore files
7 years ago
Pavol Rusnak 79fe9162b5
trezorhal: simplify api for init functions, use bool and void rather than int
7 years ago
Pavol Rusnak 21fac2e2c3
boardloader: don't erase sectors in flash_set_option_bytes for now
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
mcudev 73897c1147 boardloader: remove micropython related code that enables debug features to get clock cycle counts (#58)
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 a7625877ef
embed: call clear_otg_hs_memory from fatal_error
7 years ago