Updated USB VID & PID.
Also fixed missing image for Readme.
This commit is contained in:
@@ -33,7 +33,7 @@ After the image burning has completed, most OSs should automatically mount the S
|
|||||||
Since this device can be set up without a monitor, we shall. <br />First, we need to enable SSH.
|
Since this device can be set up without a monitor, we shall. <br />First, we need to enable SSH.
|
||||||
1. Open the boot partition - it should look like so: <br />
|
1. Open the boot partition - it should look like so: <br />
|
||||||
|
|
||||||
2. Create a `ssh` file. Note that this doesn't have any extension. For Linux users, you can open a console in this directory, and `touch ssh` to create the file. This file enables `ssh` on the latest versions of Raspbian. <br />
|
2. Create a `ssh` file. Note that this doesn't have any extension. For Linux users, you can open a console in this directory, and `touch ssh` to create the file. This file enables `ssh` on the latest versions of Raspbian. <br />
|
||||||
|
|
||||||
3. Edit `config.txt`. Using your preferred editor, add the line `dtoverlay=dwc2` to the end. <br />
|
3. Edit `config.txt`. Using your preferred editor, add the line `dtoverlay=dwc2` to the end. <br />
|
||||||
|
|
||||||
@@ -196,7 +196,7 @@ LABEL="u2f_end"
|
|||||||
Basically, this file contains the same contents as [Yubico's udev rules](https://github.com/Yubico/libu2f-host/blob/master/70-u2f.rules). <br />
|
Basically, this file contains the same contents as [Yubico's udev rules](https://github.com/Yubico/libu2f-host/blob/master/70-u2f.rules). <br />
|
||||||
If you don't have any rules, download the [raw file](https://raw.githubusercontent.com/Yubico/libu2f-host/master/70-u2f.rules), and copy it to the `/etc/udev/rules.d/` directory. <br />
|
If you don't have any rules, download the [raw file](https://raw.githubusercontent.com/Yubico/libu2f-host/master/70-u2f.rules), and copy it to the `/etc/udev/rules.d/` directory. <br />
|
||||||
Then, add: <br />
|
Then, add: <br />
|
||||||
```# Rapsberry Pi U2F```<br /> ```KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="1d6b", ATTRS{idProduct}=="0400", TAG+="uaccess"``` <br />
|
```# Rapsberry Pi U2F```<br /> ```KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="2900", TAG+="uaccess"``` <br />
|
||||||
on lines just before `LABEL="u2f_end"`.
|
on lines just before `LABEL="u2f_end"`.
|
||||||
|
|
||||||
Then, reload the rules using `sudo udevadm control --reload-rules `
|
Then, reload the rules using `sudo udevadm control --reload-rules `
|
||||||
|
|||||||
@@ -15,10 +15,10 @@ cd /sys/kernel/config/usb_gadget/hidraw
|
|||||||
echo 0x0100 > bcdDevice # Version 1.0.0
|
echo 0x0100 > bcdDevice # Version 1.0.0
|
||||||
echo 0x0200 > bcdUSB # USB 2.0
|
echo 0x0200 > bcdUSB # USB 2.0
|
||||||
|
|
||||||
# For this part, used the Linux idVendor
|
# For this part, used the pid.codes idVendor
|
||||||
# Of course, no official spec for Raspberry Pi 0 acting as U2F device, so self defined product here we go
|
# This permits me to have a application-unique VID and PID
|
||||||
echo 0x1d6b > idVendor # Linux Foundation
|
echo 0x1209 > idVendor # Linux Foundation
|
||||||
echo 0x0400 > idProduct # Self defined U2F device
|
echo 0x2900 > idProduct # Self defined U2F device
|
||||||
|
|
||||||
echo 0x0000 > bDeviceClass # RAW HID?
|
echo 0x0000 > bDeviceClass # RAW HID?
|
||||||
echo 0x0000 > bDeviceSubClass #
|
echo 0x0000 > bDeviceSubClass #
|
||||||
|
|||||||
Reference in New Issue
Block a user