run it on rpi4

Discuss KerberosSDR - 4x Coherent RTL-SDR
Post Reply
lukas12p
Posts: 2
Joined: Fri Aug 16, 2019 5:48 pm

run it on rpi4

Post by lukas12p » Fri Aug 16, 2019 5:57 pm

Hi,
Can anyone help me with running Kerberos on Pi4?
I have connected to raspberry via ssh and have followed KerberosSDR Quickstart Guide.
I have successfully installed Kerberos Drivers.
Now I wanted to Install and Run KerberosSDR Demo Software, so in makefile I have set as You can see below:
-Wall -O3 -mcpu=cortex-a72 -mfloat-abi=hard -mfpu=neon-fp-armv8 -mneon-for-64bits -mtune=cortex-a72
but following errors occurred during compilation and during startup:
[email protected]:~/kerberossdr $ sh setup_init.sh
Compile C files
gcc -Wall -O3 -mcpu=cortex-a72 -mfloat-abi=hard -mfpu=neon-fp-armv8 -mneon-for-64bits -mtune=cortex-a72 rtl_daq.c -lpthread -lrtlsdr -o rtl_daq
rtl_daq.c: In function ‘main’:
rtl_daq.c:321:9: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable]
int rc;
^~
gcc -Wall -O3 -mcpu=cortex-a72 -mfloat-abi=hard -mfpu=neon-fp-armv8 -mneon-for-64bits -mtune=cortex-a72 sync.c -lpthread -o sync
gcc -Wall -O3 -mcpu=cortex-a72 -mfloat-abi=hard -mfpu=neon-fp-armv8 -mneon-for-64bits -mtune=cortex-a72 gate.c -lpthread -o gate
gcc -Wall -O3 -mcpu=cortex-a72 -mfloat-abi=hard -mfpu=neon-fp-armv8 -mneon-for-64bits -mtune=cortex-a72 sim.c -o sim
[ INFO ] Set file executation rights
ln: failed to create symbolic link '_webDisplay/pr.jpg': File exists
ln: failed to create symbolic link '_webDisplay/DOA_value.html': File exists
ln: failed to create symbolic link '_webDisplay/spectrum.jpg': File exists
ln: failed to create symbolic link '_webDisplay/sync.jpg': File exists
ln: failed to create symbolic link '_webDisplay/doa.jpg': File exists
ln: failed to create symbolic link '_webDisplay/pr.jpg': File exists
[email protected]:~/kerberossdr $ ./r
3
Starting KerberosSDR
kill: (1363): No such process
rm: cannot remove '_receiver/C/gate_control_fifo': No such file or directory
rm: cannot remove '_receiver/C/sync_control_fifo': No such file or directory
rm: cannot remove '_receiver/C/rec_control_fifo': No such file or directory
[email protected]:~/kerberossdr $

rtlsdrblog
Site Admin
Posts: 2405
Joined: Mon Nov 19, 2012 11:54 pm

Re: run it on rpi4

Post by rtlsdrblog » Sat Aug 17, 2019 2:05 am

Can you check if rtl_test works first?

There was a USB problem with the Pi4 Raspbian version. It's supposedly been fixed now, but i'm not sure if you need to update the dist first.

lukas12p
Posts: 2
Joined: Fri Aug 16, 2019 5:48 pm

Re: run it on rpi4

Post by lukas12p » Sun Aug 18, 2019 8:47 am

After installing driver I did "rtl_test -d 0" and there was no problem. Didn't check all 4 devices.
Do I have makefile set correctly?

rtlsdrblog
Site Admin
Posts: 2405
Joined: Mon Nov 19, 2012 11:54 pm

Re: run it on rpi4

Post by rtlsdrblog » Mon Aug 19, 2019 1:22 pm

Looks okay, but you can try removing the optimization flags if you think it's causing issues.

Edit the main program execution line near the end of run.sh so that you get the error logs and see what they say.

f4exb
Posts: 9
Joined: Wed Sep 04, 2019 11:51 am

Re: run it on rpi4

Post by f4exb » Wed Sep 04, 2019 11:56 am

Hello,
if you are running Raspbian then I think it is working in armv7 mode so the armv8 flags are irrelevant.
Brgds.

