µracoli Manual  Version foo
openocd-selfbuild.md
1 # Openocd self compiling on Ubuntu {#pgOpenocd_selfbuild}
2 
3 ## Links
4 
5 - https://github.com/RIOT-OS/RIOT/wiki/OpenOCD
6 - http://jjmilburn.github.io/2014/09/18/Atmel-SAMD20-EclipseCDT/
7 - http://karibe.co.ke/2013/08/setting-up-linux-opensource-build-and-debug-tools-for-freescale-freedom-board-frdm-kl25z/
8 
9 ## Commands
10 
11  dmesg
12  sudo apt-get install build-essential autoconf automake libtool libusb-dev libusb-1.0-0-dev libhidapi-dev
13  sudo apt-get install build-essential autoconf automake libtool libusb-dev libusb-1.0-0-dev
14  sudo apt-get install libudev-dev
15  cd ..
16  git clone git://github.com/signal11/hidapi.git
17  mv hidapi hidapi-git-anon
18  cd hidapi-git-anon/
19  ./bootstrap
20  ./configure
21  make
22  sudo make install
23  wget http://sourceforge.net/projects/openocd/files/openocd/0.9.0/openocd-0.9.0.zip
24  unzip openocd-0.9.0.zip
25  cd openocd-0.9.0/
26  ./configure --prefix=/opt/openocd-0.9.0
27  make
28  sudo make install
29  /opt/openocd-0.9.0/bin/openocd
30  sudo ln -s /usr/local/lib/libhidapi-hidraw.so.0 /usr/lib/libhidapi-hidraw.so.0
31  /opt/openocd-0.9.0/bin/openocd
32  sudo cp contrib/99-openocd.rules /etc/udev/rules.d/99-openocd.rules
33  sudo udevadm control --reload-rules
34  /opt/openocd-0.9.0/bin/openocd -f /./opt/openocd-0.9.0/share/openocd/scripts/board/atmel_samr21_xplained_pro.cfg