Skip to content

Instantly share code, notes, and snippets.

@thefekete
Last active June 12, 2018 12:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thefekete/7995329c8370cb511a080ee441212b41 to your computer and use it in GitHub Desktop.
Save thefekete/7995329c8370cb511a080ee441212b41 to your computer and use it in GitHub Desktop.
Installing Sigrok and Pulseview on Arch Linux

Package installation

For DSLogic Plus

For some reason, as of this writing, the standard sigrok package doesn't yet recognize the DreamSourceLab DSLogic Plus. Therefore the git versions need to be installed as follows:

aurman -S --noconfirm --noedit pulseview-git sigrok-cli-git sigrok-firmware-fx2lafw-bin sigrok-firmware-dreamsourcelab-dslogic

This takes a while, but works.

Otherwise

If support for the DSLogic plus is not needed, then the standard packages can be used:

aurman -S --noconfirm --noedit pulseview sigrok-cli sigrok-firmware-fx2lafw-bin sigrok-firmware-dreamsourcelab-dslogic

USB Configuration

In order to be able to access the devices used by sigrok without sudo, udev rules must be installed to give normal users access to the devices. sigrok ships with a udev rules file that can be used, but must be modified.

uaccess

On arch, this can be accomplished by tagging the devices with 'uaccess'. This tells systemd to allow the loggied in user full access to the device.

awk '/ATTRS/ { print $0 ", MODE=\"0660\", TAG+=\"uaccess\""}
     !/ATTRS/ { print }' /usr/lib/udev/rules.d/60-libsigrok.rules | sudo tee /etc/udev/rules.d/60-libsigrok-uaccess.rules
sudo udevadm control --reload  # reload udev rules
sudo udevadm trigger -s usb  # re-trigger usb devs with new rules

Group Permissions

On other systems, we can also set the group for such devices. The procedure is the same as above, we just set the GROUP instead of the TAG:

awk '/ATTRS/ { print $0 ", MODE=\"0660\", GROUP=\"users\""}
     !/ATTRS/ { print }' | sudo tee /etc/udev/rules.d/60-libsigrok-uaccess.rules
sudo udevadm control --reload  # reload udev rules
sudo udevadm trigger -s usb  # re-trigger usb devs with new rules

Now any user in the 'users' group will be able to use the devices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment