# Binary update error on SD card

**URL:** <https://www.ruby-forum.com/t/binary-update-error-on-sd-card/158533>\
**Category:** GNU Radio\
**Created:** [January 24, 2009, 1:20pm UTC](https://www.ruby-forum.com/t/binary-update-error-on-sd-card/158533 "2009-01-24T13:20:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![superco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3d9bf3/32.png) [@superco](https://www.ruby-forum.com/u/superco)\
**Post date:** [January 24, 2009, 1:20pm UTC](https://www.ruby-forum.com/t/binary-update-error-on-sd-card/158533/1 "2009-01-24T13:20:47Z")

</div>

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

From the FAQ on the [gnuradio.org](http://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](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/](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

---

<div class="post-metadata">

**Author:** ![superco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3d9bf3/32.png) [@superco](https://www.ruby-forum.com/u/superco)\
**Post date:** [January 27, 2009, 1:12am UTC](https://www.ruby-forum.com/t/binary-update-error-on-sd-card/158533/2 "2009-01-27T01:12:14Z")

</div>

On Sat, Jan 24, 2009 at 4:20 AM, Yc Park [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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
