Pavol Rusnak
435ac7081a
loader: add usb
2017-04-06 19:06:05 +02:00
Jan Pochyla
38b99b306a
trezorhal: add cdc vcp tx
...
TODO: rx support
TODO: buffering
TODO: cleanup
2017-04-06 19:06:05 +02:00
Jan Pochyla
e87d0d3905
trezorhal: refactor error checks
2017-04-06 19:06:05 +02:00
Jan Pochyla
cb497eec0b
trezorhal: error checks, fix potential bug in usb_hid_class_data_out
2017-04-06 19:06:05 +02:00
Pavol Rusnak
9fcd21922f
trezorhal: use UNCONST macro in usb stack
2017-04-06 19:06:05 +02:00
Jan Pochyla
a78221fd22
trezorhal: fix IN endpoint detection
2017-04-06 19:06:05 +02:00
Jan Pochyla
33e5ad1ac9
trezorhal: fix setup of next OUT transfer
2017-04-06 19:06:05 +02:00
Jan Pochyla
3a4cbacbff
trezorhal: fix missing rx_buffer
2017-04-06 19:06:05 +02:00
Jan Pochyla
c258bfdd90
trezorhal: fix buffer truncation in usb_hid_read
2017-04-06 19:06:05 +02:00
Pavol Rusnak
8eb5cbbe13
trezorhal: add stubs for vcp interface
2017-04-06 19:06:05 +02:00
Pavol Rusnak
2c03f97ca9
trezorhal: extract usb hid stuff into usb_hid-defs.h and usb_hid-impl.h
2017-04-06 19:06:05 +02:00
Pavol Rusnak
6b07961cf6
trezorhal: set iface.type
2017-04-06 19:06:05 +02:00
Jan Pochyla
56b1d69796
trezorhal/usb: now compiles
2017-04-06 19:06:05 +02:00
Jan Pochyla
466285a21c
trezorhal: WIP usb rewrite
2017-04-06 19:06:05 +02:00
Pavol Rusnak
17ff61459d
tools: add pretty format to sigmask field
2017-04-06 19:02:09 +02:00
Jan Pochyla
2abc29f70d
unix: mp_uint_t -> size_t
2017-04-06 18:37:36 +02:00
Jan Pochyla
9f985dba46
extmod: use size_t for mp_obj_get_array and mp_obj_tuple_get
2017-04-06 18:36:30 +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
364bcedb04
tools: small formatting change to binctl
2017-04-06 16:58:16 +02:00
Peter Jensen
76705dde5b
trezor.ui: change failure pin msg
2017-04-06 14:16:48 +02:00
Pavol Rusnak
35e404bd38
tools: add fake signing to binctl, add make sign target
2017-04-05 19:33:50 +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
3532b266ce
modtrezorconfig: readd norcow as a submodule
2017-04-05 02:23:48 +02:00
Pavol Rusnak
0a7997f798
modtrezorcrypto: add cosi cosigning scheme to ed25519 class
2017-04-03 22:28:54 +02:00
Pavol Rusnak
eef147d810
modtrezorcrypto: add crypto.rfc6979 class
2017-04-03 21:29:52 +02:00
Pavol Rusnak
f92e8b6e4b
tools: add header to ed25519raw.py, fix whitespace in keytool
2017-04-02 23:04:08 +02:00
Jochen Hoenicke
99915f1a63
Added tool to test cooperative signing
2017-04-02 17:27:36 +02:00
Pavol Rusnak
87b7d0649b
boot: use cosi to compute aggregated key and use it
2017-04-02 02:55:51 +02:00
Pavol Rusnak
71ea884ad8
build: modify travis to not use sudo
2017-04-01 23:59:47 +02:00
Pavol Rusnak
9257d44b7a
firmware: homescreen shows trezor.io/start when storage not initialized
2017-04-01 23:33:28 +02:00
Pavol Rusnak
1eff07f84d
build: don't convert from png in build_vendorheader, remove vendorheader.bin from vcs
2017-04-01 23:16:25 +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
Pavol Rusnak
7cb7a90d27
build: include vendorheader.bin in source tree
2017-04-01 20:21:02 +02:00
Pavol Rusnak
1f07f310b3
loader: show vendor image and vendor string from vendor header
2017-04-01 20:19:35 +02:00
Pavol Rusnak
b72bc08172
loader: vendor image is now shown in display
2017-04-01 20:19:35 +02:00
Jochen Hoenicke
a5a34696ef
Travis: corrected package for python3
2017-04-01 19:59:51 +02:00
Pavol Rusnak
bbf55bcf2a
loader: handle vendor header
2017-04-01 19:24:41 +02:00
Pavol Rusnak
6187a8a0c1
build: refactor build_vendorheader
2017-04-01 18:28: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
a440f3d322
trezorhal: update linker scripts
2017-04-01 12:48:15 +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
b5ff140256
trezorhal: fix alignment in headers to 512 bytes
2017-03-31 23:54:59 +02:00
Pavol Rusnak
f13c122561
rebase micropython, min_time -> peektime
2017-03-31 11:30:31 +02:00
Pavol Rusnak
dd69929ce1
tools: rename firmwarectl to binctl, minor reformat
2017-03-30 22:58:00 +02:00