|
1 | 1 | Installing ARTIQ
|
2 | 2 | ================
|
3 | 3 |
|
| 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 | + |
4 | 46 | 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 | +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
6 | 79 |
|
7 | 80 | 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`.
|
8 | 81 |
|
@@ -65,6 +138,8 @@ These steps are required to generate bitstream (``.bit``) files, build the MiSoC
|
65 | 138 | .. note::
|
66 | 139 | It is safe to ignore the message "Could NOT find LIBFTD2XX" (libftd2xx is different from libftdi, and is not required).
|
67 | 140 |
|
| 141 | +.. _install-flash-proxy: |
| 142 | + |
68 | 143 | * Install the required flash proxy bitstreams:
|
69 | 144 |
|
70 | 145 | 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
|
124 | 199 |
|
125 | 200 | The communication parameters are 115200 8-N-1.
|
126 | 201 |
|
| 202 | +.. _flash-mac-ip-addr: |
| 203 | + |
127 | 204 | * Set the MAC and IP address in the :ref:`core device configuration flash storage <core-device-flash-storage>`:
|
128 | 205 |
|
129 | 206 | * You can either set it by generating a flash storage image and then flash it: ::
|
@@ -189,7 +266,7 @@ To flash the ``idle`` kernel:
|
189 | 266 | .. note:: You can find more information about how to use the ``artiq_coreconfig`` tool on the :ref:`Utilities <core-device-configuration-tool>` page.
|
190 | 267 |
|
191 | 268 | Installing the host-side software
|
192 |
| ---------------------------------- |
| 269 | +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
193 | 270 |
|
194 | 271 | * Install LLVM and the llvmlite Python bindings: ::
|
195 | 272 |
|
@@ -234,7 +311,7 @@ Ubuntu 14.04 specific instructions
|
234 | 311 |
|
235 | 312 | This command installs all the required packages: ::
|
236 | 313 |
|
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 |
238 | 315 |
|
239 | 316 | Note that ARTIQ requires Python 3.4 or above.
|
240 | 317 |
|
|
0 commit comments