1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-16 19:38:09 +00:00
Commit Graph

106 Commits

Author SHA1 Message Date
Pavol Rusnak
964a622bb5
bootloader: fix typo 2019-02-24 17:42:01 +01:00
Pavol Rusnak
222c9ea46c
bootloader: compatibility with old bootloaders 2019-02-24 14:01:33 +01:00
Pavol Rusnak
7baa8c29fc
bootloader: move timer_init to jump_to_firmware 2019-02-24 12:24:40 +01:00
Pavol Rusnak
806f943116
bootloader: require only left button to start the bootloader 2019-02-22 15:47:34 +01:00
Pavol Rusnak
400ac96873
bootloader: refactor to save space 2019-02-21 17:12:38 +01:00
Pavol Rusnak
07231d936e
introduce new memory layout
firmware header is now stored with code, not within the storage sectors
2019-02-21 15:08:27 +01:00
Pavol Rusnak
22f37e81a3
bootloader: enable MPU, introduce delays to USB stack 2019-02-21 09:06:55 +01:00
Pavol Rusnak
c609d10c3f
util: readprotobufint uses const argument 2019-02-10 13:22:08 +01:00
Pavol Rusnak
0ab3eee37d
bootloader: make code smaller by changing the send_msg logic 2019-02-10 13:08:20 +01:00
Pavol Rusnak
98ec2f096c
bootloader: small changes to ui, replace vendor string 2019-01-27 15:06:05 +01:00
Pavol Rusnak
50e0ddb6f8
bootloader: update changelog 2019-01-24 14:40:14 +01:00
Pavol Rusnak
66a8d18348
bootloader: remove obsoleted self-test 2019-01-23 16:49:04 +01:00
Pavol Rusnak
4d502bb5de
bump versions 2018-12-19 17:45:08 +01:00
Pavol Rusnak
2b40fdcdd1
bootloader: use fixed serial number (instead of empty one) 2018-12-19 17:42:33 +01:00
Pavol Rusnak
1d63c7edc2
bootloader: convert firmware_sign.py to python3 2018-10-30 18:13:11 +01:00
Pavol Rusnak
fe00995991
use env where possible 2018-09-30 15:40:45 +02:00
Pavol Rusnak
dbc129d290
bump versions to 1.7.0 (firmware) and 1.6.0 (bootloader) 2018-09-04 15:14:33 +02:00
Pavol Rusnak
de96efdb1d
usb: change vendor/product id to ones we use for WebUSB 2018-09-04 15:14:33 +02:00
Pavol Rusnak
4da73df57d
re-enable WebUSB
This reverts commit "Revert WinUSB feature"
b20336e82d
2018-09-04 15:14:33 +02:00
Pavol Rusnak
988209ab7d
bootloader: erasing -> preparing 2018-09-03 17:02:03 +02:00
Pavol Rusnak
83ae01e751
bootloader: update ChangeLog 2018-09-03 12:01:42 +02:00
Pavol Rusnak
1af6f44e34
bootloader: bump version to 1.5.1 2018-08-27 17:42:02 +02:00
Pavol Rusnak
bff45ecfff
docs: update changelogs 2018-06-23 13:25:18 +02:00
mcudev
56ff88a08f update bootloader padding/alignment and integrate build process for bootloader and firmware 2018-04-10 14:19:27 +02:00
Pavol Rusnak
5633207a43
bump bootloader version to 1.5.0, firmware version to 1.7.0 2018-04-04 15:04:46 +02:00
Jochen Hoenicke
7fc58eb5db
bootloader: signatures_ok must work without magic
signatures_ok is called before the magic is written to the flash
to determine whether the metadata should be written back.
2018-03-29 01:30:40 +02:00
Jochen Hoenicke
9f50f09421
Init timer interrupt for unsigned firmware 2018-03-29 01:30:40 +02:00
Jochen Hoenicke
c09590b54d Cleaner flash handling using FLASH_PTR
Use `FLASH_PTR` macro to convert a flash address to a const pointer.
For real hardware it is just a cast, for emulator we subtract the
`FLASH_ORIGIN` and use it as index into the memory mapped flash file.

Make write access to flash with volatile pointers

