Saturday, May 9, 2020

PiTrezor : A DIY bitcoin hardware wallet based on trezor and raspberry pi zero

Hardware wallet are one of the most secure way to handle your cryptocurrency like bitcoin.

The trezor is a hardware bitcoin and other cryptocurrency wallet made by satoshilabs  used to secure online transactions. The security reside in the fact that the private key used to sign a transaction never leave the device.

The hardware wallet device connect via USB to a host computer. Any transaction that would imply sending money to someone must be signed to be considered valid by the cryptocurrency network, like the bitcoin network. To perform that, the transaction is sent to the hardware wallet device via USB. The user can confirm its authenticity on the device display and press a button on the device to sign it with the internal private key. The hardware wallet device will send back the signed transaction to the computer to be broadcasted to the internet. In this process, the private key is never accessed by the computer.

On the other hand, the raspberry pi zero is a low cost and small but powerful computer. You can buy one for about 5$. It is used on numerous projects by ton of developers and hobbyists around the world.

In this web page I will show you how to create your own hardware bitcoin wallet based on the original trezor source code and run on it on a raspberry pi zero. This is a fun, low cost, D.I.Y. project for any cryptocurrency enthusiasm!


 refer to update procedure below before reflashing the SD card
  • Update 5 May 2020:
    • Based on trezor firmware 1.9.0
    • md5sum is 24643900cd57477bb81d4495f4f0a667
  • Update 22 November 2019:
    • Based on trezor firmware 1.8.3
    • md5sum is 9eb9fe28f3ccf7a2e3c295e1c30a0c39
  • Updated 26 August 2019 :
    • Based on trezor firmware 1.8.2
    •  md5sum of image is 611c3a68b782799f7fcbd633d62a2b02


  • Low cost parts
  • Easy to build
  • Use the original trezor code. Only a thin layer is used to adapt the code to the pi zero Linux platform. 
  • All code modifications are open source, like the original trezor code.
  • 100% Compatible with trezor web wallet to perform transactions.
  • Use the hardware random number generator of the raspberry pi for more security.
  • Can be very secure if you use a pass phrase (see security section below)
  • Support small OLED display and/or display via HDMI output.
  • Adafruit OLED bonnet is also supported
  • Adjustable display scale factor on HDMI output
  • Fast boot (around 5 seconds)
  • No trezor shield required 
  • Software is free but donations are accepted!


HDMI Display:

The basic version only needs to connect  two push buttons to the pi zero to act as the 2 input buttons of the device. The pi zero as an HDMI connector that is used for output in this configuration. This is a simple solution to start with.

Only two buttons required!


OLED Display:


Instead of using the HDMI connector, a small OLED display can be attached to the pi zero. In that case, I recommend to use a small plastic box to protect the components and to give a more professional look!

Adafruit Bonnet:

(Picture courtesy of Damian Bevan)

It is also possible to use the Adafruit bonnet (see In that case you just have to install the pins on the pi zero and connect the bonnet!

Quick start guide:

List of required components:

Required components for the PiTrezor

  1. A raspberry pi zero. You don't need the pi zero W, it cost probably a little bit more than the regular pi zero, but it will work anyway. The difference is that pi zero W has wifi and bluetooth but this project don't use it. The network drivers are not loaded by the platform so the W can be considered as secure.
  2. An SD card. The image to write on the SD card is very small (around 50 Megs) so virtually any decent SD card should work. Make sure you have one that is compatible with the pi.
  3. A good micro-usb to usb cable.
  4. A mini HDMI male to HDMI female adapter to verify the output via the HDMI output. You need HDMI cable and a TV or monitor too!
  5. Two push buttons (normally open contact, SPST)
  6. Some wires to solder the buttons to the pi zero
  7. Optionally, an I2C or SPI OLED display. Supported OLED are based on the SH1106 controller or Adafruit controller.
  8. Optionally, a box or enclosure for a more professional look. 
You will also need standard tool like solder iron, pliers, ...

Of course, If you are using the Adafruit bonnet, you don't need separate push buttons or OLED. Refer to Adafruit documentation about how to connect the bonnet to the pi zero.

Step-By-Step instructions:

  1. If you don't have the software called "etcher" already installed in your computer, download it here : . This software is used to write the program image to the SD card.
  2. Download the latest pitrezor SD card image by clicking here and select "save" to save the zip file
  3. Start etcher and follow the instructions. You will need to connect the SD card to your computer to flash the pitrezor image file.
  4. After the card is flashed, put it in the SD card slot in the pi zero.
  5. Connect the HDMI output to a monitor or tv using the cable and adapter.
  6. Connect the USB cable in the USB port near the center of the pi zero, not the one near the corner. Refer to next picture. 
  7. Connect the other end of the USB cable to your computer or a USB power supply. You should see the pi zero boot sequence in the monitor and after 4-5 seconds the trezor logo should appear. Good! That confirms that your pi zero and SD card are working correctly.
  8. At this point you cannot do much, so disconnect the USB cable, HDMI adapter and cable and remove SD card.
  9. If you are using the Adafruit bonnet, it is time to connect it and go straight to the "Configuration" section below. Otherwise, continue reading
  10. Solder the 2 buttons to the pi zero as showed in the following diagram. The left button (called "no") is connected to the pins 30 and 32 (in yellow in the next picture). The right button (called "yes") is connected to the pins 34 and 36 (in red in the picture). This is the default setup but can be tweaked from configuration file.
    connecting the button
  11. Put back the SD card in the pi zero and reconnect the HDMI and USB cable back to your computer.
  12. It should boot again, otherwise that means something went bad during the soldering of the buttons :(
  13. Open a browser on your computer and navigate to
  14. You will be requested to install the trezor bridge if you never did it before. Select your operating system to download the correct bridge software and perform installation. If you plan to use the trezor beta wallet, the bridge installation is optional but you must a recent version of chrome.
  15. If you installed the bridge, close and reopen your browser and go back to
  16. If you don't plan to use the bridge on Linux, don't forget to set the permission accordingly. Refer to setting up chrome on linux
  17. If the bridge is already installed, you should see a message that invites you to connect your trezor. Connect the USB cable of your pi zero.
  18. The browser application should detect the device and invite you to perform the trezor setup.
  19. During the setup you will need the buttons to, at least, go from one seed word to another.
  20. If all is working correctly you can disconnect everything to solder the OLED display. The I2C OLED display need 4 wires to solder and the SPI OLED uses 7 wires. Refer to the next picture to determine how to solder the OLED depending on interface.:
  21. Connect the SD card back to your computer and refer to the configuration section below to correctly configure your OLED model and orientation. Their is only 2 possibles orientations so you can try both and see which one is better for you.
  22. Reconnect everything and retry your device. Now you should see the output on the HDMI connector if connected and also on the OLED at the same time.
  23. If that work, put everything in a box!
  24. Enjoy! And please don't forget to send a donation to continue the support this project update (see below). Any amount is welcome.


You can download the latest pitrezor SD card image by clicking here .You can check the md5sum of the image to make sure it was not altered. The checksum should be 24643900cd57477bb81d4495f4f0a667


If you connect the SD card in your computer you should see a file named "pitrezor.config" in the first partition (boot partition). You can open this file with your favorite text editor. You will be able to change the configuration variables which are:
  • TREZOR_OLED_SCALE : This control the scale factor of the display to apply when using the HDMI output. A scale factor of 1 means the default size of 128x64 pixel. A scale factor of 2 will stretch the image to 256x128 and so on.
  • TREZOR_OLED_TYPE: Specify the type of OLED connected to the pi zero. The file enumerate the different value and their meaning. Select the one that match your OLED display.
  • TREZOR_OLED_FLIP: Set to 0 or 1 to control the image vertically (normal or inverted) This is useful depending how you assemble the OLED in n enclosure.
  • TREZOR_GPIO_YES and TREZOR_GPIO_NO : Specify the GPIO number to use for the yes/no button. If you soldered the buttons like mentionned in the tutorial, you can keep the default values.
When you change a value, keep the line formating as-is with the export statement. Just change the number after the equal sign. If you change something else, this could prevent the pi trezor application to start correctly.

For the Adafruit bonnet, you must change the values to these (courtesy of Damian Bevan):


Is this secure ?

The main difference of this device versus the real trezor device is that the pi zero stores everything on the SD card. The equivalent of the flash memory for the trezor is stored in a file on the first partition. That means that anybody that has your SD card can access your seed words and private key.

However, the wallet supports the usage of a passphrase. The passphrase is a kind of an extra seed word that is not stored on SD card. By using a passphrase, you would prevent a thief that could have your SD card to empty your wallet.

Thus, the recommendation is to always use a passphrase!

Updating from previous pitrezor image

If you are updating your pitrezor to the latest image you will need your seed words with you:

  1. Flash the SD card with the latest image.
  2. Disconnect and reconnect the SD card in your computer
  3. Redo the modification you did previously in the pitrezor.config file.
  4. Remove the SD card of your computer and install it in the pi zero.
  5. Boot your pitrezor as usual.
  6. When you will go to the wallet web site, your pitrezor will be detected as a new device. Select the recover option. You will have to enter all the words of your seed word list.
  7. Don't forget to enable the pass phrase option after if you were using one before. You should!

For developers

The modification to trezor original code are available in this repo:

The platform code is based on yocto to which I added my own layer and some build scripts. The repo is there:

Questions ?

Comments are welcome in the comment section below. You can also reach me at

Scan to send bitcoin donation!

Donation !

A lot of work and effort has been put in this project and still needed to keep it up to date. If you like it, please consider giving a donation. Any amount is welcome!

Bitcoin: 1trezor8MpRmFHcMCLdANpiVoEM9zqe2n


Copyright and Legal Warning

There are inherent dangers in the use of any software available for download on the Internet, and I caution you to make sure that you completely understand the potential risks before downloading any of the software.
The Software and SD card image available on this website are provided "as is" without warranty of any kind, either express or implied. Use at your own risk.
The use of the software and SD card image downloaded on this site is done at your own discretion and risk and with agreement that you will be solely responsible for any damage to your computer system or loss of data that results from such activities. You are solely responsible for adequate protection and backup of the data and equipment used in connection with any of the software, and I will not be liable for any damages that you may suffer in connection with using, modifying or distributing any of this software. No advice or information, whether oral or written, obtained by you from me or from this website shall create any warranty for the software.
I make no warranty that:

  • the software will meet your requirements
  • the software will be uninterrupted, timely, secure or error-free
  • the results that may be obtained from the use of the software will be effective, accurate or reliable
  • the quality of the software will meet your expectations
  • any errors in the software obtained from me will be corrected.
The software, SD card image and its documentation made available on this website:

  • could include technical or other mistakes, inaccuracies or typographical errors. I may make changes to the software or documentation made available on its web site at any time without prior-notice.
  • may be out of date, and I make no commitment to update such materials.
I assume no responsibility for errors or omissions in the software or documentation available from its web site.
In no event shall I be liable to you or any third parties for any special, punitive, incidental, indirect or consequential damages of any kind, or any damages whatsoever, including, without limitation, those resulting from loss of use, data or profits, and on any theory of liability, arising out of or in connection with the use of this software. 

© Yannick Heneault, 2018. Unauthorized use and/or duplication of this material without express and written permission from this blog’s author and owner is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to Yannick Heneault with appropriate and specific direction to the original content.

The name and logo trezor are the properties of satoshilabs
The name and logo raspberry pi and raspberry pi zero are properties of the raspberry pi foundation


  1. Wow this is very good. I will test this once I got the parts.

    Question: In future, how about updates to the software?

  2. Make sure you get the proper oled device. Right now I'm supporting only I2C (not SPI).

    For the update, I will align my updates on the official firmware release from trezor. Basically you will have 2 options. I will post a page with the details on first update. 1) You simply reflash the sd card. That mean you will lost all your data and will have to reenter your seed words via the wallet application. 2) You backup the emulator.img file in the boot partition on a computer. then you flash the sd card and you move back the emulator.img file. This is an extra manipulation but will save time.

  3. Are there any pitrezor images to RPI 1, RPI2 or RPI3 variants? (What's the modification that are needed to pizero image?)

    1. No I only have pizero image because only this model can be used as a USB device.

      On regular pi, you can recompile trezor code in "emulator" mode to play with. You will simply need a keyboard and a screen to interact with it.

  4. Is there a way to change the pins that the buttons use?

    1. This can be easily changed in the code but will require to recompile pitrezor. I'm about to release a new image, I could make it configurable via the config file if you need this feature.

    2. That would be awesome if you can make it configurable via the config file.

  5. Would it be possible to add g_mass_storage to use the rest of the sd card?
    e.g. a third partition that takes up the remaining space and gets mounted as a usb drive when plugged in to devices.
    I guess it would only be useful if the pi doesn't get unpluged

    1. Exactly, I think their will be some risk of corruption if not disconnected at the right moment but that would be possible. A bootup script could extend the partition, format it and export it as usb key. Do you have an idea in mind about its usage?

    2. well I would like to use it to carry around the browser Plugin for TREZOR and possibly a portable version of a web browser with the trezor wallet site as the homepage.

    3. mostly read-only files

    4. The different bridges and the chrome plugin could be downloaded and put in a usb image but the trezor javascript wallet code doesn't seem to be on trezor github anymore. Maybe an alternative like electrum, that can use the trezor hardwarde, could be preinstalled.

    5. if config file had way to enable/disable and set read/write or read only mode

      maybe it can be used to boot a pc to a Live OS

    6. That could probably work. An iso could probably be exported (and kept read only) to avoid security breach from the host computer. Something to look at!

  6. hello,

    i'm using an ssd 1306 1.3" 128x64 OLED display from adafruit. it doesnt power on. is the wiring scheme the same? do i need to install any additional software? thanks.

    1. Look at the pitrezor.config file on the sd and check that TREZOR_OLED_TYPE is set to the Adafruit SSD 1306 I2C

    2. 'Adafruit SSD 1306 I2C' is 'OLED_ADAFRUIT_I2C_128x64'
      so you change the number in the line
      export TREZOR_OLED_TYPE=3
      to a 1
      export TREZOR_OLED_TYPE=1

    3. Please let me know if that work correctly. I don't have myself this oled to test but the driver code in the platform should work. The I2C wiring is the same. I only tested using oled with sh1106 controller.

      Btw, next release will also have SPI interface oled driver code in it.

    4. Hi Yannick,

      I changed the config to type=1 but it still wont power on. FYI my wiring scheme is (from OLED to pi zero):

      Vin to pin 1
      Gnd to pin 6
      Data to pin 3
      Clk to pin 5
      Rst to pin 18

      I bridged connections of the back of the OLED on pads SJ1 and Sj2, as mentioned by Adafruit to enable I2C functionality.

      Is this correct? I can email you screenshots of the wiring if that helps. Thanks.

    5. It works with the 'Adafruit 128x64 OLED Bonnet for Raspberry Pi'
      but the buttons and joystick on it need the pin config feature

      pic of the screen working
      I used some jumper wires to get the buttons to work

      if I'm reading this right Vin needs 5v but you have it plugged into pin 1 and that's 3.3v
      pin 2 and 4 are 5v

    7. Awesome work with the Bonnets! Would you mind sending some good pic to I could add it to the blog. I could also provide you a test image with gpio buttons configurable to test it.

    8. I don't think you need rst to be connected in i2c mode. Maybe the 3.3v / 5v is the solution. Otherwise, you can probably follow adafruit tutorial to make sure its driver is working correctly. I found some tutorial for the 128x32 at to start playing with.

  7. Yannick I sent you an email just wondering if you have received it yet?

    1. I just answered. You can check your email.

    2. Hi Yannick
      If we send you an email how long should we wait for a reply?

  8. Hi Yannick

    Are the pitrezor image is not available, links is not works.

    1. I just restored the link for download. It seems my file hosting provider has some issue...

  9. Thank you for tutorial,
    Trezor update firmware to 1.6.1, how can we update too?

    1. I'm in the process of updating the image and documentation. It should be ready in the next few days.

    2. Hi Yannick, any good news on 1.6.1?

    3. Finally I got the time to update the site! It is there!

  10. Hi,
    Awesome tutorial.
    I am also using the "Adafruit 128x64 OLED Bonnet for Raspberry Pi". (
    I change the config file to use the OLED Bonnet. The OLED Bonnet powers up and displays the Lock with the "Go to" text.
    I installed the Trezor Bridge but the raspberry pi w does not connect to the Trezor Wallet. The browser application DOES NOT detect the device. Not sure what is the problem..... Any help would be appreciated.

    Also, is there a way to configure the buttons on the Bonnet OLED screen?


    1. Is the usb plugged into the port labeled "usb" on the pi?

    2. The next image will support the bonnet as-is, it should be available in the next few days.

    3. Yes, I plugged the usb cable into the port labeled "usb" on the pi and plugged the other end into the computer. It was not detected by the computer. At one point the computer did say "unrecognized usb", but it was not detected by the Wallet.

      Cool, cant wait for the new image.

      Thanks for the help,

    4. What operating system are you guys using? I am using Windows 10. Maybe that is the issue.... I also tried using the chrome extension, still didn't get recognized. The raspberry pi is not recognized by windows....


    5. Windows in general can be a bit fussy with usb devices.
      have you tried plugging it into a different usb port on the windows system end (sometimes that works as it thinks its a new device and installs the driver)

      But you still would need to wait until Yannick releases the next image to use the buttons on your Bonnet OLED screen.
      If it still won't get recognized by windows let me know.

    6. Check with another usb cable if you can. Sometime a bad quality cable can cause this

    7. Still working on it. I tried another usb port, still doesnt work. I tried a new usb cable, still doesnt work. I will wait for the new image that utilizes the Bonnet OLED.


    8. New image is there if you want to give it a shot. Maybe trying on another computer could be something worth to try.

    9. Awesome! Thanks. So, I used windows 7 and it took a while to install drivers, but it worked. The raspberry pi finally connected to the computer and connected to the website. The buttons for the OLED Bonnet works too.

    10. I'm glad to hear that! Congratulation!

  11. Do you have a 3d-model (.stl) file for the closing box? I appreciate if you upload it as well!

    1. I don't have the files but that would be awesome if someone could send them to me. For my version I used a standard ABS box and I cut plastic with a dremel cutting disc. My main concern with 3D files would be the buttons. Depending on the type of buttons, the position/size would not be the same. At least, Oled on the other hand are relatively standard.

    2. After some research, I'll try to print the following module: . Though, I agree with the concerns about the buttons.

    3. Some things I noticed about it. The usb port opening is not the correct one. It seems to expose the usb power. Also it doesn't seem to have scoket to use screws to maintain the back in place.

    4. That is correct! After some modification it works great . I will upload the new stl files in the following week.

  12. Any chance to get this working with the new firmware for the Trezor Model T?
    It would require a touchscreen to be hooked to the Pi Zero.

    1. Yes I was thinking of it but the price of a touchscreen color display make me think that this port would be less interesting as a DIY project.

    2. Would such one be sufficient ?

    3. seems to be already done

  13. Can you highlights the modification that you were doing to the trezor's source code ? (For security reasons, and to learn more about how to add new feature to it..). I found it really hard to make a diff with the trezor repo.

    1. you can see the diff to original trezor code directly in github :

      Fell free to ask questions if something is not clear

  14. Hi Yannick,

    Great tutorial! I was wondering if I can get some help.
    I am new to yocto. I am trying to understand yocto and the layers. Why did you created meta-pitrezor layer? Could you have just built a generic raspberry pi distro and run the trezor code on it? Is that possible? Im just trying to learn and understand. Thanks.

    1. The meta-pitrezor layer allow me to add my port of the trezor application as part of yocto build. It also contain the image file that list the applications to install in the image file. This allow me to create a very small distro with only was is required to run. The layer also contains some fixes to other application and some custom configurations to reduce the image footprint.

      I think yocto was the best choice for this project. Distro for the pi like raspbian contain a lot of softwares not required for pitrezor because they are more desktop oriented. Using a distro like this would have implied to remove or cleanup a lot of packages. With yocto I can select what I want to be installed more granulary.

      I you have some other questions about yocto, feel free to PM me.

  15. Hey, thank you for the tutorial! Unfortunately I'm having some trouble. I can get the device to show the Trezor screen on a TV connected via HDMI, but when I go to the page, it never gets past asking me to connect my device to start.
    As a separate issue I can't seem to get the Adafruit Bonnet to work, but I think that's just my own problem with being unfamiliar with it.

    1. some things you could try: Check with another usb cable, check with another monitor, check in system manager for the list of usb device connected to see if it is there. You can also try to reflash the sd card with an original Pi distro like raspbian to see if it boot correctly and if you have hdmi output.

  16. Hi friends. It's a great project, I've ordered parts and waiting for delivery. But I wanted to inform you that I am a graphic designer and a 3D designer. How will everything be made up at home, I will make a box and a public. If the interest and creator of the PiTrezor project will want, I can present myself as part of this blog. I ordered the Adafruit 128x64 OLED Bonnet. If I get in the Czech Republic, I will make a second modification. (or you can send it to me - I'll pay). Here it is just in the Czech Republic OLED model

    I apologize for poor English I am from the Czech Republic. My nick is MoDDO / fX - (

    1. I would also like to try this. Has anyone not tried yet?

  17. WOW! This is awesome. I have a few Pi Zero W units laying around, so I popped in a new 2G MicroSD card and followed your tutorial. I have a couple of cheap Ebay SPI OLED (128x64 .96") also which work perfectly with the following layout.
    Changed the config file to use #4, with a zoom of 1.

    RPI Pin OLED Pin
    #17 -> DC
    #18 -> VCC
    #19 -> GND
    #20 -> D1
    #21 -> RES
    #22 (not used)
    #23 -> CS
    #24 -> D0

    The setup on the Trezor site was very easy, and worked perfectly using the buttons also. I have now ordered a non-wifi model of the PiZero dedicated for this purpose. I also have a 3D which I'll have to look at designing a case for this unit now. Something to hang off my car or house keys maybe.

  18. Ok, I have made a 3D case for this as a thanks. It fits my unit just fine. Also, the RPI Pin# I quoted yesterday were reversed, sorry. Brain fade. The correct pin names here.

    SPI - Your image
    GND (GND)
    VCC (VCC)
    D0 (CLK)
    D1 (MOSI)
    RST (RST)
    DC (DC)
    CS (CS)

    Hope you like it, feel free to modify for yourself.

    1. Wow impressive! Thank you for sharing the 3D files. I'm sure some people will use them!

  19. Thanks Yannick, the update worked fine. Entering the passphrases was simple enough to recover, and no more "Firmware Update requrired" on the trezor page. Appreciate the effort you have done here.

  20. incredible work ..... is an update to the new firmware 1.6.3 planned? THANK YOU

  21. Thank you! Yes update is on the way

  22. thanks for that quick update!

  23. Is there a way to see the private keys by looking at the sd card on a pc? Could I enter my own private key on the sd?

  24. by dumping the emulator.img file in the sd card you could retrieve the seed words that were used to generate the private keys. This is why you should always use a passphrase. The passphrase is not stored on the sd card and act as an extra word in the conversion from the word seed list to private keys.

  25. Have you considered encrypting the SD card with LUKS?
    Seems this could drastically increase security.

    Would also be good to limit number PIN tries + auto wipe seed.

    1. The protection would be limited. I'm trying to minimize the changes with the original trezor code to avoid to introduce all kinds of possible errors (security, malfunction..) and to keep 100% compatibility with the online wallet. Also, all the code is open source, so anybody could review it and see how encryption is used. The passphrase could in theory be used to protect the partition that hold the flash image, but, when the online wallet is asking for it when the trezor is connected, the flash image is already loaded by the pitrezor to tell wallet to ask for the password. This is a chicken'n'egg problem. I could solve it by breaking the flash in 2 parts (one encrypted, one not) but that will be a big change from the original code.

      The pin is not a real protection because it can be extracted from a dump of the flash image. The best protection is the passphrase because it is never stored.

  26. For the 'ultra paranoid' security conscious people, couldn't you just add passphrase protection, then remove the SD card from your Pi-Trezor, put it in your "Etcher" application and create a new image, then encrypt the image with say TrueCrypt (yes I know about it's apparent flaws) and store it on a second USB drive somewhere offline, and extract the encrypted image only when needed?

    This is untested by myself, just theory in my head.

  27. Hello there! Thank you for this amazing work.
    Looking at I noticed that it is using /dev/random as a source. How safe it is? Shouldn't it use /dev/hwrng instead?

    1. The daemon rng-tool is running as a separate process. This is the one that read from /dev/hwrng and feeds /dev/random to keep entropy high. The kernel will mix that source of entropy with others sources. This way, reading from /dev/random cannot block because you always have the hw generator as a fallback source of entropy. It still secure because it is not the only one source and it is better than urandom because the kernel avoid the pseudo software number generator (/dev/urandom)

  28. LGTM. Thanks for detailed answer.

  29. Is there anyway to change the welcome image?

    1. yes, you can follow information from here

  30. Hi there. Yannick, you made a great job! I followed your instructions and made this device. I had no Pi Zero available, only Raspberry Pi Model A+ and 3B, fortunately Pi Model A+ allows similar configuration, but you need USB Type A (Male to Male) cable to connect to PC and replace string in config.txt file on SDcard "dtoverlay=dwc2" to this one "dtoverlay=dwc2,dr_mode=peripheral". Hope this helps someone.

    1. Hi. I was unaware the model a+ could work as usb gadget! I will try it. Did you had to add the proper boot files in the boot partition because my image contains only the file for the pizero? Thanks for sharing.

    2. I just used precompiled firmware that you provide, because A+ and Zero share the same hardware, no additional boot files needed. Good luck.

  31. Just finished the assembly, works great, thanx Yannick!
    Protected all the solder joints and reinforced the usb connector with the steel epoxy.
    The case is 3d printed, just slightly larger than the pi zero itself.
    Feel free to check the photos:

    1. Hey! Great Works. Look professional. Thanks for the good word!

    2. I like how slim you made the unit! Congrats. I'll have to do some thorough redesign of my quick hack case to look as good as yours :)

  32. This comment has been removed by the author.

  33. do i need a mini HDMI male to HDMI female adapter? i dont have one. can i directly connect with jumper cables plugged in to the OLED display via GPIO PINS????
    BTW can u tell me the OLED TYPE for this one?

    1. This comment has been removed by the author.

    2. The hdmi connector is needed only if you dont have an oled. But because you seems to have one, it can be used to help troubleshoot if the oled is not working, i.e. the hdmi clone the oled output so it should shows that pi is running software correctly.

      The oled is probably one of two type OLED_ADAFRUIT_ SPI OR I2C depending on interface.

  34. works perfectly. There is a new Trezor version btw ;-)

    1. Thanks! Yeah I will deploy the update soon :)

  35. Hello, i will be also writing this via e-mail. I was wondering if it would be possible to use this with a 16x2 LCD display? Thank you so much.

  36. Great Work!
    Is there a way to way to run this and an alternative OS?
    A dual boot option selectable on the screen perhaps?
    Is the model T code able to be emulated in this way?

    Just questions, thank you for your hard work!

    1. The current OS is based on yocto but yes in theory another OS like raspbian should work. However, it would require to apply the same patch (kernel linux patch) to work properly.
      For the model T, I didn't invest time into it as it would require a color touch screen LCD and that would increase the cost of this project.

    2. I meant like a dual boot situation.
      Hold one button to boot into the wallet, hold nothing for say, raspbian to load.

      More stealthy...

      I see about the model T as far as touchscreen goes.

      Thank you, once again, for your hard work. It is awesome.

  37. Would love to see the key/passphrase encrypted on the SD card, and unlockable via added NFC, such as an NFC ring or yubi key.

    1. That would be great as a fork project because I try to keep 100% compatibility with original trezor

  38. This comment has been removed by the author.

  39. Hi Yannick!
    First of all awesome work thanks for your effort! :)
    I was just logging in in my pitrezor and realized there is a new firmware. (1.9.0)
    Can we expect an update in the near future?

  40. Hi Yannik.
    Thanks for your great work.
    Any plans for an update of the firmware?

    1. Yes update is in progress. I'm doing the testing...

    2. That's great news.
      Thanks again for your great work.

    3. Thanks for the update! :)

    4. No problem. Don't forget that donation are always welcome!


Please share your thoughts