-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem compiling #10
Comments
Same issue |
Have you tried this clone: https://github.com/szpajder/RTLSDR-Airband ? |
Hi With this clone works pefect Atentamente,
|
Yes thanks. When I compile it it works, but when I run the program it locks up my pi and then does a reboot. JohnSent from myMail app for Android Atentamente,
|
On Fri, Feb 13, 2015 at 11:48 PM, johnbaker26 [email protected]
Umm, strange. Does it produce any output on the screen before it locks up? Which RPi model do you have? Which Raspbian and kernel version? I have an odroid U3 I would rather use. Is it possible to install on one
AFAIK, Odroid has a Mali-400 GPU, while RPi uses Broadcom VideoCore, so I This is important, because rtl_airband does FFT on GPU to offload main CPU. |
Hi, It is an RPi 2. I just tried again and it complied! but froze when I Ok thanks for the info on the odroid. On 02/15/2015 12:16 AM, szpajder wrote:
2 |
Thank you szpajder for the fork. |
For me, it doesn't freeze on the Pi-2B, but doesn't run smoothly like on the old B. The textual waterfall runs at about half the speed, and the demodulated speech is chopped - I'm hearing fragments. Commenting out the calls to gpu_fft & your arm asm code does not improve the waterfall "flow" rate, so I'm looking elsewhere for the issue. Edited to add: |
OK well if any of you guys get to the bottom of this please let me know. I can test out any changes you might think will work. John On 02/15/2015 11:22 AM, Tony Wong wrote:
|
I'd overlooked that there are two optimised assembly routines; the slowdown that I'm seeing on the Pi2 disappears if I comment out the call to samplefft(). Indeed, reverting to the c version of that routine from commit 5c59df... has got it working on the Pi2. |
campag, thanks for your help. When I try to copy the new hello_fft director (after deleting old one) I get this error compiling on the RPi2 root@PapaKilo:/home/pi/RTLSDR-Airband/hello_fft# make |
Looks like you're missing hello_fft/gpu_ fft_base.c - add that to the source files in the makefile. I'll try to familiarise myself with git and fork szpajders effort and publish my changes added later. |
OK, I pushed my changes to get it to run on the RPi2. Edit the makefile to compile for RPi1 or RPi2 (default) . |
campag, Thank you so much! Things are working nicely now on my RPi2 |
Sorry, but after some further testing, my CPU is running over 100% and the stream cuts in and out. |
Strange, maybe someone else can confirm, as I have no such issues on the Rpi2-B when compiled with either g++ (4.6 as included in Wheezy) or g++-4.8 (via apt-get). |
Ohh shoot, I was compiling with 4.9 Maybe that was the problem? I'll On 03/02/2015 06:46 PM, campag wrote:
|
It's no longer necessary to copy across the hello_fft folder as the updated, fixed for RPi2 version, is included in my fork. In fact I've also replaced the optimised shaders from http://maazl.de/project/vc4asm/doc/index.html. When building with g++-4.8, you should get an executable size of 90993 bytes. |
Nope, without a copy of my hello_fft I get this: root@PapaKilo:/home/pi/test/RTLSDR-Airband# make On 03/02/2015 07:02 PM, campag wrote:
|
Sorry, I'd failed to add one source file & few of the shaders for the larger transforms which are now supported. I'm a bit of a noob with git. I've pushed those additions now. I've just done a fresh git clone & everything compiled fine, g++ 4.6 producing a file of 103676 bytes, g++-4.8 90993 bytes. |
Tasks: 87 total, 2 running, 85 sleeping, 0 stopped, 0 zombie PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND |
CPU is between 95% and 100%, causing interruptions in the stream. |
So I assume it now compiled OK & produced binaries with the same sizes I quoted? Anyone else had the same result? All fine here, working just as well as on the previous Pi models: top - 08:17:13 up 11:55, 2 users, load average: 0.40, 0.34, 0.42 PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND |
I have modified both assembly functions (samplefft and fftwave) to use the new NEON floating point unit in RPi2 instead of old VFP. NEON does not support VFP vector mode computations - all instructions which use it fail on RPi2, the Linux kernel then silently traps the exceptions and emulates FPU in software, which causes horrible performance. Anybody wanting to give it a try, please pull https://github.com/szpajder/RTLSDR-Airband . It is necessary to choose the right platform during build process - either make rtl_airband_neon (for RPi2) or make rtl_airband_vfp (for RPi1). Please do not modify or replace hello_fft subdirectory. If you encounter any compilation failures (like "gpu_fft_base.c:105:51: error: 'bcm_host_get_sdram_address' was not declared in this scope"), please make sure you have rpi-update'd your system. RIght now I'm doing three dongles simultaneously - dump1090 + rtl_airband on two dongles, five channels in total, no overclocking - I'm about 53% user CPU (which is only a bit higher than RPi1 had when running rtl_airband on one dongle, instead of two). |
Very nice! I will be trying this today! The timing couldn't be better for me. I'll let you know how it works.
|
Awesome! I don't have a RPi2 so I couldn't test it out. I will add a note in my README to refer people to your repo instead. |
If anybody is interested, it is now possible to run rtl_airband under Linux on standard PC hardware as well. Refer to README.md file for details. Please pull the latest https://github.com/szpajder/RTLSDR-Airband and share your feedback. |
With Raspberry PI 2 pi@RPi1 ~/airband2 $ make I am using now the campag pull any idea why ??? |
On Mon, May 18, 2015 at 2:18 PM, acasadoalonso [email protected]
Pull this one: https://github.com/szpajder/RTLSDR-Airband |
I got it, Thank you, it compiles OK now, soon to be tested…. AC/.
|
Do you think it might be possible to run it on an odroid U3 as well?? On 04/25/2015 07:08 PM, szpajder wrote:
|
On Tue, May 26, 2015 at 5:26 AM, johnbaker26 [email protected]
|
Thank you, I decided to try again with the RPi2 since you updated your Do you know of any limitation of running more than two dongles on one On 05/26/2015 07:26 PM, szpajder wrote:
|
There are no hardcoded dongle count limits - neither in rtl_airband nor Another limit is the power - you need a really good USB hub and power |
Ohh I know the pi power probs well unfortunately...
|
Hi there! |
Hello, Does anyone have any experience with bleeding over frequencies when Thanks! On 02/15/2015 12:16 AM, szpajder wrote:
|
Do you have success using other programs such as SDR Sharp / SDR Radio.com? |
Lowering the gain worked very nicely thanks! I lowered from 290 to 200 and now no more bleed.
|
I get this error in the last version of raspbian
pi@raspberrypi ~/RTLSDR-Airband $ make
as -o rtl_airband_asm.o rtl_airband_asm.s
g++ -O3 -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -march=armv6zk -mfpu=vfp -lrt -lm -lvorbisenc -lmp3lame -lshout -lpthread -lrtlsdr -o rtl_airband rtl_airband.cpp hello_fft/mailbox.c hello_fft/gpu_fft.c hello_fft/gpu_fft_twiddles.c hello_fft/gpu_fft_shaders.c hello_fft/gpu_fft_base.c rtl_airband_asm.s
hello_fft/gpu_fft_base.c:29:22: fatal error: bcm_host.h: No such file or directory
compilation terminated.
makefile:21: recipe for target 'rtl_airband' failed
make: *** [rtl_airband] Error 1
The text was updated successfully, but these errors were encountered: