Go to file
Pavol Rusnak 0760ff0468
setup: move stack smashing protection code to setup.c
2017-07-30 21:40:07 +02:00
bootloader setup: move stack smashing protection code to setup.c 2017-07-30 21:40:07 +02:00
demo fix usage of RNG before setup (#150/#151) 2017-02-17 13:19:05 +01:00
fastflash move -Os flag to Makefiles of bootloader and fastflash 2017-07-04 20:21:10 +02:00
firmware setup: move stack smashing protection code to setup.c 2017-07-30 21:40:07 +02:00
gen gen: add Makefile for strwidth 2017-07-17 12:25:07 +02:00
gitian
vendor vendor: Update trezor-crypto 2017-07-27 18:11:26 +02:00
.gitignore build: rework docker build scripts, update readme 2017-07-24 21:45:01 +02:00
.gitmodules
.travis.yml move -Os flag to Makefiles of bootloader and fastflash 2017-07-04 20:21:10 +02:00
COPYING
Dockerfile
Makefile timer: Use Cortex-M3 SysTick timers 2016-11-17 02:07:46 +01:00
Makefile.include fix hangs due to stale rng status (#195) 2017-07-19 11:54:26 +02:00
README.md build: rework docker build scripts, update readme 2017-07-24 21:45:01 +02:00
build-bootloader.sh build: rework docker build scripts, update readme 2017-07-24 21:45:01 +02:00
build-firmware.sh build: rework docker build scripts, update readme 2017-07-24 21:45:01 +02:00
buttons.c
buttons.h
layout.c
layout.h
memory.c add ability for developers to easily avoid locking their flash memory sectors 2017-06-30 15:47:16 +02:00
memory.h
memory.ld
memory_app_0.0.0.ld
memory_app_1.0.0.ld
memory_app_2.0.0.ld bootloader: add cpu test 2017-07-04 19:34:25 +02:00
memory_app_fastflash.ld bootloader: add cpu test 2017-07-04 19:34:25 +02:00
oled.c Clean-up of oled code. (#197) 2017-07-25 14:24:45 +02:00
oled.h Clean-up of oled code. (#197) 2017-07-25 14:24:45 +02:00
rng.c use C99 for loop where possible 2017-07-23 22:20:51 +02:00
rng.h
serialno.c fix unaligned access in serialno; update trezor-crypto 2016-08-29 22:37:27 +02:00
serialno.h
setup.c setup: move stack smashing protection code to setup.c 2017-07-30 21:40:07 +02:00
setup.h
timer.c util: Add load_vector_table 2017-07-03 18:35:42 +02:00
timer.h util: Add load_vector_table 2017-07-03 18:35:42 +02:00
util.c use C99 for loop where possible 2017-07-23 22:20:51 +02:00
util.h util: Add load_vector_table 2017-07-03 18:35:42 +02:00

README.md

TREZOR Firmware

Build Status gitter

https://trezor.io/

How to build TREZOR firmware?

  1. Install Docker
  2. git clone https://github.com/trezor/trezor-mcu.git
  3. cd trezor-mcu
  4. ./build-firmware.sh TAG (where TAG is v1.5.0 for example, if left blank the script builds latest commit in master branch)

This creates file build/trezor-TAG.bin and prints its fingerprint and size at the end of the build log.

How to build TREZOR bootloader?

  1. Install Docker
  2. git clone https://github.com/trezor/trezor-mcu.git
  3. cd trezor-mcu
  4. ./build-bootloader.sh TAG (where TAG is bl1.3.2 for example, if left blank the script builds latest commit in master branch)

This creates file build/bootloader-TAG.bin and prints its fingerprint and size at the end of the build log.

How to get fingerprint of firmware signed and distributed by SatoshiLabs?

  1. Pick version of firmware binary listed on https://wallet.trezor.io/data/firmware/releases.json
  2. Download it: wget -O trezor.signed.bin https://wallet.trezor.io/data/firmware/trezor-1.3.6.bin
  3. Compute fingerprint: tail -c +257 trezor.signed.bin | sha256sum

Step 3 should produce the same sha256 fingerprint like your local build (for the same version tag). Firmware has a special header (of length 256 bytes) holding signatures themselves, which must be avoided while calculating the fingerprint, that's why tail command has to be used.