Go to file
Pavol Rusnak e69ef2e75a
coins: include testnet coins just in debug builds
+ add more ethereum tokens
2017-08-13 21:15:34 +02:00
bootloader setup: move stack protector variable to setup.h 2017-07-30 21:56:30 +02:00
demo setup: move stack protector variable to setup.h 2017-07-30 21:56:30 +02:00
fastflash
firmware coins: include testnet coins just in debug builds 2017-08-13 21:15:34 +02:00
gen
gitian
vendor coins: include testnet coins just in debug builds 2017-08-13 21:15:34 +02:00
.gitignore
.gitmodules
.travis.yml
COPYING
Dockerfile build: switch from ubuntu to debian in docker build 2017-07-31 10:06:42 +02:00
Makefile
Makefile.include
README.md
build-bootloader.sh docker: support build on SELinux enabled distros 2017-08-10 16:58:52 +02:00
build-firmware.sh docker: support build on SELinux enabled distros 2017-08-10 16:58:52 +02:00
buttons.c
buttons.h
layout.c
layout.h
memory.c
memory.h
memory.ld
memory_app_0.0.0.ld
memory_app_1.0.0.ld
memory_app_2.0.0.ld
memory_app_fastflash.ld
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
rng.h
serialno.c
serialno.h
setup.c setup: enable Clock Security System interrupt 2017-07-30 21:40:07 +02:00
setup.h setup: move stack protector variable to setup.h 2017-07-30 21:56:30 +02:00
timer.c
timer.h
util.c
util.h

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.