diff --git a/Readme.md b/Readme.md index d7fcf67..7cf0b8d 100644 --- a/Readme.md +++ b/Readme.md @@ -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.
First, we need to enable SSH. 1. Open the boot partition - it should look like so:
![Boot Partition](Readme_Assets/Boot_partition.png) -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.
![ssh file](Readme Assets/Create_ssh.png) +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.
![ssh file](Readme_Assets/Create_ssh.png) 3. Edit `config.txt`. Using your preferred editor, add the line `dtoverlay=dwc2` to the end.
![Edited config.txt](Readme_Assets/Edit_config_txt.png) @@ -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).
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.
Then, add:
-```# Rapsberry Pi U2F```
```KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="1d6b", ATTRS{idProduct}=="0400", TAG+="uaccess"```
+```# Rapsberry Pi U2F```
```KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="2900", TAG+="uaccess"```
on lines just before `LABEL="u2f_end"`. Then, reload the rules using `sudo udevadm control --reload-rules ` diff --git a/Scripts/Kernel_HID_Config.sh b/Scripts/Kernel_HID_Config.sh index 97057dc..dceb22e 100755 --- a/Scripts/Kernel_HID_Config.sh +++ b/Scripts/Kernel_HID_Config.sh @@ -15,10 +15,10 @@ cd /sys/kernel/config/usb_gadget/hidraw echo 0x0100 > bcdDevice # Version 1.0.0 echo 0x0200 > bcdUSB # USB 2.0 -# For this part, used the Linux idVendor -# Of course, no official spec for Raspberry Pi 0 acting as U2F device, so self defined product here we go -echo 0x1d6b > idVendor # Linux Foundation -echo 0x0400 > idProduct # Self defined U2F device +# For this part, used the pid.codes idVendor +# This permits me to have a application-unique VID and PID +echo 0x1209 > idVendor # Linux Foundation +echo 0x2900 > idProduct # Self defined U2F device echo 0x0000 > bDeviceClass # RAW HID? echo 0x0000 > bDeviceSubClass #