root / host / docs / usrp2.rst @ 77c578fc
History | View | Annotate | Download (1.91 KB)
| 1 |
======================================================================== |
|---|---|
| 2 |
UHD - USRP2 App Notes |
| 3 |
======================================================================== |
| 4 |
|
| 5 |
.. contents:: Table of Contents |
| 6 |
|
| 7 |
------------------------------------------------------------------------ |
| 8 |
Building firmware and FPGA images |
| 9 |
------------------------------------------------------------------------ |
| 10 |
|
| 11 |
^^^^^^^^^^^^^^^^^^ |
| 12 |
FPGA Image |
| 13 |
^^^^^^^^^^^^^^^^^^ |
| 14 |
Xilinx ISE 10.1 is required to build the FPGA image for the USRP2 |
| 15 |
(newer version of ISE are known to build buggy images). |
| 16 |
The build requires that you have a unix-like environment with make. |
| 17 |
Make sure that xtclsh from the Xilinx ISE bin directory is in your $PATH. |
| 18 |
|
| 19 |
Run the following commands: |
| 20 |
:: |
| 21 |
|
| 22 |
cd <uhd-repo-path>/fpga/usrp2/top/u2_rev3 |
| 23 |
make bin |
| 24 |
|
| 25 |
*The image file will be ./build/u2_rev3.bin* |
| 26 |
|
| 27 |
^^^^^^^^^^^^^^^^^^ |
| 28 |
Firmware Image |
| 29 |
^^^^^^^^^^^^^^^^^^ |
| 30 |
The Microblaze GCC compiler from the Xilinx EDK is required to build the firmware. |
| 31 |
The build requires that you have a unix-like environment with autotools and make. |
| 32 |
Make sure that mb-gcc from the Xilinx EDK/microblaze directory is in your $PATH. |
| 33 |
|
| 34 |
Run the following commands: |
| 35 |
:: |
| 36 |
|
| 37 |
cd <uhd-repo-path>/firmware/microblaze |
| 38 |
./boostrap |
| 39 |
./configure host=mb |
| 40 |
make |
| 41 |
|
| 42 |
*The image file will be ./apps/txrx.bin* |
| 43 |
|
| 44 |
------------------------------------------------------------------------ |
| 45 |
Load the images onto the SD card |
| 46 |
------------------------------------------------------------------------ |
| 47 |
**Warning!** |
| 48 |
Use the u2_flash_tool with caution. If you specify the wrong device node, |
| 49 |
you could overwrite your hard drive. Make sure that --dev= specifies the SD card. |
| 50 |
|
| 51 |
Load the FPGA image: |
| 52 |
|
| 53 |
:: |
| 54 |
|
| 55 |
cd <uhd-repo-path>/firmware/microblaze |
| 56 |
sudo ./u2_flash_tool --dev=/dev/sd<XXX> -t fpga -w <path_to_fpga_image> |
| 57 |
|
| 58 |
Load the firmware image: |
| 59 |
|
| 60 |
:: |
| 61 |
|
| 62 |
cd <uhd-repo-path>/firmware/microblaze directory |
| 63 |
sudo ./u2_flash_tool --dev=/dev/sd<XXX> -t s/w -w <path_to_firmware_image> |