question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[For FAQ?] UDEV Magic

See original GitHub issue

From Project Icestorm homepage:

Notes for Linux: Create a file /etc/udev/rules.d/53-lattice-ftdi.rules with the following line in it to allow uploading bit-streams to a Lattice iCEstick and/or a Lattice iCE40-HX8K Breakout Board as unprivileged user:

ACTION=="add", ATTR{idVendor}=="0403", ATTR{idProduct}=="6010", MODE:="666"

This did not work for me on Debian9. Other tries like setting the device node’s ownership/permissions right for my account failed too.

After digging a while, I found Debian’s fpga-icestorm_*.deb includes this UDEV rule:

ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", MODE="0660", GROUP="plugdev", TAG+="uaccess"

This one worked here and now I can drop sudo for loading the FPGA.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
cliffordwolfcommented, Nov 18, 2017

Updated the website.

1reaction
rqoucommented, Nov 15, 2017

Heh, azonenberg/openfpga had this same issue. According to @cyrozap,

`TAG+="uaccess"` is for systemd compatibility and `MODE="660", GROUP="plugdev"` is for non-systemd systems. This is the same pattern OpenOCD uses for its udev rules.

So the proposed change to the FAQ should be correct.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[For FAQ?] UDEV Magic · Issue #105 · YosysHQ/icestorm
To manage removable drives without root privileges, you have to use the groups cdrom for optical drives. Optical drives can usually be mounted ......
Read more >
udev
udev is a userspace system that enables the operating system administrator to register userspace handlers for events. The events received by udev's daemon ......
Read more >
Writing udev rules - Daniel Drake
The four main match keys introduced so far (KERNEL/SUBSYSTEM/DRIVER/ATTR) only match against values corresponding to the device in question, and do not match ......
Read more >
Udev Rules Linux: Ensure USB (and other) Devices Always ...
Udev Rules Linux: Ensure USB (and other) Devices Always Keep Same Port! Changing port names (/dev/ttyUSB0.../dev/ttyUSB1.
Read more >
Example of udev rules
These rules tell udev what device nodes to create for aoe support. # They may be installed along the following lines. Check the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found