@@ -91,19 +91,19 @@ These steps are required to generate bitstream (``.bit``) files, build the MiSoC
91
91
92
92
$ cd ~/artiq-dev
93
93
$ git clone https://github.com/m-labs/migen
94
- $ cd ~/artiq-dev/ migen
94
+ $ cd migen
95
95
$ python3 setup.py develop --user
96
96
97
97
.. note ::
98
98
The options ``develop `` and ``--user `` are for setup.py to install Migen in ``~/.local/lib/python3.4 ``.
99
99
100
100
* Install OpenRISC GCC/binutils toolchain (or1k-elf-...): ::
101
101
102
- $ mkdir ~/artiq-dev
103
102
$ cd ~/artiq-dev
104
103
$ git clone https://github.com/openrisc/or1k-src
105
- $ mkdir ~/artiq-dev/or1k-src/build
106
- $ cd ~/artiq-dev/or1k-src/build
104
+ $ cd or1k-src
105
+ $ mkdir build
106
+ $ cd build
107
107
$ ../configure --target=or1k-elf --enable-shared --disable-itcl \
108
108
--disable-tk --disable-tcl --disable-winsup \
109
109
--disable-gdbtk --disable-libgui --disable-rda \
@@ -114,8 +114,9 @@ These steps are required to generate bitstream (``.bit``) files, build the MiSoC
114
114
115
115
$ cd ~/artiq-dev
116
116
$ git clone https://github.com/openrisc/or1k-gcc
117
- $ mkdir ~/artiq-dev/or1k-gcc/build
118
- $ cd ~/artiq-dev/or1k-gcc/build
117
+ $ cd or1k-gcc
118
+ $ mkdir build
119
+ $ cd build
119
120
$ ../configure --target=or1k-elf --enable-languages=c \
120
121
--disable-shared --disable-libssp
121
122
$ make -j4
@@ -127,7 +128,7 @@ These steps are required to generate bitstream (``.bit``) files, build the MiSoC
127
128
128
129
$ cd ~/artiq-dev
129
130
$ svn co https://xc3sprog.svn.sourceforge.net/svnroot/xc3sprog/trunk xc3sprog
130
- $ cd ~/artiq-dev/ xc3sprog
131
+ $ cd xc3sprog
131
132
$ cmake . && make
132
133
$ sudo make install
133
134
@@ -155,8 +156,10 @@ These steps are required to generate bitstream (``.bit``) files, build the MiSoC
155
156
156
157
$ cd ~/artiq-dev
157
158
$ git clone https://github.com/m-labs/bscan_spi_kc705
159
+ $ cd bscan_spi_kc705
160
+ $ make
158
161
159
- Build the bitstream and copy it to one of the folders above .
162
+ Then copy the generated `` bscan_spi_kc705.bit `` to `` ~/.migen ``, `` /usr/local/share/migen `` or `` /usr/share/migen `` .
160
163
161
164
* Download MiSoC: ::
162
165
@@ -276,19 +279,19 @@ Installing the host-side software
276
279
277
280
$ cd ~/artiq-dev
278
281
$ git clone https://github.com/openrisc/llvm-or1k
279
- $ cd ~/artiq-dev/ llvm-or1k/tools
282
+ $ cd llvm-or1k/tools
280
283
$ git clone https://github.com/openrisc/clang-or1k clang
281
284
282
- $ cd ~/artiq-dev/llvm-or1k
285
+ $ cd ..
283
286
$ mkdir build
284
- $ cd ~/artiq-dev/llvm-or1k/ build
287
+ $ cd build
285
288
$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/llvm-or1k -DLLVM_TARGETS_TO_BUILD=OR1K -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=ON
286
289
$ make -j4
287
290
$ sudo make install
288
291
289
292
$ cd ~/artiq-dev
290
293
$ git clone https://github.com/numba/llvmlite
291
- $ cd ~/artiq-dev/ llvmlite
294
+ $ cd llvmlite
292
295
$ patch -p1 < ~/artiq-dev/artiq/misc/llvmlite-add-all-targets.patch
293
296
$ PATH=/usr/local/llvm-or1k/bin:$PATH sudo -E python3 setup.py install
294
297
0 commit comments