Also use FLASH_PTR in DebugMemory* for now.  This allows for reading and
writing the flash in the emulator or just crash it by reading outside
the flash...
2018-03-29 01:16:46 +02:00
Jochen Hoenicke
c4e1c5953e Fix shift overflow
Avoid undefined behavior by casting uint8_t to uint32_t before shifting
by 24 bits.
2018-03-27 15:00:25 +02:00
Pavol Rusnak
ceced152a8
docs: update changelogs 2018-03-21 12:29:38 +01:00
Pavol Rusnak
95dd254094
util: use shutdown from trezor-core instead of system_halt 2018-03-21 12:18:36 +01:00
Pavol Rusnak
9588e8f273
update bootloader to 1.4.0 via firmware, run unsigned firmware in unprivileged mode 2018-03-20 15:44:20 +01:00
Pavol Rusnak
dbe444029a
bootloader: guard signatures_ok calls with firmware_present (or !brand_new_firmware) 2018-03-15 04:15:41 +01:00
Pavol Rusnak
816b4e0f72
bootloader: process WipeDevice 2018-03-15 03:15:08 +01:00
Pavol Rusnak
b933e292db
bootloader: fix signatures_ok usage in usb.c after refactoring 2018-03-15 03:03:05 +01:00
Pavol Rusnak
b20336e82d
Revert WinUSB feature
This reverts the following range of commits:
68168393b9ea61328f4bb43bc3059ab32c4be2e9..ab76828e16b552c82f468e5d89f1af0645258995

Revert "update usb descriptors"
This reverts commit ab76828e16.

Revert "trezorhal: reply with winusb guid just for the main interface (0)"
This reverts commit 6acfc5d1b3.

Revert "winusb: fix WINUSB_EXTRA_STRING"
This reverts commit 966d8cb4ce.

Revert "winusb: cleanup DeviceInterfaceGUIDs usage"
This reverts commit 56c5a46095.

Revert "make winusb_string_descriptor const"
This reverts commit 132cc4b474.

Revert "webusb: remove unused constants"
This reverts commit 38b4d507bc.

Revert "bootloader: remove debug"
This reverts commit 56d3cbe2e9.

Revert "Bootloader - Switch from HID to WebUSB"
This reverts commit a22abfe90b.

Revert "Switch from HID to WebUSB"
This reverts commit cb067bd14c.

Revert "Add WinUSB, WebUSB, USB2.1 to build"
This reverts commit 05e218bcb8.

Revert "Add WebUSB descriptors"
This reverts commit a062127cef.

Revert "Add WinUSB (WebUSB preparation)"
This reverts commit e6981e85cd.
2018-03-14 00:37:08 +01:00
Pavol Rusnak
5ad53e99c3
bootloader: bump version to 1.4.0 2018-03-13 15:42:31 +01:00
Pavol Rusnak
4af78f06a3
bootloader: refactor signatures_ok return value 2018-03-13 15:41:42 +01:00
Pavol Rusnak
e0b5526f27
bootloader: react to GetFeatures too 2018-03-07 14:16:24 +01:00
Pavol Rusnak
ab76828e16
update usb descriptors 2018-02-20 19:13:39 +01:00
Pavol Rusnak
56d3cbe2e9
bootloader: remove debug 2018-02-20 19:13:39 +01:00
Karel Bilek
a22abfe90b
Bootloader - Switch from HID to WebUSB 2018-02-20 19:13:39 +01:00
Jochen Hoenicke
83a69a0334
Added fixed-width font and multi-font support 2018-02-20 18:22:47 +01:00
Pavol Rusnak
bd660655ee
introduce and use memzero instead of explicit_bzero 2018-01-18 15:21:48 +01:00
Pavol Rusnak
4a2d68acb9
use explicit_bzero where possible; update trezor-crypto 2018-01-16 19:49:47 +01:00
Pavol Rusnak
eb0574bda7
bootloader: don't restore storage from unofficial firmware 2017-12-17 03:19:49 +01:00
Pavol Rusnak
41901a8056 firmware: rework protectChangePin
bootloader: wait for flash operation to finish
2017-12-12 12:51:08 +01:00
Jochen Hoenicke
2387f71813 bootloader: Check that erasing flash worked 2017-12-12 12:51:08 +01:00
Jochen Hoenicke
b4a61d60c3 bootloader: Delay flashing firmware magic.
Only flash firmware magic at the end.  Also simplified the code a bit.
2017-12-12 12:51:08 +01:00
Pavol Rusnak
bc7c66aa76
add Features.model field (set to "1") 2017-12-04 22:30:11 +01:00