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
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
87b7d0649b
boot: use cosi to compute aggregated key and use it
2017-04-02 02:55:51 +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
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
722e71eb31
modtrezorconfig: use uint16_t for data length
2017-03-30 21:42:50 +02:00
Pavol Rusnak
32cf4f36d2
modtrezorconfig: norcow works for stm
2017-03-30 20:55:18 +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
c8bff40ffb
trezorhal: use more readable syntax in memory script
2017-03-29 15:54:21 +02:00
Pavol Rusnak
2725792528
bootloader: erase all sectors except first two
2017-03-29 02:43:41 +02:00
Pavol Rusnak
41af56222a
modtrezorcrypto: update trezor-crypto
2017-03-29 00:22:52 +02:00
Pavol Rusnak
7dfc863fe7
modtrezorui: use const for bitmap font
2017-03-28 21:09:21 +02:00
Pavol Rusnak
4d4a351ba6
modtrezorcrypto: update to new trezor-crypto
2017-03-28 20:28:51 +02:00
Pavol Rusnak
b30f3b0946
build: use -Os for debug builds and use them by default
2017-03-28 15:21:09 +02:00
Pavol Rusnak
f6747b9556
modtrezorui: update qrcode to draw 1px border
2017-03-28 14:25:16 +02:00
Pavol Rusnak
6861e68f21
update to current micropython master
2017-03-26 23:11:57 +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
420516c5de
modtrezorcrypto: use BLOCK_LENGTH and DIGEST_LENGTH across all hash functions
2017-03-20 21:07:20 +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
7edc688180
modtrezorui: extract fsmc constants
2017-03-17 17:43:22 +01:00
Pavol Rusnak
4b301cd288
modtrezorui: rename variables
2017-03-17 15:27:11 +01:00
Pavol Rusnak
135294b5e8
modtrezorui: more cleanup
2017-03-17 14:14:47 +01:00
Pavol Rusnak
a753bb05e2
unix: fix NOUI build
2017-03-16 19:40:20 +01:00
Pavol Rusnak
4a7540f5b9
modtrezormsg: untagle touch
2017-03-16 19:14:30 +01:00
Pavol Rusnak
6c982a64d1
firmware: move modutime to firmware
2017-03-13 20:06:03 +01:00
Pavol Rusnak
715d25a93b
trezorhal: add flash_set_option_bytes function
2017-03-13 19:38:34 +01:00
Jan Pochyla
ab1888fe15
firmware: fix crc32 in ubinascii
2017-03-13 13:22:35 +01:00
Pavol Rusnak
0cb0b11723
trezorhal: minor changes in sdcard
2017-03-13 11:50:41 +01:00
Pavol Rusnak
f6f3765a3e
trezorhal: enable write to sdcard
2017-03-13 11:50:41 +01:00
Pavol Rusnak
2295cd5bf3
modtrezorui: cleanup
2017-03-08 17:56:56 +01:00
Jan Pochyla
1db09f88a1
firmware/main.c: simplify
2017-03-08 14:02:55 +01:00
Jan Pochyla
9fd5f05f1f
firmware: simplify, move things to mphalport.c
2017-03-08 13:43:24 +01:00
Jan Pochyla
e793870082
trezorhal: remove USE_DEVICE_MODE
2017-03-07 19:06:38 +01:00
Pavol Rusnak
433bc8138b
unix: fix unix build
2017-03-07 17:51:21 +01:00
Jan Pochyla
462f6bab7f
trezorhal: move irq handlers to subsystems
2017-03-07 17:33:39 +01:00
Pavol Rusnak
935e9b2912
trezorhal: fix i2c, more reorg
2017-03-07 15:52:19 +01:00
Pavol Rusnak
3f0026912c
i2c: reorganize sources
2017-03-07 15:11:21 +01:00
Jan Pochyla
929f708e5c
trezorhal: split to subsystems
2017-03-07 14:50:09 +01:00
Pavol Rusnak
2cde9511da
micropython: update submodule; fix build
2017-03-07 00:56:35 +01:00
Pavol Rusnak
b28fd6327f
bootloader: introduce keymask
2017-03-06 18:06:52 +01:00
Jan Pochyla
78d82386d1
trezorhal: adjust to new structure
2017-03-06 17:33:48 +01:00
Pavol Rusnak
28e62c6270
extmod: replace mp_obj_tuple_get and mp_obj_list_get calls with mp_obj_get_array
2017-03-05 17:45:41 +01:00
Pavol Rusnak
9c3c19959b
modtrezorcrypto: add Blake2b
2017-02-28 18:47:27 +01:00
Pavol Rusnak
10b687c318
reorganization (wip)
2017-02-24 13:19:00 +01:00
Jan Pochyla
110dca7711
modtrezorui: fix Font_Bitmap extern
2017-02-22 17:27:53 +01:00
Pavol Rusnak
c50943bbf0
modtrezormsg: cleanup touch methods
2017-02-22 15:19:25 +01:00
Pavol Rusnak
f443407fae
modtrezorui: add extern to includes
2017-02-22 14:26:30 +01:00
Pavol Rusnak
affb893cb1
modtrezormsg: don't use delay_us_fast for stmhal
2017-02-21 16:17:10 +01:00
Pavol Rusnak
b8af656e0a
bootloader: wip
2017-02-19 17:48:28 +01:00
Pavol Rusnak
89ec08eec0
bootloader: allow stage 1 to rewrite whole flash
2017-02-17 17:54:40 +01:00
Pavol Rusnak
d8efa32091
bootloader: more wip
2017-02-17 15:49:43 +01:00
Pavol Rusnak
e8adff4683
modtrzezormsg: extract touch.h
2017-02-16 14:12:32 +01:00
Pavol Rusnak
8c296099f8
bootloader: wip
2017-02-16 13:48:28 +01:00
Pavol Rusnak
69f1569761
modtrezorui: fix last commit
2017-02-15 18:31:21 +01:00
Pavol Rusnak
d0c59fdf3d
rework display_btext into display_print
2017-02-15 15:40:50 +01:00
Pavol Rusnak
1d5a6dd1b4
modtrezorui: add display_btext
2017-02-14 18:05:39 +01:00
Pavol Rusnak
3d89dc8085
bootloader: almost complete stage 1
2017-02-11 16:47:36 +01:00
Pavol Rusnak
5bdfbb3469
bootloader: work in progress
2017-02-09 20:04:21 +01:00
Pavol Rusnak
2d7c6b0c34
bootloader: cleanup, more documentation, added scripts for checking
2017-02-08 19:43:47 +01:00
Jan Pochyla
deb09c2454
modtrezorcrypto: add functions for working with wordlist
2017-02-08 16:21:32 +01:00
Pavol Rusnak
3b252b2b63
move ui-mockup to assets
2017-02-06 16:28:49 +01:00
Pavol Rusnak
029a7c35d8
reorganize code
2017-02-06 15:40:25 +01:00