From aa1c721631d5ac0cc45a4bbd93a9b1dd9b278a27 Mon Sep 17 00:00:00 2001
From: Marius Greuel <greuelm@mgtek.com>
Date: Tue, 26 Jan 2021 22:22:41 +0100
Subject: [PATCH] Add Linux udev rules hint to readme.md

---
 readme.md | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/readme.md b/readme.md
index 309e222a..0d964238 100644
--- a/readme.md
+++ b/readme.md
@@ -215,6 +215,19 @@ To install a local build of AVRDUDE on your system, run the following command:
 sudo make install
 ```
 
+#### Linux udev rules
+
+If you intent to use either the Micronucleus or Teensy bootloader, you should edit the udev rules so that you can run AVRDUDE without root.
+
+For instance, if you are on Ubuntu and you installed the avrdude package, you would edit `/lib/udev/rules.d/60-avrdude.rules` and add the following rules:
+
+```bash
+# Micronucleus Bootloader
+SUBSYSTEM=="usb", ATTR{idVendor}=="16d0", ATTR{idProduct}=="0753", TAG+="uaccess"
+# Teensy Bootloader
+SUBSYSTEM=="usb", ATTR{idVendor}=="16c0", ATTR{idProduct}=="0478", TAG+="uaccess"
+```
+
 ## Troubleshooting Tips & Tricks
 
 ### Atmel DFU Device driver broken