Fetch tags in docker build script. More robust udev rules in docs
This commit is contained in:
parent
afd3218358
commit
f6ff3c1b87
@ -1,13 +1,16 @@
|
|||||||
# tl;dr
|
# tl;dr
|
||||||
|
|
||||||
Create [`/etc/udev/rules.d/99-solo.rules`](https://github.com/solokeys/solo/blob/master/99-solo.rules) and add the following (which assumes your user is in group `plugdev`):
|
Create a file like [`/etc/udev/rules.d/99-solo.rules`](https://github.com/solokeys/solo/blob/master/99-solo.rules), for instance the following rules should cover access in all cases:
|
||||||
|
|
||||||
```
|
```
|
||||||
# Solo
|
# Solo bootloader + firmware
|
||||||
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="a2ca", TAG+="uaccess", GROUP="plugdev", SYMLINK+="solokey"
|
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="a2ca", TAG+="uaccess", GROUP="plugdev"
|
||||||
|
|
||||||
|
# ST DFU bootloader
|
||||||
|
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", TAG+="uaccess", GROUP="plugdev"
|
||||||
|
|
||||||
# U2F Zero
|
# U2F Zero
|
||||||
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="8acf", TAG+="uaccess", GROUP="plugdev", SYMLINK+="u2fzero"
|
ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="8acf", TAG+="uaccess", GROUP="plugdev"
|
||||||
```
|
```
|
||||||
|
|
||||||
Then run
|
Then run
|
||||||
|
@ -5,7 +5,7 @@ version=${1:-master}
|
|||||||
export PREFIX=/opt/gcc-arm-none-eabi-8-2018-q4-major/bin/
|
export PREFIX=/opt/gcc-arm-none-eabi-8-2018-q4-major/bin/
|
||||||
|
|
||||||
cd /solo/targets/stm32l432
|
cd /solo/targets/stm32l432
|
||||||
git fetch
|
git fetch --tags
|
||||||
git checkout ${version}
|
git checkout ${version}
|
||||||
version=$(git describe)
|
version=$(git describe)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user