Forum: GNU Radio binary update error on SD card

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C0e4fb5a48da25e6b69e23d1710a46ad?d=identicon&s=25 Yc Park (superco)
on 2009-01-24 13:20
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 <module>
    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
8ec0c8ec21f960a56ab17880f309b572?d=identicon&s=25 Leslie Choong (Guest)
on 2009-01-27 01:12
(Received via mailing list)
On Sat, Jan 24, 2009 at 4:20 AM, Yc Park <lists@ruby-forum.com> 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 <module>
>    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
This topic is locked and can not be replied to.