Pavol Rusnak
f345de1a4f
bootloader: protobuf - add pb_add_bytes
2017-05-02 19:49:56 +02:00
Pavol Rusnak
6fd52dd36e
trezorhal: use attribute format for printf functions
2017-05-02 17:35:39 +02:00
Pavol Rusnak
367fe8952c
modtrezorui: introduce display_printf, use where possible
2017-04-28 19:55:05 +02:00
Pavol Rusnak
19cd626fc9
modtrezorui: introduce RGB16 and COLOR_x macros, use them where possible
2017-04-28 17:51:49 +02:00
Pavol Rusnak
97f95f44c0
bootloader: disable usage of mono/normal fonts
2017-04-28 15:54:54 +02:00
Pavol Rusnak
8b0336862f
make __fatal_error more useful, add make sizecheck target
2017-04-28 15:39:22 +02:00
Pavol Rusnak
44b32aa4a6
bootloader: process upload message WIP
2017-04-27 19:18:57 +02:00
Pavol Rusnak
3250967d62
bootloader: refactor pb_parse_header to protobuf
2017-04-27 15:32:25 +02:00
Pavol Rusnak
8a9e31382e
bootloader: add fake processing of FirmwareUpload messages
2017-04-16 20:58:58 +02:00
Pavol Rusnak
b91d8da421
bootloader: more protobuf cleanup
2017-04-16 17:37:39 +02:00
Pavol Rusnak
fffe8abd02
bootloader: rework message creation
2017-04-16 14:16:40 +02:00
Pavol Rusnak
00f566c434
bootloader: start working on USB processing
2017-04-12 18:31:23 +02:00
Pavol Rusnak
80d8ab7825
bootloader/firmware: update usb strings
2017-04-12 15:20:09 +02:00
Pavol Rusnak
0c060b6d4a
rename loader to bootloader
2017-04-10 19:24:21 +02:00
Pavol Rusnak
0633506166
rename bootloader to boardloader
2017-04-10 19:11:44 +02:00
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