Commit Graph

334 Commits (ae94bc95fbaa39f2c8e134522b197d3abfe1dbd7)

Author SHA1 Message Date
Pavol Rusnak 5e93cca0a9
WIP
7 years ago
Jochen Hoenicke beef9ecfb5 Moved flash_unlock to norcow_update
7 years ago
Pavol Rusnak 6aae87437f
modtrezorui: draw bars under letters
7 years ago
Pavol Rusnak 11a3ff055c
boardloader/bootloader: typo
7 years ago
Pavol Rusnak 4584861385
trezor.ui: introduce ui.SIZE
7 years ago
Pavol Rusnak 79a3f84c3c
modtrezorui: invert FONT macro inclusion logic
7 years ago
Pavol Rusnak 80707f195b
modtrezorui: small cleanup
7 years ago
Pavol Rusnak 7504366a02
bootloader: simplify vtrust code
7 years ago
Jochen Hoenicke c0cd252c83 Store pin as integer
7 years ago
Pavol Rusnak 125ab8471c
trezorhal: store image fingerprint in the image_header structure
7 years ago
Pavol Rusnak be302480fd
modtrezorcrypto: cleanup random
7 years ago
Pavol Rusnak 1a32e46e5d
bootloader: cleanup ui code
7 years ago
Pavol Rusnak 5e476b856e
unix: implement sdcard, add unit test
7 years ago
Pavol Rusnak 48ef409fdb
modtrezorio: remove mocks
7 years ago
Pavol Rusnak b4933f969e
bootloader: don't downgrade firmware below fix_version in the current firmware
7 years ago
Pavol Rusnak 965aa73b63
trezorhal: introduce fix_version in image header (version of last critical bugfix)
7 years ago
Pavol Rusnak e8f70ed4af
pin: implement graphics pin timeout
7 years ago
Jochen Hoenicke 87f7054e46 Added callback for PIN timeout
7 years ago
Jochen Hoenicke 9f2bbb0e1a Removed references to pin fail area
7 years ago
Jochen Hoenicke 497021f2ef storage: New pin fail section inside NORCOW
7 years ago
Pavol Rusnak b7444ac13e
modtrezorconfig: fix wipe error
7 years ago
Pavol Rusnak 2f719526e7
bootloader: implement vendor keys lock
7 years ago
Pavol Rusnak 45c290d24c
trezorhal: introduce vendor_keys_hash, use it in compare_to_current_vendor_header
7 years ago
Pavol Rusnak 70ac202d7a
modtrezorcrypto: add trezor.crypto.hashlib.blake256
7 years ago
Pavol Rusnak 34322d5fb6
firmware: enable stack protector (except nlr stuff)
7 years ago
Pavol Rusnak 1aba175d7d
build: adapt to new trezor-crypto changes
7 years ago
Pavol Rusnak 7b9fcf98ae
drop embed/extmod/modtrezorcrypto/trezor-crypto symlink
7 years ago
Jochen Hoenicke 816bfe387f Bug fix: missing parenthesis in flash_write_word
7 years ago
Pavol Rusnak 20a1326ebb
storage: fix typo
7 years ago
Pavol Rusnak ce3eaba925
trezorhal: use static inline instead of static (gcc 7.2 workaround)
7 years ago
Pavol Rusnak 8a8450d6be
fix build for older compilers
7 years ago
Pavol Rusnak e268aeb8b7
flash: simplify/unify flash_erase_sectors usage
7 years ago
Pavol Rusnak 6ab0f03ec4
embed: norcow_init, storage_init and flash_init don't return secbool, they halt using ensure if something goes wrong
7 years ago
Pavol Rusnak 6b94fd26e4
boardloader: rename reset_flags_init to reset_flags_check
7 years ago
Jan Pochyla 314e6a99c1 modtrezorcrypto/bip32: add HDNode.__init__
7 years ago
Pavol Rusnak 626a8885ce
trezor.config: add compaction test
7 years ago
Pavol Rusnak b39b4a4947
norcow: fix bug
7 years ago
Pavol Rusnak 7f5192701f
unix: use mmap to access flash file
7 years ago
Pavol Rusnak 44a11fa3ef
norcow: introduce NORCOW_MAGIC
7 years ago
Pavol Rusnak 38e3088325
common: don't expose shutdown() via common.h
7 years ago
Pavol Rusnak f88080b904
Merge branch 'pin_fails'
7 years ago
Pavol Rusnak 40104822e8
unix: make SDL failures fatal
7 years ago
Pavol Rusnak 04d980f8f0
add Features.model field (set to "T")
7 years ago
Jan Pochyla 8b85078730
reflash: add new firmware target
7 years ago
Jan Pochyla 09af312789 prodtest: add BORDER command
7 years ago
Pavol Rusnak 679d024df0
display: use CMD2EN: Command 2 Enable
7 years ago
mcudev 6179edde90 touch: reset and usage updates
7 years ago
mcudev 5556c37f6f display: hardware reset updates
7 years ago
mcudev 61ff3b46c5 display: ST7789V porch settings are for RGB interface, not parallel 8080-I
7 years ago
mcudev 30829b281c display: ST7789V remove commands that unnecessarily set default values again
7 years ago
mcudev e62fa345c8 display: minor ILI9341 updates
7 years ago
mcudev a0129e7715 display: orientation, windowing, and config updates
7 years ago
mcudev f53ec3f928 display: update display_unsleep
7 years ago
mcudev 5e867cc092 display: update display_sleep
7 years ago
mcudev 2ea5d102a8 bootloader, firmware: remove unneeded call to display_orientation
7 years ago
Pavol Rusnak 4002ef2a49
firmware, unix: return cpython compatibility (needed for __class__ and __dict__)
7 years ago
Pavol Rusnak ec6c3c2cdc
unix, firmware: more cleanup
7 years ago
Pavol Rusnak d4893add54
firmware, unix: turn off some modules
7 years ago
Jan Pochyla 5bd39c70b0 storage: fix change_pin and small details
7 years ago
Jan Pochyla cf14717d43 unix: add shutdown()
7 years ago
Pavol Rusnak 879a3e85bd
trezorhal: reorder stuff in common.{c,h}; remove unnecessary externs for functions
7 years ago
Pavol Rusnak d9574bf131
trezorhal: enable BOR level 3, PVD level 5, turn off display in PVD handler
7 years ago
Pavol Rusnak e4360a7296
bootloader: change upgrade criteria to vendor keyset comparison
7 years ago
Jan Pochyla 237740de9c storage: implement change_pin
7 years ago
Jan Pochyla 5e643e9195 modtrezorconfig: fix has_pin
7 years ago
Jan Pochyla df77e74988 storage: fix unlock
7 years ago
Pavol Rusnak 3636a5f1b1
bootloader/vendorheader: vtrust is bitmap not scalar
7 years ago
Pavol Rusnak 5444410e04
unix: use return value from fread properly
7 years ago
mcudev 430900ea2c boardloader: ensure check_sdcard fails when read fails
7 years ago
Pavol Rusnak 2e3b8336c2
unix: fix unused-result warning
7 years ago
Pavol Rusnak ee7d260d2f
trezorhal: use const where possible for flash
7 years ago
Pavol Rusnak 30363305f4
modtrezorconfig: use secbool, not bool
7 years ago
Jan Pochyla 1f6cc70480 flash: remove flash_set_option_bytes
7 years ago
Jan Pochyla 0376ff7f48 storage, norcow: use secbool
7 years ago
Jan Pochyla 662cfc1b2c unix/flash: use secbool
7 years ago
Jan Pochyla 418f035811 storage: add has_pin and change_pin
7 years ago
Jan Pochyla c2ec40bebf flash: flash_init returns bool
7 years ago
Jan Pochyla 353883e0f3 storage: rename constant
7 years ago
Jan Pochyla b6ba95625c norcow: port on top of flash.c, remove config
7 years ago
Jan Pochyla 27bfcfe1af norcow: import into tree
7 years ago
Jan Pochyla d4443a4f7f unix/flash: start with 0xff
7 years ago
Jan Pochyla 12708b4987 unix/flash: default FLASH_FILE
7 years ago
Jan Pochyla c78babdc12 flash: add flash_get_address
7 years ago
Jan Pochyla f07b4dda0b modtrezorconfig: extract pin & unlocking to storage.c
7 years ago
Jan Pochyla fdc2f6a39d modtrezorconfig: use new flash API
7 years ago
Jan Pochyla 543e8c5007 flash: add unix/flash.c
7 years ago
Jan Pochyla 4cabe40220 storage: pin checking in c proof of concept
7 years ago
mcudev 2ebd2b1b6b jump_to: clear out before the next stage NMI exception handler can run
7 years ago
mcudev ffc16a98b5 rng: header cleanup, loop codestyle
7 years ago
mcudev cc9aa8c197 cleanup: do not use reserved identifiers for header guards
7 years ago
Pavol Rusnak 77cc62644d
firmware: don't return CYCCNT contents as it is always zero anyway (cycle counter is disabled)
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
mcudev 15bdc59b46 touch: reset touch panel
7 years ago
mcudev d9a64fbb6a touch: app note related updates and exit loop upon detection
7 years ago
mcudev 2ae1c99b06 touch: address simplification
7 years ago
mcudev 6aeccd5ee1 touch: make i2c_handle static and trivial simplification
7 years ago
mcudev d1ed02fb98 touch: use full 12-bit X and Y values
7 years ago
mcudev edd95d9b65 secbool: add unsigned literal suffixes
7 years ago
mcudev 7e01a733a3 shutdown: reorder operations
7 years ago