-
Notifications
You must be signed in to change notification settings - Fork 13
OpenOCD
Carsten edited this page Mar 11, 2022
·
9 revisions
- Get the patched version of RISC-V OpenOCD
- Select the correct branch depending on the RISC-V core
Core Branch Note SweRV riscv-tapasco-swerv System bus access is disabled. SCR1 riscv-tapasco-scr1-no-bursts Write and read bursts are disabled. SCR1 riscv-tapasco-scr1-write-bursts Only read bursts are disabled. CVA6 riscv-tapasco-cva6 Patched write bursts as in riscv-tapasco-scr1-write-bursts and replaced read bursts of length=n
withn
bursts oflength=1
.SCR1 riscv-tapasco-cva6 The CVA6 branch seems to work for SCR1 too. Default riscv-tapasco - Compile C Cap'n Proto
git clone https://github.com/opensourcerouting/c-capnproto
cd c-capnproto
git submodule update --init --recursive
autoreconf -f -i -s
./configure
make
cd ..
- Move library c-capnproto/.libs/libcapnp_c.la into riscv-openocd/src/jtag/drivers/
- Move library c-capnproto/.libs/libcapnp_c.so into riscv-openocd/src/jtag/drivers/.libs/ (new directory)
- Build OpenOCD with:
./bootstrap
./configure --enable-tapascojtag
make
-
make install
(requires root permissions, otherwise directly usesrc/openocd
as the binary)