Binary update error on SD card

Hello,
I’m a newbie struggling with the new usrp2 to work…

From the FAQ on the gnuradio.org, I found that I have to update the
image on the SD card. But I have two problems (actually more, but first
things first.)

  1. As http://gnuradio.org/trac/wiki/USRP2UserFAQ says,
    '# Build the firmware by running make in the gnuradio/usrp2 directory
    ',

but my ubuntu 8.10 does not compile anything showing messages as below:
root@ece-Xnote:/home/ece/gnuradio/usrp2# make
Making all in host
make[1]: Entering directory /home/ece/gnuradio/usrp2/host' Making all in include make[2]: Entering directory /home/ece/gnuradio/usrp2/host/include’
Making all in usrp2
make[3]: Entering directory
/home/ece/gnuradio/usrp2/host/include/usrp2' make[3]: Nothing to be done for all’.

make[3]: Entering directory /home/ece/gnuradio/usrp2/firmware' make[3]: Nothing to be done for all-am’.
make[3]: Leaving directory /home/ece/gnuradio/usrp2/firmware' make[2]: Leaving directory /home/ece/gnuradio/usrp2/firmware’
make[1]: Leaving directory /home/ece/gnuradio/usrp2/firmware' make[1]: Entering directory /home/ece/gnuradio/usrp2’
make[1]: Nothing to be done for all-am'. make[1]: Leaving directory /home/ece/gnuradio/usrp2’

This is my first problem.

So, I downloaded the binary images from
http://gnuradio.org/releases/usrp2-bin/trunk/,
and ran

sudo u2_flash_tool --dev=/dev/sg3 -t s/w usrp2/firmware/txrx.bin -w
(my computer showed /dev/sg3 as the Flash Reader)
BUT, it showed the message below:

ece@ece-Xnote:~/gnuradio/usrp2/firmware$ sudo ./u2_flash_tool
–dev=/dev/sg3 -t s/w ./txrx.bin -w
Traceback (most recent call last):
File “./u2_flash_tool”, line 111, in
main()
File “./u2_flash_tool”, line 97, in main
r = (write_flash(offset, filename, options.dev)
File “./u2_flash_tool”, line 24, in write_flash
dev.seek(offset, 0) # seek to absolute byte offset
IOError: [Errno 29] Illegal seek

I guess I’m stuck somewhere in gnuradio 3.1.13 or ubuntu8.10, have no
idea what to do…

Definitely need some help to start.

Thanks for your help, in advance

On Sat, Jan 24, 2009 at 4:20 AM, Yc Park [email protected] wrote:

but my ubuntu 8.10 does not compile anything showing messages as below:
This is my first problem.
You’ve already built this directory when you compiled GNURadio so
although it isn’t compiling anything, this is because it’s already
done the work. So it shuldn’t really be a problem.

–dev=/dev/sg3 -t s/w ./txrx.bin -w
Traceback (most recent call last):
File “./u2_flash_tool”, line 111, in
main()
File “./u2_flash_tool”, line 97, in main
r = (write_flash(offset, filename, options.dev)
File “./u2_flash_tool”, line 24, in write_flash
dev.seek(offset, 0) # seek to absolute byte offset
IOError: [Errno 29] Illegal seek

I believe you need to use:
sudo sg_map
to see what /dev/sg3 maps too. That is just a guess. Good luck!
-Leslie