Skip to content

Commit e5acdfe

Browse files
author
whitequark
committedJul 26, 2015
Update manual install instructions.
·
8.00.1
1 parent aba2d3f commit e5acdfe

File tree

1 file changed

+25
-30
lines changed

1 file changed

+25
-30
lines changed
 

‎doc/manual/installing.rst

Lines changed: 25 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -99,31 +99,40 @@ These steps are required to generate bitstream (``.bit``) files, build the MiSoC
9999
.. note::
100100
The options ``develop`` and ``--user`` are for setup.py to install Migen in ``~/.local/lib/python3.4``.
101101

102-
* Install OpenRISC GCC/binutils toolchain (or1k-elf-...): ::
102+
* Install OpenRISC binutils (or1k-linux-...): ::
103103

104104
$ cd ~/artiq-dev
105-
$ git clone https://github.com/openrisc/or1k-src
106-
$ cd or1k-src
107-
$ mkdir build
108-
$ cd build
109-
$ ../configure --target=or1k-elf --enable-shared --disable-itcl \
110-
--disable-tk --disable-tcl --disable-winsup \
111-
--disable-gdbtk --disable-libgui --disable-rda \
112-
--disable-sid --disable-sim --disable-gdb \
113-
--disable-newlib --disable-libgloss --disable-werror
105+
$ wget https://ftp.gnu.org/gnu/binutils/binutils-2.25.1.tar.bz2
106+
$ tar xvf binutils-2.25.1.tar.bz2
107+
$ rm binutils-2.25.1.tar.bz2
108+
109+
$ mkdir binutils-2.25.1/build
110+
$ cd binutils-2.25.1/build
111+
$ ../configure --target=or1k-linux --prefix=/usr/local
114112
$ make -j4
115113
$ sudo make install
116114

115+
.. note::
116+
We're using an ``or1k-linux`` target because it is necessary to enable
117+
shared library support in ``ld``, not because Linux is involved.
118+
119+
* Install LLVM and Clang: ::
120+
117121
$ cd ~/artiq-dev
118-
$ git clone https://github.com/openrisc/or1k-gcc
119-
$ cd or1k-gcc
122+
$ git clone https://github.com/openrisc/llvm-or1k
123+
$ cd llvm-or1k/tools
124+
$ git clone https://github.com/openrisc/clang-or1k clang
125+
$ cd ..
126+
120127
$ mkdir build
121128
$ cd build
122-
$ ../configure --target=or1k-elf --enable-languages=c \
123-
--disable-shared --disable-libssp
129+
$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/llvm-or1k -DLLVM_TARGETS_TO_BUILD="OR1K;X86" -DCMAKE_BUILD_TYPE=Rel -DLLVM_ENABLE_ASSERTIONS=ON
124130
$ make -j4
125131
$ sudo make install
126132

133+
.. note::
134+
Compilation of LLVM can take more than 30 min on some machines.
135+
127136
.. _install-xc3sprog:
128137

129138
* Install JTAG tools needed to program the Pipistrello and KC705:
@@ -181,6 +190,7 @@ These steps are required to generate bitstream (``.bit``) files, build the MiSoC
181190
::
182191

183192
$ cd ~/artiq-dev/misoc
193+
$ export PATH=$PATH:/usr/local/llvm-or1k/bin
184194

185195
* For Pipistrello::
186196

@@ -279,19 +289,7 @@ To flash the ``idle`` kernel:
279289
Installing the host-side software
280290
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
281291

282-
* Install LLVM and the llvmlite Python bindings: ::
283-
284-
$ cd ~/artiq-dev
285-
$ git clone https://github.com/openrisc/llvm-or1k
286-
$ cd llvm-or1k/tools
287-
$ git clone https://github.com/openrisc/clang-or1k clang
288-
289-
$ cd ..
290-
$ mkdir build
291-
$ cd build
292-
$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/llvm-or1k -DLLVM_TARGETS_TO_BUILD="OR1K;X86" -DCMAKE_BUILD_TYPE=Debug
293-
$ make -j4
294-
$ sudo make install
292+
* Install the llvmlite Python bindings: ::
295293

296294
$ cd ~/artiq-dev
297295
$ git clone https://github.com/numba/llvmlite
@@ -304,9 +302,6 @@ Installing the host-side software
304302
.. note::
305303
llvmlite is in development and its API is not stable yet. Commit ID ``11a8303d02e3d6dd2d1e0e9065701795cd8a979f`` is known to work.
306304

307-
.. note::
308-
Compilation of LLVM can take more than 30 min on some machines.
309-
310305
* Install ARTIQ: ::
311306

312307
$ cd ~/artiq-dev

0 commit comments

Comments
 (0)
Please sign in to comment.