-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapted platform for trezor 1.7.1 (webusb)
- Loading branch information
Showing
10 changed files
with
78 additions
and
26 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/sh | ||
|
||
source /boot/pitrezor.config | ||
|
||
cd /boot | ||
dos2unix -n pitrezor.config /var/volatile/pitrezor.config | ||
source /var/volatile/pitrezor.config | ||
TREZOR_OLED_FULLSCREEN=1 /usr/bin/pitrezor |
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
13 changes: 13 additions & 0 deletions
13
meta-pitrezor/recipes-devtools/python/python3-munch_2.3.2.bb
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
SUMMARY = "A dot-accessible dictionary (a la JavaScript objects)." | ||
|
||
HOMEPAGE = "https://github.com/Infinidat/munch" | ||
LICENSE = "MIT" | ||
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=f0291cd32b2d6a91d9b19970c94d0a46" | ||
|
||
SRC_URI[md5sum] = "539311fdfc6419381b6f38d0695f01ee" | ||
SRC_URI[sha256sum] = "6ae3d26b837feacf732fb8aa5b842130da1daf221f5af9f9d4b2a0a6414b0d51" | ||
|
||
BBCLASSEXTEND = "native nativesdk" | ||
|
||
inherit pypi setuptools3 | ||
|
1 change: 1 addition & 0 deletions
1
meta-pitrezor/recipes-devtools/python/python3-protobuf_3.4.0.bbappend
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
BBCLASSEXTEND = "native nativesdk" |
18 changes: 18 additions & 0 deletions
18
meta-pitrezor/recipes-devtools/python/python3-trezor_git.bb
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
SUMMARY = "Client side implementation for TREZOR-compatible Bitcoin hardware wallets." | ||
|
||
HOMEPAGE = "https://github.com/trezor/python-trezor" | ||
LICENSE = "LGPLv3" | ||
LIC_FILES_CHKSUM = "file://COPYING;md5=e6a600fd5e1d9cbde2d983680233ad02" | ||
|
||
SRC_URI = "gitsm://github.com/trezor/python-trezor.git" | ||
SRCREV = "252f946f409fc87d6b9f462682ef36219b96ece3" | ||
S="${WORKDIR}/git" | ||
|
||
SRC_URI[md5sum] = "" | ||
SRC_URI[sha256sum] = "" | ||
|
||
BBCLASSEXTEND = "native nativesdk" | ||
|
||
inherit setuptools3 | ||
|
||
DEPENDS += " protobuf-native python3-protobuf-native python3-six-native " |
32 changes: 32 additions & 0 deletions
32
meta-pitrezor/recipes-kernel/linux/linux-raspberrypi/usb_inode.patch
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- git/drivers/usb/gadget/legacy/inode.c 2018-11-10 17:41:56.027719759 -0500 | ||
+++ git.new/drivers/usb/gadget/legacy/inode.c 2018-11-10 18:00:17.401165612 -0500 | ||
@@ -1284,7 +1284,7 @@ | ||
|
||
qual.bLength = sizeof qual; | ||
qual.bDescriptorType = USB_DT_DEVICE_QUALIFIER; | ||
- qual.bcdUSB = cpu_to_le16 (0x0200); | ||
+ qual.bcdUSB = desc->bcdUSB; | ||
|
||
desc = dev->dev; | ||
qual.bDeviceClass = desc->bDeviceClass; | ||
@@ -1393,11 +1393,8 @@ | ||
if (value >= 0) | ||
value = min (w_length, (u16) value); | ||
break; | ||
- case USB_DT_STRING: | ||
+ default: | ||
goto unrecognized; | ||
- | ||
- default: // all others are errors | ||
- break; | ||
} | ||
break; | ||
|
||
@@ -1856,7 +1853,6 @@ | ||
|| dev->dev->bNumConfigurations != 1) | ||
goto fail; | ||
dev->dev->bNumConfigurations = 1; | ||
- dev->dev->bcdUSB = cpu_to_le16 (0x0200); | ||
|
||
/* triggers gadgetfs_bind(); then we can enumerate. */ | ||
spin_unlock_irq (&dev->lock); |
2 changes: 2 additions & 0 deletions
2
meta-pitrezor/recipes-kernel/linux/linux-raspberrypi_4.9.bbappend
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
SRC_URI += "file://usb_inode.patch" |
This file was deleted.
Oops, something went wrong.