# New build-gnuradio

**URL:** <https://www.ruby-forum.com/t/new-build-gnuradio/209819>\
**Category:** GNU Radio\
**Created:** [July 23, 2011, 5:53pm UTC](https://www.ruby-forum.com/t/new-build-gnuradio/209819 "2011-07-23T17:53:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [July 23, 2011, 5:53pm UTC](https://www.ruby-forum.com/t/new-build-gnuradio/209819/1 "2011-07-23T17:53:32Z")

</div>

Mr. UHD, being a man of some comedic genius, has once again  
roto-rootered the file structure on the web server that serves up  
UHD Firmware/FPGA images 🙂

So, I had to change build-gnuradio to deal with the new world.

[http://www.sbrac.org/build-gnuradio](http://www.sbrac.org/build-gnuradio)

–  
Marcus L.  
Principal Investigator  
Shirleys Bay Radio Astronomy Consortium

> **[Live Draw HK Tercepat | Result HK | HK Pools | Live HK | HK Prize Hari Ini](https://www.sbrac.org)**
>
> Temukan live draw hk tercepat melalui halaman hk pools yang resmi dan dapatkan result hk prize melalui live hk secara langsung di situs kami.

---

<div class="post-metadata">

**Author:** ![Marcus\_DSLeech](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/74df32/32.png) [@Marcus\_DSLeech](https://www.ruby-forum.com/u/Marcus_DSLeech)\
**Post date:** [July 24, 2011, 12:21pm UTC](https://www.ruby-forum.com/t/new-build-gnuradio/209819/2 "2011-07-24T12:21:41Z")

</div>

On 07/23/2011 12:27 PM, Josh B. wrote:

> Is it because the version names changed?
> 
> Can you wget the whole directory and pick out the first tar.gz file?

This is what I now do:

```
 #
 # First, get listing of 

```

[ettus.com/downloads/uhd\_releases/master\_images](http://ettus.com/downloads/uhd_releases/master_images)  
# We use spider mode, and use -r to descend  
#  
wget -np -r --spider  
[http://www.ettus.com/downloads/uhd\_releases/master\_images](http://www.ettus.com/downloads/uhd_releases/master_images) \>tmp$$ 2\>&1

```
 #
 # Now search the resulting log file for .tar.gz files that match

```

the appropriate  
# pattern.  
#  
grep ‘UHD-images.\*tar.gz’ tmp$$ |sed -e ‘s@.\*Removing @http://@’  
|sort -r |head -1 \>tmp2$$

Then

```
 #
 # Fetch the tar file (whose name is in ../tmp2$$)
 #
 fn=`cat ../tmp2$$|sed -e s/.$//`
 wget -nd $fn >/dev/null 2>&1

```

–  
Marcus L.  
Principal Investigator  
Shirleys Bay Radio Astronomy Consortium

> **[Live Draw HK Tercepat | Result HK | HK Pools | Live HK | HK Prize Hari Ini](https://www.sbrac.org/)**
>
> Temukan live draw hk tercepat melalui halaman hk pools yang resmi dan dapatkan result hk prize melalui live hk secara langsung di situs kami.

---

<div class="post-metadata">

**Author:** ![Marcus\_DSLeech](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/74df32/32.png) [@Marcus\_DSLeech](https://www.ruby-forum.com/u/Marcus_DSLeech)\
**Post date:** [July 24, 2011, 12:44pm UTC](https://www.ruby-forum.com/t/new-build-gnuradio/209819/3 "2011-07-24T12:44:34Z")

</div>

On 07/23/2011 01:16 PM, Marcus D. Leech wrote:

> On 07/23/2011 12:27 PM, Josh B. wrote:
> 
> > Is it because the version names changed?
> > 
> > Can you wget the whole directory and pick out the first tar.gz file?

If you mess with the paths, be aware the OE reciep that grabs the  
firmware and repackages it for the E100 uses this recipe:

[http://cgit.openembedded.org/cgit.cgi/openembedded/tree/recipes/uhd/uhd-firmware.inc](http://cgit.openembedded.org/cgit.cgi/openembedded/tree/recipes/uhd/uhd-firmware.inc)

You can use your imagination to work out what path I am depending on.

Philip

---

<div class="post-metadata">

**Author:** ![Marcus\_DSLeech](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/74df32/32.png) [@Marcus\_DSLeech](https://www.ruby-forum.com/u/Marcus_DSLeech)\
**Post date:** [July 24, 2011, 1:33pm UTC](https://www.ruby-forum.com/t/new-build-gnuradio/209819/4 "2011-07-24T13:33:26Z")

</div>

On 07/23/2011 02:09 PM, Nemanja Trecakov wrote:

> > ```
> > # Now search the resulting log file for .tar.gz files that match
> > 
> > ```
> > 
> > the appropriate  
> > # pattern.  
> > #  
> > grep ‘UHD-images.\*tar.gz’ tmp$$ |sed -e ‘s@.\*Removing @http://@’  
> > |sort -r |head -1\>tmp2$$
> 
> - What do you mean by “the appropriate pattern” in the above comment, present in  
> your script? Sorry, I am a newbie.

The pattern given by the “grep” regular expression and “sed” regular  
expression above, in the script.

> The right address is: [www.sbrac.org/files/build-gnuradio](http://www.sbrac.org/files/build-gnuradio)

Yup, sorry about that!

–  
Marcus L.  
Principal Investigator  
Shirleys Bay Radio Astronomy Consortium

> **[Live Draw HK Tercepat | Result HK | HK Pools | Live HK | HK Prize Hari Ini](https://www.sbrac.org/)**
>
> Temukan live draw hk tercepat melalui halaman hk pools yang resmi dan dapatkan result hk prize melalui live hk secara langsung di situs kami.

---

<div class="post-metadata">

**Author:** ![Marcus\_DSLeech](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/74df32/32.png) [@Marcus\_DSLeech](https://www.ruby-forum.com/u/Marcus_DSLeech)\
**Post date:** [July 24, 2011, 1:13pm UTC](https://www.ruby-forum.com/t/new-build-gnuradio/209819/5 "2011-07-24T13:13:03Z")

</div>

Hi Marcus,

> the appropriate  
> # pattern.  
> #  
> grep ‘UHD-images.\*tar.gz’ tmp$$ |sed -e ‘s@.\*Removing @http://@’  
> |sort -r |head -1 \>tmp2$$

- What do you mean by “the appropriate pattern” in the above comment,  
present in your script? Sorry, I am a newbie.

BTW, in one of the recent mails you addressed you site with:  
[www.sbrac.org/build-gnuradio](http://www.sbrac.org/build-gnuradio) which gives 404 error.

The right address is: [www.sbrac.org/files/build-gnuradio](http://www.sbrac.org/files/build-gnuradio)

Thanks in advance.

Nemanja
