Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AndySchroder opened this issue Oct 14, 2024 · 2 comments

Comments

@AndySchroder
Copy link

In

==== on Linux
To set up software on a Linux host device:
. Run the following command to install `rpiboot`:
+
[source,console]
----
$ sudo apt install rpiboot
----
. Connect the IO Board to power.
. Then, run `rpiboot`:
+
[source,console]
----
$ sudo rpiboot
----
. After a few seconds, the Compute Module should appear as a mass storage device. Check the `/dev/` directory, likely `/dev/sda` or `/dev/sdb`, for the device. Alternatively, run `lsblk` and search for a device with a storage capacity that matches the capacity of your Compute Module.
TIP: Alternatively, you can https://github.com/raspberrypi/usbboot[build `rpiboot` from source].
you suggest installing a debian package on linux and then later as part of that process suggest using sudo to run rpiboot

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
Copy link
Collaborator

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
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants