Navigate to /home/USERNAME/openocd-0.9.0/src to find the openocd binary. You will need superuser privileges (the sudo command) to run OpenOCD.

Preparing to Run OpenOCD

You can run openocd from /home/USERNAME/openocd-0.9.0/src, but you may encounter problems with configuration files. For a more in-depth discussion of these issues, see OpenOCD Config File Paths. This guide recommends that you create a new directory containing OpenOCD and its config files.

Create a new directory in /home/USERNAME called 'openocd-0.9.0-bin', and copy the openocd binary and the contents of /home/USERNAME/openocd-0.9.0/tcl to the new directory. You can do this from the terminal window with the collowing commands: