Skip to content

Commit e08bc13

Browse files
author
Olivier Gillet
committed
No longer uses OpenOCD legacy FTDI support
2 parents c7dbcf0 + 4a35bdf commit e08bc13

File tree

4 files changed

+17
-19
lines changed

4 files changed

+17
-19
lines changed

0_install-toolchain.sh

+12-15
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
#!/usr/bin/env bash
22

3-
set -x
3+
# set -x
4+
5+
# fix apt warnings like:
6+
# ==> default: dpkg-preconfigure: unable to re-open stdin: No such file or directory
7+
# http://serverfault.com/questions/500764/dpkg-reconfigure-unable-to-re-open-stdin-no-file-or-directory
8+
export LANGUAGE=en_US.UTF-8
9+
export LANG=en_US.UTF-8
10+
export LC_ALL=en_US.UTF-8
11+
locale-gen en_US.UTF-8
12+
dpkg-reconfigure locales
413

514
# fix apt warnings like:
615
# ==> default: dpkg-preconfigure: unable to re-open stdin: No such file or directory
@@ -17,18 +26,6 @@ sudo apt-get update -qq
1726
sudo apt-get install -y linux-image-extra-virtual
1827
sudo modprobe ftdi_sio vendor=0x0403 product=0x6001
1928

20-
# Install FTDI lib
21-
# cd /home/vagrant
22-
# wget -nv http://www.ftdichip.com/Drivers/D2XX/Linux/libftd2xx-x86_64-1.3.6.tgz
23-
# tar xfz libftd2xx-x86_64-1.3.6.tgz
24-
# cd release/build
25-
# cp -r lib* /usr/local/lib
26-
# chmod 0755 /usr/local/lib/libftd2xx.so.1.3.6
27-
# ln -sf /usr/local/lib/libftd2xx.so.1.3.6 /usr/local/lib/libftd2xx.so
28-
# cd /home/vagrant
29-
# rm -rf release
30-
# rm *.tgz
31-
3229
# Install basic development tools
3330
sudo dpkg --add-architecture i386
3431
sudo apt-get update -qq
@@ -50,7 +47,7 @@ cd /home/vagrant
5047
wget -nv https://downloads.sourceforge.net/project/openocd/openocd/0.9.0/openocd-0.9.0.tar.gz
5148
tar xfz openocd-0.9.0.tar.gz
5249
cd openocd-0.9.0
53-
./configure --enable-ftdi --enable-legacy-ft2232-libftdi --enable-stlink
50+
./configure --enable-ftdi --enable-stlink
5451
make
5552
sudo make install
5653
cd /home/vagrant
@@ -81,7 +78,7 @@ echo 'SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", ATTRS{idVendor}=="0403", ATTRS{idPro
8178
sudo udevadm control --reload-rules
8279
sudo udevadm trigger
8380

84-
# Install toolchain for STM32F4
81+
# Install toolchain for STM32F
8582
cd /home/vagrant
8683
wget -nv https://launchpad.net/gcc-arm-embedded/4.8/4.8-2013-q4-major/+download/gcc-arm-none-eabi-4_8-2013q4-20131204-linux.tar.bz2
8784
tar xjf gcc-arm-none-eabi-4_8-2013q4-20131204-linux.tar.bz2

1_clone-code.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#!/usr/bin/env bash
22

3-
set -x
3+
# set -x
44

55
# Code is stored in the VM itself
6-
# CODE_DIRECTORY=/home/vagrant
6+
# CODE_ROOT=/home/vagrant
7+
78
# Code is stored in a directory shared between the VM and the host.
89
CODE_ROOT=/vagrant
910
WORKING_DIR_NAME=eurorack-modules

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ See [stmlib/makefile.inc](https://github.com/pichenettes/stmlib/blob/master/make
8787

8888
Another way (e.g. to test if settings are correct) is to just specify the value in the call to `make`:
8989

90-
PGM_INTERFACE=arm-usb-tiny-h make -f braids/makefile upload
90+
PGM_INTERFACE=ftdi/olimex-arm-usb-tiny-h make -f braids/makefile upload
9191

9292
### Custom repository URL
9393
If you want to build code from your own github fork, you can specify the repository to clone when you create the VM via the `USER_GITHUB_URL` environment variable, e.g.

Vagrantfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,5 @@ Vagrant.configure(2) do |config|
6262

6363
# provisioning scripts
6464
config.vm.provision :shell, path: "0_install-toolchain.sh"
65-
config.vm.provision :shell, path: "1_clone-code.sh", args: "#{ENV['USER_GITHUB_URL']}"
65+
config.vm.provision :shell, path: "1_clone-code.sh", args: "#{ENV['USER_GITHUB_URL']}", privileged: false
6666
end

0 commit comments

Comments
 (0)