Building firmware » History » Version 2
Anonymous, 02/19/2016 10:52 PM
1 | 1 | = Building FPGA and ZPU images = |
|
---|---|---|---|
2 | |||
3 | 2 | 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]. These instructions are for you only if you want to participate in ZPU/FPGA part development. |
|
4 | 1 | ||
5 | == Building ZPU firmware and bootloader == |
||
6 | |||
7 | 2 | 1. Get the latest stable version of ZPU toolchain: http://opensource.zylin.com/zpudownload.html |
|
8 | 2. Build the firmware and the bootloader: |
||
9 | 1 | {{{ |
|
10 | mkdir <UHD-dir>/firmware/zpu_build |
||
11 | cd <UHD-dir>/firmware/zpu_build |
||
12 | export PATH=$PATH:<path-to-zpu-elf-gcc> |
||
13 | cmake ../zpu |
||
14 | make |
||
15 | }}} |
||
16 | |||
17 | |||
18 | 2 | == Building the FPGA == |
|
19 | 1 | ||
20 | 2 | 1. Setup Xilinx tools environment: |
|
21 | 1 | {{{ |
|
22 | . /opt/Xilinx/14.2/ISE_DS/settings64.sh |
||
23 | }}} |
||
24 | 2 | 2. Update the ZPU bootloader: |
|
25 | 1 | {{{ |
|
26 | cp <UHD-dir>/firmware/zpu_build/usrp2p/bootloader/bootloader.rmi <UHD-path>/fpga/usrp2/top/N2x0/bootloader_umtrx.rmi |
||
27 | }}} |
||
28 | 2 | 3. Go to the FPGA part of UHD and build: |
|
29 | 1 | {{{ |
|
30 | cd <UHD-path>/fpga/usrp2/top/N2x0 |
||
31 | make UmTRX |
||
32 | }}} |
||
33 | |||
34 | |||
35 | == Flashing images == |
||
36 | |||
37 | When you're done with build, you could flash your images to UmTRX flash. For the process see [wiki:FlashingUmTRX]. |