23 lines
592 B
Markdown
23 lines
592 B
Markdown
# build openocd on cm4:
|
|
|
|
```
|
|
sudo apt update
|
|
sudo apt upgrade -y
|
|
sudo apt install git build-essential libtool autoconf texinfo libusb-1.0-0-dev libftdi1-dev libhidapi-dev pkg-config -y
|
|
sudo apt-get install pkg-config libjim-dev -y
|
|
|
|
git clone https://github.com/openocd-org/openocd.git
|
|
cd openocd
|
|
|
|
git fetch https://review.openocd.org/openocd refs/changes/18/8818/10 && git checkout -b change-8818 FETCH_HEAD
|
|
|
|
./bootstrap
|
|
./configure --enable-bcm2835gpio --enable-sysfsgpio
|
|
make
|
|
sudo make install
|
|
```
|
|
|
|
|
|
# Flash the radios
|
|
bash flash.sh -i swd0 -f merged.hex
|
|
bash flash.sh -i swd1 -f merged.hex |