Monday, May 5, 2025

How to Install OpenOCD on Ubuntu 22.04.5 LTS


$ sudo apt-get install build-essential pkg-config autoconf automake libtool libusb-dev libusb-1.0-0-dev libhidapi-dev
$ sudo apt-get install libtool libsysfs-dev
$ sudo apt-get install libjim-dev

$ git clone https://git.code.sf.net/p/openocd/code openocd-code

Configure and Build OpenOCD

$ cd openocd-code
$ ./bootstrap
$ ./configure

Install OpenOCD

$ sudo make install

Configuration files

/usr/local/share/openocd/scripts/board/xxx.cfg
/usr/local/share/openocd/scripts/target/xxx_soc.cfg
/usr/local/share/openocd/scripts/interface/ftdi/xxx_sdp.cfg


Wednesday, March 5, 2025

How do I allow non-root access to ttyUSBx

Best solution
 
sudo usermod -a -G dialout $USER
 
Just add your user to the dialout group so you have appropriate permissions on the device.

Tuesday, February 18, 2025

How to Install ClamAV on Ubuntu 22.04.5 LTS

  • Install ClamAV
    • sudo apt update && sudo apt upgrade
    • sudo apt install clamav clamav-daemon -y
  • Update ClamAV virus signatures
    • sudo systemctl stop clamav-freshclam
    • sudo freshclam
    • sudo systemctl start clamav-freshclam
  • ClamTK GUI
    • sudo apt-get install clamtk