Slide
Posts: 1
Joined: Sat Sep 07, 2019 1:10 am

Re: run it on rpi4

Post by Slide » Sat Sep 07, 2019 1:34 am

Hi,
I got the demo SW running on Pi4-buster this morning using these modifications to the quickstart.

Installed these extra dependencies

pip3 install pyparsing
pip3 install cycler
pip3 install kiwisolver
pip3 install python-dateutil

and in the makefile
# commented the X86 flags and un-commented the PI3 flags
changed from 'cortex-a53' to 'cortex-a72' in flags (twice)

Once those changes were done I could run ./run.sh and it loaded into the config and spectrum tab of the demoSW

Next problem: solve scaling issues to get everything on the screen at once.

Cheers

serff
Posts: 1
Joined: Fri Sep 13, 2019 4:29 pm

Re: run it on rpi4

Post by serff » Fri Sep 13, 2019 4:37 pm

Hi everyone,

I've done all these steps and am able to run the app on my pi4, but I can't get it to do anything. I Click Start Processing and I get no updates. I get no errors when uncommenting the logging in the run.sh either. rtl_test works on all the devices (at least I think, the output is below).

What else can I try?

Output from rtl_test:

Code: Select all

[email protected]:~ $ rtl_test -d 0
Found 4 device(s):
  0:  RTL-SDR, KerberosSDR, SN: 001
  1:  RTL-SDR, KerberosSDR, SN: 002
  2:  RTL-SDR, KerberosSDR, SN: 003
  3:  RTL-SDR, KerberosSDR, SN: 004

Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Supported gain values (29): 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6
[R82XX] PLL not locked!
Sampling at 2048000 S/s.

Info: This tool will continuously read from the device, and report if
samples get lost. If you observe no further output, everything is fine.

Reading samples in async mode...
Allocating 15 zero-copy buffers
lost at least 832 bytes
lost at least 1032 bytes
lost at least 580 bytes
lost at least 226 bytes
lost at least 1966 bytes
lost at least 2124 bytes
lost at least 934 bytes
lost at least 226 bytes
lost at least 934 bytes
lost at least 1288 bytes
lost at least 226 bytes
no more output after this...
I'm using a 3A power supply for the PI and I have just one micro-usb from the USB3 port on the pi to the KereberosSDR. Do I need a second power supply for the KSDR?

rtlsdrblog
Site Admin
Posts: 2405
Joined: Mon Nov 19, 2012 11:54 pm

Re: run it on rpi4

Post by rtlsdrblog » Sat Sep 14, 2019 4:10 am

serff wrote:
Fri Sep 13, 2019 4:37 pm
Hi everyone,

I've done all these steps and am able to run the app on my pi4, but I can't get it to do anything. I Click Start Processing and I get no updates. I get no errors when uncommenting the logging in the run.sh either. rtl_test works on all the devices (at least I think, the output is below).

What else can I try?

Output from rtl_test:

Code: Select all

[email protected]:~ $ rtl_test -d 0
Found 4 device(s):
  0:  RTL-SDR, KerberosSDR, SN: 001
  1:  RTL-SDR, KerberosSDR, SN: 002
  2:  RTL-SDR, KerberosSDR, SN: 003
  3:  RTL-SDR, KerberosSDR, SN: 004

Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Supported gain values (29): 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6
[R82XX] PLL not locked!
Sampling at 2048000 S/s.

Info: This tool will continuously read from the device, and report if
samples get lost. If you observe no further output, everything is fine.

Reading samples in async mode...
Allocating 15 zero-copy buffers
lost at least 832 bytes
lost at least 1032 bytes
lost at least 580 bytes
lost at least 226 bytes
lost at least 1966 bytes
lost at least 2124 bytes
lost at least 934 bytes
lost at least 226 bytes
lost at least 934 bytes
lost at least 1288 bytes
lost at least 226 bytes
no more output after this...
I'm using a 3A power supply for the PI and I have just one micro-usb from the USB3 port on the pi to the KereberosSDR. Do I need a second power supply for the KSDR?
Hmm did you update the Pi4 OS? You're getting a lot of lost bytes there from rtl_test. It's not going to work with all those losses. I believe the stock OS for the Pi4 is broken for RTL-SDRs, so it needs to be updated first.

Post Reply