-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·34 lines (28 loc) · 900 Bytes
/
install.sh
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
#!/bin/sh
set -e
# general update
sudo apt-get update
sudo apt-get install emacs
# install flashgit
git clone https://www.flashrom.org/git/flashrom.git
cd flashrom
sudo make CONFIG_ENABLE_LIBPCI_PROGRAMMERS=no CONFIG_ENABLE_LIBUSB0_PROGRAMMERS=no CONFIG_ENABLE_LIBUSB1_PROGRAMMERS=no install
cd ..
# program script
chmod +x program.sh
# install openocd
sudo apt-get install git autoconf libtool make pkg-config libusb-1.0-0 libusb-1.0-0-dev telnet
sudo apt-get install libtool automake libusb-1.0.0-dev texinfo libusb-dev libyaml-dev pkg-config
git clone https://github.com/SpinalHDL/openocd_riscv.git
cd openocd_riscv/
#git apply ../open_ocd.patch
git submodule init
git submodule update
./bootstrap || true
./bootstrap
./configure --enable-ftdi --enable-dummy --enable-maintainer-mode --enable-bcm2835gpio --enable-sysfsgpio
make
sudo make install
cd ..
# open ocd script
chmod +x openocd.sh