Closed ghost closed 8 years ago
You need openocd from the git repository. See the manual.
Confirmed that building openocd from the git repository works fine. Please apply the following patch so users are not confused.
From aabce5b1f5d6cd1f20c9a0b6db8fd60e2893f5bb Mon Sep 17 00:00:00 2001
From: Joe Britton <joe.britton@gmail.com>
Date: Sun, 20 Mar 2016 11:28:18 -0600
Subject: [PATCH] Fix typo. And in build of openocd on Ubuntu the aclocal
dependency is provided by automake.
adduser requires root
conda installation requires user to build OpenOCD by hand.
---
doc/manual/installing.rst | 38 +++++++++++++++++++++-----------------
1 file changed, 21 insertions(+), 17 deletions(-)
diff --git a/doc/manual/installing.rst b/doc/manual/installing.rst
index 43f7540..452f40d 100644
--- a/doc/manual/installing.rst
+++ b/doc/manual/installing.rst
@@ -40,6 +40,27 @@ If your ``$PATH`` misses reference the ``miniconda3/bin`` or ``anaconda3/bin`` y
$ export PATH=$HOME/miniconda3/bin:$PATH
+.. _install-openocd:
+
+Installing OpenOCD
+^^^^^^^^^^^^^^^^^^^
+The following instructions are for Ubuntu.
+
+* Install JTAG tools needed to program the Pipistrello and KC705:
+
+ ::
+
+ $ cd ~/artiq-dev
+ $ git clone https://github.com/ntfreak/openocd.git
+ $ cd openocd
+ $ sudo apt-get install build-essential libtool libusb-1.0-0-dev libftdi-dev automake
+ $ ./bootstrap
+ $ ./configure
+ $ make
+ $ sudo make install
+ $ sudo cp contrib/99-openocd.rules /etc/udev/rules.d
+ $ sudo adduser $USER plugdev
+
Installing the ARTIQ packages
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -189,23 +210,6 @@ These steps are required to generate gateware bitstream (``.bit``) files, build
.. note::
The options ``develop`` and ``--user`` are for setup.py to install Migen in ``~/.local/lib/python3.5``.
-.. _install-openocd:
-
-* Install JTAG tools needed to program the Pipistrello and KC705:
-
- ::
-
- $ cd ~/artiq-dev
- $ git clone https://github.com/ntfreak/openocd.git
- $ cd openocd
- $ sudo apt-get install build-essentials libtool libusb-1.0-0-dev libftdi-dev
- $ ./bootstrap
- $ ./configure
- $ make
- $ sudo make install
- $ sudo cp contrib/99-openocd.rules /etc/udev/rules.d
- $ adduser $USER plugdev
-
.. _install-flash-proxy:
* Install the required flash proxy gateware bitstreams:
--
2.5.0
Sounds good. Please see https://github.com/m-labs/artiq/blob/master/CONTRIBUTING.rst#contributing-code
Signed-off-by: Joe Britton joe.britton@gmail.com
The formatting was wrong and the location you move the openocd section to is also bad. I redid the changes. Ok now?
Thanks for applying the patch Robert. I've rebuilt the sphinx docs and it looks good from my end. -Joe
On Sun, Mar 20, 2016 at 1:20 PM, Robert Jördens notifications@github.com wrote:
The formatting was wrong and the location you move the openocd section to is also bad. I redid the changes. Ok now?
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/m-labs/artiq/issues/340#issuecomment-198995473
Flashing pipistrello on Ubuntu 14.04 following Installing ARTIQ instructions. First problem is openocd is neither part of conda deployment nor is user instructed where to obtain openocd.
Install openocd using apt-get.
$ sudo apt-get install openocd
Try to run artiq_flash.Problem is that artiq_flash assumes location for .bit and .cfg files which is incompatible with the Getting Started documentation.
https://github.com/m-labs/artiq/blob/6dd1eb2e928476fdc4c364fae26b8bc14c0fea54/artiq/frontend/artiq_flash.py#L124