New build-gnuradio

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 :slight_smile:

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

http://www.sbrac.org/build-gnuradio


Marcus L.
Principal Investigator
Shirleys Bay Radio Astronomy Consortium

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
# We use spider mode, and use -r to descend
#
wget -np -r --spider
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

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

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

Philip

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

Yup, sorry about that!


Marcus L.
Principal Investigator
Shirleys Bay Radio Astronomy Consortium

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 which gives 404 error.

The right address is: www.sbrac.org/files/build-gnuradio

Thanks in advance.

Nemanja