Project

General

Profile

Building firmware » History » Version 5

Anonymous, 02/19/2016 10:52 PM

1 1
2 5
h1. Building FPGA and ZPU images
3 3
4 1
5 5
It's generally not necessary to build FPGA and ZPU images, as stable builds can be downloaded from "people.osmocom.org":http://people.osmocom.org/ipse/umtrx-v2/current/. 
6 1
7 5
These instructions are for if you want to _participate_ in ZPU/FPGA development.
8
9
10
h2. Building ZPU firmware and bootloader
11
12
13 2
1. Get the latest stable version of ZPU toolchain: http://opensource.zylin.com/zpudownload.html
14 1
2. Build the firmware and the bootloader:
15 5
<pre>
16 1
mkdir <UHD-dir>/firmware/zpu_build
17
cd <UHD-dir>/firmware/zpu_build
18
export PATH=$PATH:<path-to-zpu-elf-gcc>
19
cmake ../zpu
20
make
21 5
</pre>
22 1
23
24
25 5
h2. Building the FPGA
26
27
28 1
1. Setup Xilinx tools environment:
29 5
<pre>
30 1
. /opt/Xilinx/14.2/ISE_DS/settings64.sh
31 5
</pre>
32 1
2. Update the ZPU bootloader:
33 5
<pre>
34 1
cp <UHD-dir>/firmware/zpu_build/usrp2p/bootloader/bootloader.rmi <UHD-path>/fpga/usrp2/top/N2x0/bootloader_umtrx.rmi
35 5
</pre>
36 1
3. Go to the FPGA part of UHD and build:
37 5
<pre>
38 1
cd <UHD-path>/fpga/usrp2/top/N2x0
39 5
make [[UmTRX]]
40
</pre>
41 1
42
43
44 5
h2. Flashing images
45
46
47
Once the build is completed images can be "flashed to [[UmTRX]]":http://umtrx.org/hardware/flashing/.
Add picture from clipboard (Maximum size: 48.8 MB)