!REDIRECT “https://docs.px4.io/master/ja/dev_setup/dev_env_advanced_linux.html

Advanced Linux Installation Use-Cases

Using JTAG Programming Adapters

Linux users need to explicitly allow access to the USB bus for JTAG programming adapters.

Note For Archlinux: replace the group plugdev with uucp in the following commands

Run a simple ls in sudo mode to ensure the commands below succeed:

  1. sudo ls

Then with sudo rights temporarily granted, run this command:

  1. cat > $HOME/rule.tmp <<_EOF
  2. # All 3D Robotics (includes PX4) devices
  3. SUBSYSTEM=="usb", ATTR{idVendor}=="26AC", GROUP="plugdev"
  4. # FTDI (and Black Magic Probe) Devices
  5. SUBSYSTEM=="usb", ATTR{idVendor}=="0483", GROUP="plugdev"
  6. # Olimex Devices
  7. SUBSYSTEM=="usb", ATTR{idVendor}=="15ba", GROUP="plugdev"
  8. _EOF
  9. sudo mv $HOME/rule.tmp /etc/udev/rules.d/10-px4.rules
  10. sudo /etc/init.d/udev restart

The user needs to be added to the group plugdev:

  1. sudo usermod -a -G plugdev $USER