Compiling OpenOCD For SolidRun iMX* Based Products
The purpose of this document is to cover compiling OpenOCD directly on the developer board specifically for using OpenOCD to flash connected devices via the imx_gpio interface. We will use Debian as the base for the instructions, however the general procedure should work with slight modification on most distributions. Cross-compiling is possible but is currently not in the scope of this document.
Prepare Debian for compiling
Start by making sure Debian is updated to the latest version.
Next, run the following command to install all the tools needed to build OpenOCD from source