Commit b0fe388b authored by Guido Gunther's avatar Guido Gunther
Browse files

docs: Add udev rules to avoid being root

parent f5be3f05
......@@ -102,6 +102,27 @@ sudo make install
scripts/ -i
* Udev Rules
If you want to run *uuu* as non-root add the following udev rules
cat <<EOF > /etc/udev/rules.d/99_librem5_devkit.rules
SUBSYSTEM!="usb", GOTO="librem5_devkit_rules_end"
# Devkit USB flash
ATTR{idVendor}=="1fc9", ATTR{idProduct}=="012b", GROUP+="plugdev", TAG+="uaccess"
ATTR{idVendor}=="0525", ATTR{idProduct}=="a4a5", GROUP+="plugdev", TAG+="uaccess"
ATTR{idVendor}=="0525", ATTR{idProduct}=="b4a4", GROUP+="plugdev", TAG+="uaccess"
sudo udevadm control -R
sudo adduser <youruser> plugdev
newgrp plugdev
Make sure you replug the serial cable in case you have plugged it in
already. With the above rules you can skip the =sudo= in front of the
uuu invocations below.
* Flash the test image
The eMMC that gets flashed is files/devkit-test.img . Put the "Boot Mode" switch in the USB position.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment