Skip to content

Commit 2311642

Browse files
committedJun 14, 2015
manual: add instructions to install from conda
1 parent 2ed81f7 commit 2311642

File tree

1 file changed

+80
-3
lines changed

1 file changed

+80
-3
lines changed
 

Diff for: ‎doc/manual/installing.rst

+80-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,81 @@
11
Installing ARTIQ
22
================
33

4+
The preferred way of installing ARTIQ is through the use of the conda package manager.
5+
The conda package contains pre-built binaries that you can directly flash to your board.
6+
But you can also :ref:`install from sources <install-from-sources>`.
7+
8+
.. note:: Only the linux-64 conda package contains the FPGA/BIOS/runtime pre-built binaries.
9+
10+
Installing using conda
11+
----------------------
12+
13+
Installing Anaconda or Miniconda
14+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15+
16+
* You can either install Anaconda (chose Python 3.4) from https://store.continuum.io/cshop/anaconda/
17+
18+
* Or install the more minimalistic Miniconda (chose Python3.4) from http://conda.pydata.org/miniconda.html
19+
20+
After installing either Anaconda or Miniconda, open a new terminal and make sure the following command works::
21+
22+
$ conda
23+
24+
If it prints the help of the ``conda`` command, your install is OK.
25+
If not, then make sure your ``$PATH`` environment variable contains the path to anaconda3/bin (or miniconda3/bin)::
26+
27+
$ echo $PATH
28+
/home/fallen/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
29+
30+
If your ``$PATH`` misses reference the miniconda3/bin or anaconda3/bin you can fix this by typing::
31+
32+
$ export PATH=$HOME/miniconda3:$PATH
33+
34+
Installing the host side software
35+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
36+
37+
For this, you need to add our binstar repositories to your conda configuration::
38+
39+
$ conda config --add channels fallen
40+
$ conda config --add channels http://conda.binstar.org/fallen/channel/dev
41+
42+
Then you can install the ARTIQ package, it will pull all the necessary dependencies::
43+
44+
$ conda install artiq
45+
446
Preparing the core device FPGA board
5-
------------------------------------
47+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
48+
49+
You now need to flash 3 things on the FPGA board:
50+
51+
* The FPGA bitstream
52+
* The BIOS
53+
* The ARTIQ runtime
54+
55+
To do that:
56+
57+
* On Pipistrello board::
58+
59+
$ artiq_flash.sh -t pipistrello
60+
61+
* On KC705 board::
62+
63+
$ artiq_flash.sh
64+
65+
Next step (for KC705) is to flash MAC and IP addresses to the board:
66+
67+
* Get the :ref:`Flash proxy <install-flash-proxy>` for your board.
68+
* See :ref:`those instructions <flash-mac-ip-addr>` to flash MAC and IP addresses.
69+
70+
.. _install-from-sources:
71+
72+
Installing from source
73+
----------------------
74+
75+
You can skip this if you already installed from conda.
76+
77+
Preparing the core device FPGA board
78+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
679

780
These steps are required to generate bitstream (``.bit``) files, build the MiSoC BIOS and ARTIQ runtime, and flash FPGA boards. If the board is already flashed, you may skip those steps and go directly to `Installing the host-side software`.
881

@@ -65,6 +138,8 @@ These steps are required to generate bitstream (``.bit``) files, build the MiSoC
65138
.. note::
66139
It is safe to ignore the message "Could NOT find LIBFTD2XX" (libftd2xx is different from libftdi, and is not required).
67140

141+
.. _install-flash-proxy:
142+
68143
* Install the required flash proxy bitstreams:
69144

70145
The purpose of the flash proxy bitstream is to give programming software fast JTAG access to the flash connected to the FPGA.
@@ -124,6 +199,8 @@ These steps are required to generate bitstream (``.bit``) files, build the MiSoC
124199

125200
The communication parameters are 115200 8-N-1.
126201

202+
.. _flash-mac-ip-addr:
203+
127204
* Set the MAC and IP address in the :ref:`core device configuration flash storage <core-device-flash-storage>`:
128205

129206
* You can either set it by generating a flash storage image and then flash it: ::
@@ -189,7 +266,7 @@ To flash the ``idle`` kernel:
189266
.. note:: You can find more information about how to use the ``artiq_coreconfig`` tool on the :ref:`Utilities <core-device-configuration-tool>` page.
190267

191268
Installing the host-side software
192-
---------------------------------
269+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
193270

194271
* Install LLVM and the llvmlite Python bindings: ::
195272

@@ -234,7 +311,7 @@ Ubuntu 14.04 specific instructions
234311

235312
This command installs all the required packages: ::
236313

237-
$ sudo apt-get install build-essential autotools-dev file git patch perl xutils-devs python3-pip texinfo flex bison libmpc-dev python3-serial python3-dateutil python3-prettytable python3-setuptools python3-numpy python3-scipy python3-sphinx python3-h5py python3-gi python3-dev python-dev subversion cmake libusb-dev libftdi-dev pkg-config
314+
$ sudo apt-get install build-essential autotools-dev file git patch perl xutils-devs python3-pip texinfo flex bison libmpc-dev python3-serial python3-dateutil python3-prettytable python3-setuptools python3-numpy python3-scipy python3-sphinx python3-h5py python3-dev python-dev subversion cmake libusb-dev libftdi-dev pkg-config
238315

239316
Note that ARTIQ requires Python 3.4 or above.
240317

0 commit comments

Comments
 (0)
Please sign in to comment.