Sunteți pe pagina 1din 3

RELOADING THE IMAGE TO THE SD CARD FOR USRP2 7/06/11 1. Create a folder for the image files in Ubuntu.

2. Download the tools for loading binaries onto an SD card to the image folder you just created from the following links:
http://ettus-apps.sourcerepo.com/redmine/ettus/projects/uhd/repository/revisions/master/changes/host/utils/usrp2_card_burner.py

and
http://ettus-apps.sourcerepo.com/redmine/ettus/projects/uhd/repository/revisions/master/changes/host/utils/usrp2_card_burner_gui.py

The first link is to a command line version of the burner and the second is to a GUI version. Do not forget to enable these files with the chmod +x filename command. 3. Download the firmware and the FPGA image files. a. For GNU Radio find these at: http://code.ettus.com/redmine/ettus/projects/public/wiki/U2binaries Note: choose the version that suits your application/daughter board, e.g. UDP version for Matlab and WBX board. There are three tables on the website. Ignore any of the files under Older Versions. i. The first table is for the FPGA image. This programs the FPGA in the USRP2. If you are using GNURADIO software, you must use the Raw Ethernet file. If you are using MatLab, you can use either the UDP file in table 1 or the UHD FPGA in table 3 (UHD Firmware and FPGA images). ii. The second table is for the USRP2 processor firmware. This is determined by the program you are using to drive the USRP2 and the daughter board you have installed. For the WBX board under GNURADIO, you must use the Raw Ethernet, with WBX file. For the WBX board under MatLab, you can use either the UDP, No UHD, with WBX file in table 2 or the UHD Firmware file in table three. For MatLab, it would be prudent to use either the files from tables 1 and 2 or both files in table 3. iii. The third table is for both the FPGA image and the processor firmware if you software uses either UHD or UDP. Use these as explained above. b. For MATLAB use the following (or latest versions): WBX: http://ettus.com/u2bin/txrx_wbx_udp_20100507.bin XCVR2450: http://ettus.com/u2bin/txrx_xcvr_udp_20100507.bin All other daughterboards: http://ettus.com/u2bin/txrx_udp_20100507.bin The following FPGA image can be used with all daughterboards: http://code.ettus.com/redmine/ettus/attachments/74 c. For UHD, go to: http://code.ettus.com/redmine/ettus/projects/uhd/wiki Look down the page and find BINARY IMAGES. Under that will be a list of image locations. Click on the latest release. It will open a page with a list images. Find and click on the images-only/ link. Click on the file ending tar.gz to download and save the tarball.

Extract the tarball file into a directory with the SD card burner. The files are clearly marked. For example, the firmware for the USRP2 will be usrp2_fw.bin and the FPGA image will be in usrp2_fpga.bin or similar file names.

4. Put the SD card into the USB reader/adapter and put it into an open USB port. 5. Insert the SD memory card into the USB burner. 6. Launch the USRP2 SD Card Burner GUI by typing sudo python usrp2_card_burner_gui.py at the operating system command line. 7. Select the drive for the memory card device. For example, if the memory card device is on the D drive, select \D. Or if it is at /dev/sdb, select that. 8. To identify the location of you SD reader following the instructions found below. 9. From the operating system command line, change to the directory containing the USRP2 files. 10. Click the Firmware Image button and navigate to the firmware image file. 11. Click the FPGA Image button and navigate to the image file. 12. Click the Burn SD Card button. You should receive a confirmation window when using the GUI burner. 13. Unmount the SD reader and remove the SD card. 14. Place the SD card in the USRP2 and power it up. Locating the SD Card Reader 1. List the raw scsi devices on the computer by entering: a. sudo sg_scan i b. sudo sg_map 2. You will get the following response or similar:

Note that the USB SD Reader is clearly identified as being under /dev/sg2/ . Look for that dev name in the list you get under sg_map and you see it corresponds to /dev/sdb. This last dev name is what you need.

TROUBLESHOOTING If you get a command not found error when attempting the sg_scan or sg_map commands, you do not have the utilities installed. Type: sudo apt-get install sg3-utils to download and install the utilities. If you get a permission denied error when attempting to burn the SD card, you have either failed to start the card burner utility with sudo or the SD card is locked. If the card is locked, simply move the tiny lock slider to the unlocked position (it is often hard to see). CONTINUING WITH SET UP If you are configuring the USRP2 for first time use, see instructions at: http://www.ettus.com/uhd_docs/manual/html/usrp2.html It also contains the command line instructions for the command line SD card burner.

S-ar putea să vă placă și