Skip to content

Instantly share code, notes, and snippets.

@tjvr
Created April 6, 2021 19:08
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save tjvr/3c406bddfe9ae0a3860a3a5e6b381a93 to your computer and use it in GitHub Desktop.
Save tjvr/3c406bddfe9ae0a3860a3a5e6b381a93 to your computer and use it in GitHub Desktop.
Raspberry Pi Pico/RP2040 udev rules
# /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"
# Symlink an RP2040 running MicroPython from /dev/pico.
#
# Then you can `mpr connect $(realpath /dev/pico)`.
SUBSYSTEM=="tty", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="0005", SYMLINK+="pico"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment