Created
July 23, 2021 13:12
-
-
Save tecnovert/56dff977ea94aab7e7da7e941c119b7e to your computer and use it in GitHub Desktop.
Compile Trezor One firmware for Particl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/tecnovert/trezor-firmware.git particl_trezor-firmware | |
cat << EOF > Dockerfile | |
from ubuntu:focal | |
RUN apt-get update && \ | |
apt-get upgrade -y && \ | |
apt-get install -y python-is-python3 python3-pip gcc-arm-none-eabi build-essential curl git libprotobuf-dev protobuf-compiler libusb-1.0-0-dev && \ | |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python && \ | |
pip install poetry | |
COPY ./particl_trezor-firmware /particl_trezor-firmware | |
RUN cd /particl_trezor-firmware && \ | |
cd python && \ | |
make install && \ | |
cd /particl_trezor-firmware/legacy && \ | |
poetry install && \ | |
poetry run ./script/setup | |
WORKDIR /particl_trezor-firmware/legacy | |
EOF | |
docker build -t particl_trezor . | |
docker run -it --privileged -v /dev/bus/usb:/dev/bus/usb particl_trezor /bin/bash | |
See https://github.com/tecnovert/trezor-firmware/blob/master/docs/legacy/index.md#local-development-build | |
export EMULATOR=0 DEBUG_LINK=0 MEMORY_PROTECT=0 | |
poetry run ./script/setup | |
poetry run ./script/cibuild | |
Connect a Trezor One in bootloader mode: | |
Hold both buttons on the device and connect the usb cable. | |
trezorctl firmware-update -f firmware/trezor.bin | |
If built with DEBUG_LINK=1: | |
trezorctl device load -m "..." | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment