[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Crosscompile Gnuradio for Rpi
From: |
Patrick Sathyanathan |
Subject: |
Re: [Discuss-gnuradio] Crosscompile Gnuradio for Rpi |
Date: |
Thu, 14 Jan 2016 15:06:12 -0800 |
Hi Matej,
I have compiled GNUradio from source on the raspberry Pi2 model B. I had to
increase the swap space, disable multiple make threads, and even then it took
more than a day to complete the build. I ran into the same assembler error and
found that none of the compile switches suggested in various forums fixed it.
It appears the assembler on raspbian does not recognize the "sbfx" instruction
even though the ARM documentation says it is supported by the processor on the
Pi 2. Eventually I replaced that instruction with a equivalent sequence of
assembly instructions and got the build to work. I don't recall the exact
replacement right now but I can dig it up if you are interested.
--Patrick
----------------------------------------
> To: address@hidden; address@hidden
> From: address@hidden
> Date: Thu, 14 Jan 2016 11:46:41 +0100
> Subject: Re: [Discuss-gnuradio] Crosscompile Gnuradio for Rpi
>
> Hi,
>
>> You could just watch a movie or something and build natively on the PI.
>> Just be careful of memory constraints. Maybe a -j 1 or a USB drive
>> mounted as swap would be a good idea.
>
> In fact that would be probably the best solution for my level of
> knowkedge. However, compiling GNURadio on RPi also doesn't work.
>
> Here is the problem:
>
> I say:
> cmake ..
>
> and then make, and got this error:
>
> [ 2%] Building ASM object
> volk/lib/CMakeFiles/volk_obj.dir/__/kernels/volk/asm/neon/volk_32f_x2_dot_prod_32f_neonasm_opts.s.o
> /home/pi/gnuradio/gnuradio-3.7.9/volk/kernels/volk/asm/neon/volk_32f_x2_dot_prod_32f_neonasm_opts.s:
> Assembler messages:
> /home/pi/gnuradio/gnuradio-3.7.9/volk/kernels/volk/asm/neon/volk_32f_x2_dot_prod_32f_neonasm_opts.s:46:
> Error: selected processor does not support ARM mode `sbfx r11,r1,#2,#1'
> volk/lib/CMakeFiles/volk_obj.dir/build.make:1479: recipe for target
> 'volk/lib/CMakeFiles/volk_obj.dir/__/kernels/volk/asm/neon/volk_32f_x2_dot_prod_32f_neonasm_opts.s.o'
> failed
> make[2]: ***
> [volk/lib/CMakeFiles/volk_obj.dir/__/kernels/volk/asm/neon/volk_32f_x2_dot_prod_32f_neonasm_opts.s.o]
> Error 1
> CMakeFiles/Makefile2:233: recipe for target
> 'volk/lib/CMakeFiles/volk_obj.dir/all' failed
> make[1]: *** [volk/lib/CMakeFiles/volk_obj.dir/all] Error 2
> Makefile:147: recipe for target 'all' failed
> make: *** [all] Error 2
>
>
> Please note: this is compiling ON RPi.
>
> Regards,
>
> Matej
> --
> PGP Fingerprint: 3B74 637D 8409 53F9 A704 F27C BEA5 286D A9CF 4A88
> PGP Key:
> https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xBEA5286DA9CF4A88
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
- Re: [Discuss-gnuradio] Crosscompile Gnuradio for Rpi, (continued)
- Re: [Discuss-gnuradio] Crosscompile Gnuradio for Rpi, Nate Temple, 2016/01/14
- Re: [Discuss-gnuradio] Crosscompile Gnuradio for Rpi, Matej Kovacic, 2016/01/14
- Re: [Discuss-gnuradio] Crosscompile Gnuradio for Rpi,
Patrick Sathyanathan <=
- Re: [Discuss-gnuradio] Crosscompile Gnuradio for Rpi, Philip Balister, 2016/01/14
- Re: [Discuss-gnuradio] Crosscompile Gnuradio for Rpi, West, Nathan, 2016/01/15
- Re: [Discuss-gnuradio] Crosscompile Gnuradio for Rpi, Matej Kovacic, 2016/01/17
- Re: [Discuss-gnuradio] Crosscompile Gnuradio for Rpi, Matej Kovacic, 2016/01/15
- Re: [Discuss-gnuradio] Crosscompile Gnuradio for Rpi, Patrick Sathyanathan, 2016/01/19