Pavol Rusnak
435ac7081a
loader: add usb
2017-04-06 19:06:05 +02:00
Pavol Rusnak
cb8e957379
bootloader/loader: refactor PRINT(LN) macros to common.h
2017-04-06 17:25:14 +02:00
Pavol Rusnak
4f9f351a16
bootloader/loader: print version to log
2017-04-06 17:21:03 +02:00
Pavol Rusnak
fdef0575b1
loader: show firmware version in loader, remove image_options.h
2017-04-05 17:41:10 +02:00
Pavol Rusnak
a4a939058b
bootloader/loader: reorganize checking code
2017-04-05 16:27:55 +02:00
Pavol Rusnak
fad4b80af8
trezorhal: don't parse (image|vendor) headers twice, don't use legacy stm32 names
2017-04-05 15:10:33 +02:00
Pavol Rusnak
5c227a4a47
loader: compute pubkey rather than use precomputed one, prepare for vendor keys
2017-04-01 22:30:10 +02:00
Jochen Hoenicke
e0fd890661
Implemented vendor header.
...
Header is generated with
./tools/build_vendorheader 'key1,key2,key3' 2 1.1 SatoshiLabs assets/satoshilabs.png micropython/firmware/vendorheader.bin
where
- keyN is a 64 character hex string encoding the public key
- 2 encodes 2/3 key scheme
- 1.1 is the version number (major, minor)
- SatoshiLabs is the vendor name
- satoshilabs.png is the vendor image
Updated the firmware compilation that it adds vendor header and updated loader
that it handles vendor header to be present.
2017-04-01 17:01:59 +02:00
Pavol Rusnak
300daa4513
bootloader: lock flash/turn off sdcard when header invalid
2017-04-01 13:53:53 +02:00
Pavol Rusnak
74db11cbfc
bootloader/loader: rename crypto.c/h to image.c/h, refactor
2017-04-01 13:41:07 +02:00
Pavol Rusnak
435e96e1b3
build: refactor binctl and firmware/loader image stuff
2017-04-01 02:53:52 +02:00
Jochen Hoenicke
e37619899e
Put loader/firmware header into image ( #5 )
2017-04-01 00:22:24 +02:00
Pavol Rusnak
5e69cbe69f
trezorhal: chain loading works
2017-03-30 16:50:39 +02:00
Pavol Rusnak
d3ec688d6f
trezorhal: don't set SCB->VTOR in SystemInit
2017-03-30 16:47:02 +02:00
Pavol Rusnak
efb722cc97
trezorhal: split memory files, adapt bootloader and loader
2017-03-29 22:00:17 +02:00
Pavol Rusnak
8d3020bc62
trezorhal: implement jump_to function
2017-03-29 20:50:45 +02:00
Pavol Rusnak
2725792528
bootloader: erase all sectors except first two
2017-03-29 02:43:41 +02:00
Pavol Rusnak
a9d16aa7fa
firmware: extract periph_init into common.c
2017-03-23 16:22:58 +01:00
Pavol Rusnak
e313234fe3
bootloader/loader: use blake2s instead of sha256 for digests
2017-03-23 15:54:34 +01:00
Pavol Rusnak
1e80e82bac
bootloader: change stage2 to loader
2017-03-21 16:06:54 +01:00
Pavol Rusnak
9e5d61752c
trezorhal: use display_print instead of mp_hal_stdout in our version of stm32_it.c
2017-03-21 16:06:54 +01:00
Pavol Rusnak
416676120b
extract common stuff into trezorhal/common.[ch]
2017-03-21 02:09:17 +01:00
Pavol Rusnak
e872f54896
modtrezorui: split display_print into display_print and display_print_out
2017-03-20 21:51:08 +01:00
Pavol Rusnak
cbaca604f3
bootloader+loader: rework build, make clear what is bootloader and what is loader in docu
2017-03-20 16:00:10 +01:00
Pavol Rusnak
b141e6b1e3
loader: add skeleton
2017-03-20 15:41:21 +01:00
Pavol Rusnak
603d980d22
bootloader: enable build again
2017-03-18 12:06:28 +01:00
Pavol Rusnak
935e9b2912
trezorhal: fix i2c, more reorg
2017-03-07 15:52:19 +01:00
Pavol Rusnak
b28fd6327f
bootloader: introduce keymask
2017-03-06 18:06:52 +01:00
Pavol Rusnak
10b687c318
reorganization (wip)
2017-02-24 13:19:00 +01:00