edison-fw / meta-intel-edison

Here is the meta-intel-edison that builds, tries to stay up to date. Master is based on Yocto Poky Gatesgarth LTS 5.10.yy vanilla kernels. It builds a 32bit kernel (Gatesgarth branch 64bit) with ACPI enabled and corresponding rootfs. Telegram group: https://t.me/IntelEdison Web-site:
https://edison-fw.github.io/meta-intel-edison/
MIT License
60 stars 37 forks source link

requirement for sudo to use flashall.sh #132

Closed humanoid2050 closed 2 years ago

humanoid2050 commented 2 years ago

The documentation states in a few places that root permissions via sudo are required for flashall.sh on Ubuntu.

Creating the file /etc/udev/rules.d/46-edison-dfu.rules with the following line

SUBSYSTEM=="usb", ATTRS{idVendor}=="8087", ATTRS{idProduct}=="0a99", MODE="0664", GROUP="plugdev"

will allow a user (who is a member of the plugdev group) to use the script without sudo.

htot commented 2 years ago

That would be useful to add to the documentation. Would you create a patch to document how to do that and correct current refs to sudo?

humanoid2050 commented 2 years ago

My Markdown-fu is weak, but I will certainly take a crack at it. I think Setting Up > Prerequisites for building is probably the right place to document the fix, and then add references back to that in the building and installing pages that actually use the script. Let me know if you have a better idea for the layout.

humanoid2050 commented 2 years ago

PR #133 has changes for this.

htot commented 2 years ago

This will appear in gatesgarth soon to be released, thanks.