Ubuntu 26.04:
sudo apt install libusb-1.0-0-dev
cd ~
git clone https://gitflic.ru/project/niiet/openocd.git
cd openocd
./bootstrap with-submodules
./configure –enable-internal-libjaylink=yes –enable-usbprog=yes
make
Invoke with:
~/openocd/src/openocd [ARG]
or install it in whatever place you wanted to.
Debian 13.7:
sudo apt install libusb-1.0-0-dev
sudo apt install libtool
sudo apt-get install automake
sudo apt install pkg-config
cd ~
git clone https://gitflic.ru/project/niiet/openocd.git
cd openocd
./bootstrap with-submodules
./configure –enable-internal-libjaylink=yes –enable-usbprog=yes –enable-internal-jimtcl=yes
make
Invoke with:
~/openocd/src/openocd [ARG]
or install it in whatever place you wanted to.
If you encounter an error: Warn : Failed to open device: LIBUSB_ERROR_ACCESS Error: No J-Link device found
Run as root:
gpasswd -a $USER plugdev
echo ‘SUBSYSTEM==“usb”, MODE=“0660”, GROUP=“plugdev”’ > /etc/udev/rules.d/00-usb-permissions.rules
Reboot the system.
NOTE: this will give access to all USB devices!!!