trezor / python-trezor

:snake: Don't use this repo, use the new monorepo instead:
https://github.com/trezor/trezor-firmware
GNU Lesser General Public License v3.0
201 stars 194 forks source link

Load device command does not work with Trezor T #278

Closed yura-pakhuchiy closed 6 years ago

yura-pakhuchiy commented 6 years ago

trezorctl load_device does not work with T2. Tested with both physical device and emulator. Is there any alternative way (except actually entering seed using device's screen)?

matejcik commented 6 years ago

no. this only works with debug mode, there is no plan to have this in production firmware

yura-pakhuchiy commented 6 years ago

Is it possible to start emulator in debug mode?

yura-pakhuchiy commented 6 years ago

Found answer myself, documenting here in case somebody will be looking for this as well: Create file emu.config in the root of the sources and add line OPTLEVEL=0 there.

matejcik commented 6 years ago

this works for an older version of TT firmware. In current git master, you need to set PYOPT=0.

You can also run the emulator with this manually:

OPTLEVEL=0 ./emu.sh
PYOPT=0 ./emu.sh