Add udev rule to make programming marginally easier

This commit is contained in:
Kelvin Ly 2022-04-17 09:18:52 -04:00
parent e93f115c23
commit f11fa10a5f
1 changed files with 9 additions and 0 deletions

9
99-pico.rules Normal file
View File

@ -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"