Skip to content

Instructions for bare metal part regarding udev rules didn't work #608

@Mandragorian

Description

@Mandragorian

When I tried to run the cargo embed command to flash the microbit:v2 controller, it failed with a permission error regarding device /dev/hidraw0. Unfortunately I do not have the exact error message since I accidentally closed the terminal window.

It turned out that I had to change the udev rules to make it work.

Instead the contents that made it work are:

SUBSYSTEM=="usb", ATTR{idVendor}=="0d28", ATTR{idProduct}=="0204", MODE:="666"

taken from: https://docs.rust-embedded.org/discovery/microbit/03-setup/linux.html#udev-rules

I think this is because the plugdev group is ubuntu specific and according to the Arch Wiki:

Ubuntu's approach is to create a plugdev group that devices are added to, but this practice is not only discouraged by the systemd developers, [[2]](https://bugzilla.redhat.com/show_bug.cgi?id=815093) but considered a bug when shipped in udev rules on Arch

(It could be also that I forgot to reload the rules and/or re-plug in the controller, but I think I did that. At any case I open this issue in case others have the same problem)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions