Installing Gnu Radio on the Parallella

Moderator: tjt7a

Installing Gnu Radio on the Parallella

Postby tjt7a » Mon Apr 15, 2013 3:18 pm

Below are the steps I used to install GNU Radio on the Parallella from the github source. This install includes the Gnuradio-companion, which is a graphical editor for GNU Radio programs. It is a bit heavy, and may feel slow on the board. It is completely optional, and I recommend running/writing GNU Radio programs from the Terminal instead.

One part of the build process involves wrapping c++ code in Python (SWIG), which is very memory intensive; in fact it requires more memory than the board can sustain. To get around the memory shortage, you can choose to remove Python support, and only support c++ GNU Radio programs, but this is not ideal. In order to get everything running with python support, you need to add additional swap space. What I did was use a USB hub to add swap space in the form of a USB memory stick. I also did the build on an external HDD which was also connected via the hub to reduce the wear on the SD card, increase storage space, and to allow for future image updates without losing my source / built files.

Below are the steps:

Install Dependencies
sudo apt-get install libusb-dev python-qt4 python-numpy libtool g++ python-dev swig libboost-all-dev autoconf libcppunit-dev python-lxml python-qwt5-qt4 libqt4-opengl-dev python-cheetah cmake python-wxgtk2.8 libqwt5-qt4-dev fftw3-dev fftw3 libfftw3-dev libqwt5-qt4-dev python-gtk2 libasound2-dev gcc-multilib

Grab Source, Build, and Install
>cd to src directory>
git clone https://github.com/gnuradio/gnuradio.git
cd gnuradio
mkdir build

cmake -Dhave_mfpu_neon=1 -DCMAKE_CXX_FLAGS:STRING="-march=armv7 -mfpu=vfp -mfloat-abi=soft" -DCMAKE_C_FLAGS:STRING="-march=armv7 -mfpu=vfp -mfloat-abi=soft" ../

WARNING: This will take more than 24 hrs, and will slow down your board to an otherwise-unusable state. Both cores are being utilized at near 100% for the build
make -j 2
sudo make install
tjt7a
 
Posts: 17
Joined: Fri Feb 22, 2013 7:13 pm

Re: Installing Gnu Radio on the Parallella

Postby Gerald » Mon Apr 15, 2013 10:07 pm

Hi tjt7a,

do you have a radio connected to the parallella? which one? can you already send data?

Thanks,
Gerald
Gerald
 
Posts: 22
Joined: Thu Mar 21, 2013 10:43 am

Re: Installing Gnu Radio on the Parallella

Postby tjt7a » Thu Apr 18, 2013 5:35 am

Because I don't have access to a USRP right now, I'm using a usb TV tuner - turned cheap man's ADC. I got it to work with the Parallella, by installing two additional packages: rtl-sdr and gr-osmosdr.

Gerald wrote:Hi tjt7a,

do you have a radio connected to the parallella? which one? can you already send data?

Thanks,
Gerald
tjt7a
 
Posts: 17
Joined: Fri Feb 22, 2013 7:13 pm

Re: Installing Gnu Radio on the Parallella

Postby aolofsson » Thu Apr 18, 2013 5:47 pm

Wow, that's really cool! Can you post some screenshots?
Andreas
User avatar
aolofsson
 
Posts: 1005
Joined: Tue Dec 11, 2012 6:59 pm
Location: Lexington, Massachusetts,USA

Re: Installing Gnu Radio on the Parallella

Postby Gerald » Thu Apr 18, 2013 10:38 pm

@tjt7a good work! is ther enough memory to implement a USDR on the parallella?
Gerald
 
Posts: 22
Joined: Thu Mar 21, 2013 10:43 am

Re: Installing Gnu Radio on the Parallella

Postby tnt » Fri Apr 19, 2013 10:11 am

Why would you disable NEON ?!?
Also, are you sure the ABI of the distributed SD card image is hard float ? I though it was softfp

Finally, an option is to disable python which makes the build _much_ faster and depending on your use case, it might be acceptable.
tnt
 
Posts: 408
Joined: Mon Dec 17, 2012 3:21 am

Re: Installing Gnu Radio on the Parallella

Postby tjt7a » Fri Apr 19, 2013 3:13 pm

Yes; you are right about NEON, but originally I could not get the project to build with neon enabled. I have since discovered that I was missing a gcc library and I'm rebuilding.

You are also correct about python, but I want to support a large set of existing GNU Radio programs that are written in python; python support also reduces the complexity for people new to GNU Radio.

Tom

tnt wrote:Why would you disable NEON ?!?
Also, are you sure the ABI of the distributed SD card image is hard float ? I though it was softfp

Finally, an option is to disable python which makes the build _much_ faster and depending on your use case, it might be acceptable.
tjt7a
 
Posts: 17
Joined: Fri Feb 22, 2013 7:13 pm

Re: Installing Gnu Radio on the Parallella

Postby tjt7a » Fri Apr 19, 2013 4:31 pm

I ssh into the Parallella and forward X to get the gnuradio-companion on my laptop.

Some screenshots of what I have working right now:

Hardware Setup:
Photo Apr 19, 12 15 25.jpg
Hardware
Photo Apr 19, 12 15 25.jpg (100.26 KiB) Viewed 20841 times


Successfully Reading From the USB TV Tuner:
Photo Apr 19, 12 15 53.jpg
Reading From TV Tuner
Photo Apr 19, 12 15 53.jpg (70.42 KiB) Viewed 20841 times


GNU Radio Scope view of FM demodulated signal at 89.5MHz:
Photo Apr 19, 12 15 17.jpg
89.5
Photo Apr 19, 12 15 17.jpg (89.56 KiB) Viewed 20816 times


Tom
tjt7a
 
Posts: 17
Joined: Fri Feb 22, 2013 7:13 pm

Re: Installing Gnu Radio on the Parallella

Postby Gerald » Sat Apr 20, 2013 2:32 pm

@tjt7a is ther enough memory to implement a USDR on the parallella?
Gerald
 
Posts: 22
Joined: Thu Mar 21, 2013 10:43 am

Re: Installing Gnu Radio on the Parallella

Postby theover » Sun Apr 21, 2013 9:39 pm

That's some serious work, it almost makes us feel back the power of the Unix systems of old, successfully running a make on such small computer and some USB stuff.

Of course in case of the system at hand additional work is interesting on getting the FPGA fabric to take a role like in the software radio hardware, and to let the Adaptiva chip compute things... It always bugs me that the SR guys usually decimate and crude FFT at will, without much subtlety, this board can do better. Of course connecting up AD converters, maybe audio converters and such may be a lot of work, and I don't know if the webpack ISE tools are very fast to use on a big SR design (WRT the "design loop").

T.V.
theover
 
Posts: 174
Joined: Mon Dec 17, 2012 4:50 pm

Next

Return to Software Defined Radio

Who is online

Users browsing this forum: No registered users and 1 guest