discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] problem of USRP2+WBX


From: YouheiFujii
Subject: Re: [Discuss-gnuradio] problem of USRP2+WBX
Date: Sun, 10 Oct 2010 13:18:52 +0900
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; ja; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4

Dear Matthias and all:

Thank you for your advice.


first you should make sure that the FPGA bitstream is also correctly on the SD 
card,
use the u2_flash_tool to copy both files to the card.
You should use 
http://code.ettus.com/redmine/ettus/attachments/70/u2_rev3-20100603.bin as the 
FPGA image.

Your mean is that nedd to write "txrx.bin",
before write "txrx_wbx_raw_eth_20100608.bin" ?

Your mean like this?
-----
$ sudo u2_flash_tool --dev=/dev/XXXX -t s/w txrx.bin -w
$ sudo u2_flash_tool --dev=/dev/sdd1 -t s/w xrx_wbx_raw_eth_20100608.bin -w
-----

I'll try this tomorrow!

More information here:
http://gnuradio.org/redmine/wiki/1/USRP2UserFAQ#How-do-I-change-the-firmware-and-FPGA-code-on-the-SD-Card

Try the following:

(check with the command "dmesg" to to see which device is used for the SD card, 
it may change every time you insert the card)

$ dmesg

You will see something like
...
sd 0:0:0:0: [sdd] 3842048 512-byte logical blocks: (1.96 GB/1.83 GiB)
usb-storage: device scan complete
sd 0:0:0:0: [sdd] Write Protect is off
sd 0:0:0:0: [sdd] Mode Sense: 03 00 00 00
sd 0:0:0:0: [sdd] Assuming drive cache: write through
sd 0:0:0:0: [sdd] Assuming drive cache: write through
sdd: sdd1
sd 0:0:0:0: [sdd] Assuming drive cache: write through
sd 0:0:0:0: [sdd] Attached SCSI removable disk

athe end of the output when you insert the card, so in this example sdd is 
correct. Be careful that the device is correct.

Then do

$ sudo u2_flash_tool --dev=/dev/sdd -t fpga u2_rev3-20100603.bin -w
$ sudo u2_flash_tool --dev=/dev/sdd -t s/w xrx_wbx_raw_eth_20100608.bin -w


I think I found your problem after writing this:
you have a filesystem on your SD card, because you use /dev/sdd1.
You have to use /dev/sdd with the u2_flash_tool in order to correctly flash the 
card,
the files must be written directly on the beginning of the card
(and make sure that /dev/sdd is the correct device first, it will otherwise 
overwrite your boot sector or whatever...)
If you used a new card, you definitely need to put both FPGA and  firmware on 
the card.

When I try this command, u2_flash_tool return error.
  >>  --
  >>  sudo u2_flash_tool --dev=/dev/sdd -t s/w xrx_wbx_raw_eth_20100608.bin -w
  >>  --

What error does it give? Maybe the device has changed from /dev/sdd to something else. 
You can check with "dmesg".
If
$ sudo u2_flash_tool --dev=/dev/sdd1 -t s/w xrx_wbx_raw_eth_20100608.bin -w
works, then
$ sudo u2_flash_tool --dev=/dev/sdd -t s/w xrx_wbx_raw_eth_20100608.bin -w
must also work.


I can't use "sdd".
Please see this...
--------
~/Desktop/gnuradio_fw$ sudo ./u2_flash_tool --dev=/dev/sdd -t fpga u2_rev3.bin -w
Traceback (most recent call last):
  File "./u2_flash_tool", line 111, in <module>
    main()
  File "./u2_flash_tool", line 98, in main
    and verify_flash(offset, filename, options.dev))
  File "./u2_flash_tool", line 35, in verify_flash
    dev_data = dev.read(len(file_data))
IOError: [Errno 5] Input/output error
~/Desktop/gnuradio_fw$ sudo ./u2_flash_tool --dev=/dev/sdd1 -t fpga u2_rev3.bin -w
---------

So I try this
---------
$ sudo u2_flash_tool --dev=/dev/sdd1 -t fpga u2_rev3-20100603.bin -w
$ sudo u2_flash_tool --dev=/dev/sdd1 -t s/w xrx_wbx_raw_eth_20100608.bin -w
--------

After that, my USRP2's LED is not light up (all of 6 LEDs light OFF)


Regards,
youhei



reply via email to

[Prev in Thread] Current Thread [Next in Thread]