raspberrypi / documentation

The official documentation for Raspberry Pi computers and microcontrollers
https://raspberrypi.com/documentation
Creative Commons Attribution Share Alike 4.0 International
5.26k stars 2.01k forks source link

sudo not actually needed for running rpiboot if debian package installed (which is how the instructions say to install) #3884

Open AndySchroder opened 1 month ago

AndySchroder commented 1 month ago

In https://github.com/raspberrypi/documentation/blob/e14224a1d57245b062008a723e9d9a88f1dc5585/documentation/asciidoc/computers/compute-module/cm-emmc-flashing.adoc?plain=1#L54-L78 you suggest installing a debian package on linux and then later as part of that process suggest using sudo to run rpiboot

https://github.com/raspberrypi/documentation/blob/e14224a1d57245b062008a723e9d9a88f1dc5585/documentation/asciidoc/computers/compute-module/cm-emmc-flashing.adoc?plain=1#L72

However, sudo is not needed using these instructions. The debian package installs a UDEV rule in /lib/udev/rules.d/70-rpiboot.rules which avoids the need for sudo.

See

https://github.com/raspberrypi/usbboot/blob/d0a2ed95ade02fbc042d325a22e4a7abcaf8fd34/debian/rpiboot.install#L12

https://github.com/raspberrypi/usbboot/blob/d0a2ed95ade02fbc042d325a22e4a7abcaf8fd34/debian/70-rpiboot.rules#L1

nathan-contino commented 1 month ago

Strange. I've always had to use sudo to run rpiboot. I wonder if this has changed recently? Or have I simply always used it unnecessarily?

AndySchroder commented 1 month ago

If you compile from source, then sudo is needed. If you use the debian package, it seems you don't. Are you able to confirm?