-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
executable file
·54 lines (45 loc) · 1.48 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Welcome to OpenOCD!
===================
1. preinstall
sudo apt update
sudo apt install libftdi-dev
sudo apt install libusb-1.0-0-dev
sudo apt install texinfo
sudo apt install automake autoconf libtool pkg-config
2.
sudo aclocal
sudo libtoolize --force
sudo automake --add-missing
sudo autoreconf
./configure --prefix=/opt/openocd --enable-maintainer-mode --enable-ftdi --enable-target64
make && make install
3.
openocd 0.12.0 code base:
https://git.code.sf.net/p/openocd/code
jimtcl:
https://github.com/msteveb/jimtcl
libjaylink:
http://repo.or.cz/r/libjaylink.git
4.
OpenOcd need to receive 64 bits address from gdb on aarch64:
a. normal
https://www.mediafire.com/file/fi4mstilpruspkv/build_aarch64_gdb.sh
b. lzma section read
https://www.mediafire.com/file/a1xeyw0l3nvhrid/build_aarch64_lzma_gdb.sh
c. gdbserver with compiler shared libs run in target
https://www.mediafire.com/file/l5bh2knh0lu4ix2/build_aarch64_gdbserver.sh
5.
After configure and make, remove directory .git
Import OpenOcd peoject in eclipse.
Search all "Makefile" and change -O2, -O3 to -O0
make clean && make
Now you can debug and set breakpoint in OpenOcd source.
6.
How to use OpenOcd in eclipse
http://fatalfeel.blogspot.com/2015/12/openocd-with-eclipse-debug-kernel-of.html
7.
bus blaster v3c v4.1a jtag to swd & swd to jtag
https://fatalfeel.blogspot.com/2013/09/bus-blaster-flash-to-swd-mode-in-openocd.html
8.
The script help you always hook even target power reset
https://www.mediafire.com/file/tfhu2mxr0mvjp34/ocd_service.sh