Skip to content

高级 Linux 安装用例

使用 JTAG 编程调试器

Linux 用户需要为 JTAG 调试器接入 USB 总线开放权限。

INFO

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:

sh
sudo ls

Then with sudo rights temporarily granted, run this command:

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

The user needs to be added to the group plugdev:

sh
sudo usermod -a -G plugdev $USER