discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] GNU Radio on Beaglebone black


From: Usman Haider
Subject: Re: [Discuss-gnuradio] GNU Radio on Beaglebone black
Date: Thu, 23 Mar 2017 16:49:03 +0500



On Wed, Mar 22, 2017 at 1:46 PM, Cinaed Simson <address@hidden> wrote:
On 03/21/2017 09:34 PM, Usman Haider wrote:
>
>
> On Wed, Mar 22, 2017 at 2:52 AM, Dennis Glatting <address@hidden
> <mailto:address@hidden>> wrote:
>
>     On Tue, 2017-03-21 at 22:59 +0500, Usman Haider wrote:
>     > Hi,
>     >
>     > I am currently building GNU Radio 3.7.10.1 on Beaglebone black
>     > running Debian 8.6.  I have disable some components for testing and
>     > to speed up the process. After installing the dependencies when I run
>     > cmake I am getting following messages. Are these messages okay? Do I
>     > have to pass any flags to cmake like -march etc or not?
>     >
>     > ....
>     > -- Performing Test have_msse2
>     > -- Performing Test have_msse2 - Failed
>     > -- Performing Test have_msse3
>     > -- Performing Test have_msse3 - Failed
>     > -- Performing Test have_mssse3
>     > -- Performing Test have_mssse3 - Failed
>     > -- Performing Test have_msse4a
>     > -- Performing Test have_msse4a - Failed
>     > -- Performing Test have_msse4_1
>     > -- Performing Test have_msse4_1 - Failed
>     > -- Performing Test have_mavx
>     > -- Performing Test have_mavx - Failed
>     > -- Performing Test have_mavx2
>     > -- Performing Test have_mavx2 - Failed
>     > -- Architecture is not x86 or x86_64, Overruled arch 3dnow
>     > -- Architecture is not x86 or x86_64, Overruled arch mmx
>     > -- Architecture is not x86 or x86_64, Overruled arch sse
>     > -- Architecture is not x86 or x86_64, Overruled arch sse2
>     > -- Architecture is not x86 or x86_64, Overruled arch sse3
>     > -- Architecture is not x86 or x86_64, Overruled arch ssse3
>     > -- Architecture is not x86 or x86_64, Overruled arch sse4_a
>     > -- Architecture is not x86 or x86_64, Overruled arch sse4_1
>     > -- Architecture is not x86 or x86_64, Overruled arch sse4_2
>     > -- Architecture is not x86 or x86_64, Overruled arch avx
>     > -- Available architectures: generic;hardfp;neon;orc;norc
>     > -- Available machines: generic_orc;neon_hardfp_orc
>     > -- BUILD TYPE = RELEASE
>     > -- Base cflags = -O3 -DNDEBUG  -std=gnu99 -fvisibility=hidden -Wsign-
>     > compare -Wall -Wno-uninitialized -Wall
>     > -- BUILD INFO ::: generic_orc ::: GNU ::: -O3 -DNDEBUG  -std=gnu99
>     > -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -Wall
>     > -- BUILD INFO ::: neon_hardfp_orc ::: GNU ::: -O3 -DNDEBUG  -
>     > std=gnu99 -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized
>     > -Wall -mfpu=neon -funsafe-math-optimizations -mfloat-abi=hard
>     > -- Compiler Version: cc (Debian 4.9.2-10) 4.9.2
>     > Copyright (C) 2014 Free Software Foundation, Inc.
>     > This is free software; see the source for copying conditions.  There
>     > is NO
>     > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
>     > PURPOSE.
>     > -- ---- Adding ASM files
>     > -- -- Detected neon architecture; enabling ASM
>     > -- Adding source file:
>     > /home/debian/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_ho
>     > rizontal_16i.s
>     >
>     > ...
>     > ...
>     > Complete output
>     >
>     > http://pastebin.com/t3KSu0f5
>     >
>     >
>     >
>
>     You can build from source on the Beagle. I have done it.
>
>
> Great!
>
>
>     However, the
>     Beagle has only a single core processor, you will have to mount swap
>     space, the 4G of memory isn't roomy - at all, and you will have to
>     install a bunch of additional packages.
>
>
> Can you point me to those packages so that I do not miss something? I
> installed pre-reqs for GNU Radio and cmake seems to run fine with some
> warnings/messages as shown in my first email.
>
>
>     I don't recommend native builds but it can be done. Cross develop if
>     you can. I seem to recall it took a few /days/ to build, multiply if
>     there is a failure. You should also mount an external USB disk for
>     swap, /tmp, etc.
>
>
>     The compiler on the Beagle is old. I installed a more modern version.
>
> I tried to cross develop but was not able to do so. I am still working
> on that approach. If you have done it or have any pointers please do
> share.  What compiler did you use? Did you do a full install of GNU
> Radio on BBB?
>
>     The Beagle isn't suited for GNURadio unless you have a low data rate
>     and low memory requirements, but it can work.
>
> I'll also use low data-rates :)
>
>
>     Regarding VOLK, you may have to tune the build. You will have to look
>     up the processor specifics and tune the build appropriately.
>
>
> I'll look how can I do it. Thanks for your time.
>
> --
> Usman
>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>

I have scripts which will build install the system software needed to
build gnuradio - and scripts to build gnuradio - on the BBB for both
wheezy and jessie.

I decide to go with wheezy on the BBB since it didn't require as much
system disk space as jessie.

Since you installed jessie, how much disk space do you have left on the
system drive?

I'd recommend ensuring you don't have tex installed

  apt list | grep tex

I installed WX but not Qt. I just run python scripts on the BBB - WX was
just for testing - X11 sucks on the BBB.

I installed gnuradio on microSD card to make it portable. The the time I
installed version 3.7.9 then upgraded it later 3.7.10.1.

I also used the microSD card for swap - using a mounted drive might be
slower - but it should work.
Set

  CFLAGS="-march=armv7-a -mtune=cortex-a8  -mfloat-abi=hard -mfpu=neon -O2"
  CXXFLAGS="$CFLAGS"

On jessie, invoke cmake as

  cmake -Wno-dev ../

which will help cut down on the cmake warning messages.

Export all environment variables you want cmake to see.

I'll send the scripts Wednesday evening.

-- Cinaed



Hi Cinaed,

Great to hear from you. I am using 16GB card and I extended the system partition to have more space. df gives

Filesystem          1K-blocks    Used       Available  Use%  Mounted on

/dev/mmcblk0p1  11025344   3743260   6702460    36%        /

So space is not a problem. I am also facing issues with X11 on BBB. I am going to use a usb for swap space since I read using file for swap is slower. Scripts will be great help.

Thank you very much for helping.

--
Usman
 









_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


reply via email to

[Prev in Thread] Current Thread [Next in Thread]