raspberrypi / picotool

BSD 3-Clause "New" or "Revised" License
555 stars 95 forks source link

add a udev rule for linux systems to access the pico without sudo #32

Closed diehard67 closed 1 year ago

diehard67 commented 3 years ago

I created a udev rules file so I can use picotool without sudo

# make raspberry pi pico accessible without sudo.

SUBSYSTEM!="usb_device", ACTION!="add", GOTO="rpi2_end"
# Raspberry Pi Pico
ATTR{idVendor}=="2e8a", ATTRS{idProduct}=="0003", MODE="660", GROUP="plugdev"

LABEL="rpi2_end"
lurch commented 3 years ago

I guess this is very similar to https://github.com/raspberrypi/openocd/pull/5 and https://github.com/raspberrypi/openocd/pull/27 ? (although not identical, as it has a different idProduct)

diehard67 commented 3 years ago

yah sort of, this one is for a pico in BOOTSEL mode, not picoprobe, but looks like the same goal.

kilograham commented 1 year ago

merged into develop