heneault / yocto-pitrezor

raspberry pi zero platform to run the trezor port pitrezor as a bitcoin wallet
https://www.pitrezor.com
MIT License
114 stars 30 forks source link

Running Model T Firmware? #11

Open S0PEX opened 3 years ago

S0PEX commented 3 years ago

Hey,

I have just discovered this project and was wondering what kind of changes need to be made to trezor/core to run it on the Pi Zero. Are there any plans on migrating the model t firmware? Otherwise I would take a look at it after my exams. Currently Im not shure what exactly needs to be changed as the emulator of trezor unix is running fine.

So the only thing if even necessary would be to change the input system and LCD communication although the display is working fine on Unix through the emulator.

@heneault are interested in migration to the Model T Firmware?

Regards Artur

haath commented 3 years ago

This would be great, and it would also provide the best solution to #6 since the model T has a square screen.

@heneault could you maybe write a brief summary of how this could be done?

I imagine the complexity would be quite high, because it would be necessary to implement full touch screen support.

S0PEX commented 3 years ago

With my current understanding the Model T firmware is based on MicroPython which is supported by the Pi Zero. I already tried to deploy the firmware on the Pi Zero but couldn't get it compiled correctly for ARMv6 as the original Model T Cortex M4 is based on ARMv7.

@gmantaos As it looks like the firmware already supports ST7789V, GC9307, or ILI9341V displays and the touch panel is using a FT6206. So if we could find a capacitive touch panel with these driver we wouldn't need to do much.

Edit: -march=armv6z -mtune=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard seems to set the architecture to the Pi Zero. I will report back if I get the errors sorted.

filipenobrerc commented 3 years ago

https://www.ebay.com/itm/283500894084

TomaszKn commented 2 years ago

Any progres? I have pi 0. I think it is good idea and lower cost.

TomaszKn commented 2 years ago

https://www.ebay.com/itm/283500894084

It is resistive touch screen.

heneault commented 2 years ago

I would prefer capacitive screen but right now all I found is around 30-40 $

filipenobrerc commented 2 years ago

I fail to see why capacitive would be better in this context.

marssystems commented 2 years ago

We need to produce a working prototype using whatever cheap hardware is available right now to see if it actually works.

heneault commented 2 years ago

The model used by trezor is capacitive. I dont know if they use multi touch but that would help to stay with the same type in that case. Also, I think it is easier to manipulate (more sensible) for most people for a small display like this.

tworth04 commented 2 years ago

hi, is there any progress on this? if not for the zero, if i add a touchscreen to the pi 4 would it classify itself as a model T?

Mineking34 commented 11 months ago

Any updates to this?

mokiding commented 8 months ago

Update ?