From f11fa10a5f7d1da68394d5969d514a7e2fce6ce1 Mon Sep 17 00:00:00 2001 From: Kelvin Ly <kelvin.ly1618@gmail.com> Date: Sun, 17 Apr 2022 09:18:52 -0400 Subject: [PATCH] Add udev rule to make programming marginally easier --- 99-pico.rules | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 99-pico.rules diff --git a/99-pico.rules b/99-pico.rules new file mode 100644 index 0000000..69dccb9 --- /dev/null +++ b/99-pico.rules @@ -0,0 +1,9 @@ +# /etc/udev/rules.d/99-pico.rules + +# Make an RP2040 in BOOTSEL mode writable by all users, so you can `picotool` +# without `sudo`. +SUBSYSTEM=="usb", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="0003", MODE="0666" +SUBSYSTEM=="usb", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="000a", MODE="0666" + +# Symlink an RP2040 running USB UART as /dev/pico. +SUBSYSTEM=="tty", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="000a", SYMLINK+="pico"