日誌


2013/10/29

N200 のファーム類書き換え

Tweet ThisSend to Facebook | by 山田洋
$ cd /usr/local/lib/uhd/utils

$ sudo uhd_images_downloader
Downloading images from: http://files.ettus.com/binaries/master_images/archive/uhd-images_003.005.004-145-ge6f21482.zip
 13.33 MB/13.33 MB (100.00%)
Images successfully installed to: /usr/local/share/uhd/images

$ sudo ./usrp_n2xx_net_burner.py --addr=192.168.10.2 --fpga=/usr/local/share/uhd/images/usrp_n200_r4_fpga.bin
USRP-N2XX found.
Hardware type: n200_r4
Flash size: 4194304
Sector size: 65536

Begin FPGA write: this should take about 1 minute...
Erasing 1572864 bytes at 1572864
Writing image
Verifying data
Read back 890592 bytes
Success.
Time elapsed: 37.595583 seconds

$ sudo ./usrp_n2xx_net_burner.py --addr=192.168.10.2 --fw=/usr/local/share/uhd/images/usrp_n200_fw.bin
USRP-N2XX found.
Hardware type: n200_r4
Flash size: 4194304
Sector size: 65536

Begin firmware write: this should take about 1 second...
Erasing 31744 bytes at 3145728
Writing image
Verifying data
Read back 16383 bytes
Success.
Time elapsed: 1.051296 seconds

USRP N200の電源を落として入れ直し

$ uhd_usrp_probe
linux; GNU C++ version 4.7.0; Boost_104900; UHD_003.004.002-0-unknown

-- Opening a USRP2/N-Series device...
Error: RuntimeError:
Please update the firmware and FPGA images for your device.
See the application notes for USRP2/N-Series for instructions.
Expected protocol compatibility number [7 to 11], but got 12:
The firmware build is not compatible with the host code build.

ランタイムエラーは直らない。
後日わかったこと:GNU Radio 3.6.4.1インストールずみのマシンに誤ってパッケージのGNU Radio(3.2.xあたり)を誤ってインストールした学生がいて、その後、パッケージを消去して、GNU Radio 3.6.5を上書きインストールした。その結果、上記の症状が出た。Ubuntu12.04をクリーンインストールして、GNU Radio 3.6.5をクリーンインストールしたら、上記エラーは解消した。

$ uhd_find_devices
linux; GNU C++ version 4.7.0; Boost_104900; UHD_003.004.002-0-unknown

--------------------------------------------------
-- UHD Device 0
--------------------------------------------------
Device Address:
    type: usrp2
    addr: 192.168.10.2
    name:
    serial:

これは正常。
16:28 | 投票する | 投票数(0) | コメント(0)