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