If you notice spammers in the forum, please notify Bas ON5HB, so they can be removed and banned. Give a link in the chatbox or send a PM to me. Thanks.

Tried to Compile on a RPI4 with 2GB memory...

Started by Bas ON5HB, Sep 04, 2024, 11:09 PM

Previous topic - Next topic

Bas ON5HB

Ok, I have worked it out.

Had to kill all the zram stuff, make a swapfile of about 10GB....my Pi4 is only 2GB-ram.

Turns out that Ninja uses 6-threads by default, that was overloading everything.

So I told Ninja to use 1 thread only and it would compile.

Maybe the install-script should limit to e.g. 2-thread max for Ninja, it won't be that much slower.

I installed the RX-888 and with no-accel it does easily 5MHz BW.

[input]
sps=10000000 # Input Sample Rate
#fft_size=524288 # FFT bins
fft_size=262144
fft_threads=2
brightness_offset=0 # Waterfall brightness offset. Reduce to negative if you see black regions in the waterfall
frequency=0 # Baseband frequency
signal="real" # real or iq
accelerator="none" # Accelerator: none, cuda, opencl
audio_sps=12000 # Audio Sample Rate
audio_compression="flac" # flac or opus
waterfall_size=1024
waterfall_compression="zstd" # zstd or av1
smeter_offset=0

Stutterfree....but it's just for testing ;D

Tried to install OpenCL but failed so far :-X

Best regards,

Bas ON5HB

Ps. the Community Edition can be found here: https://github.com/ny4qphil/PhantomSDR-Plus

Bas ON5HB

Max I can squeze out of a Pi4:

[input]
sps=12000000 # Input Sample Rate
#fft_size=524288 # FFT bins
fft_size=262144
fft_threads=2
brightness_offset=0 # Waterfall brightness offset. Reduce to negative if you see black regions in the waterfall
frequency=0 # Baseband frequency
signal="real" # real or iq
accelerator="none" # Accelerator: none, cuda, opencl
audio_sps=12000 # Audio Sample Rate
audio_compression="flac" # flac or opus
waterfall_size=1024
waterfall_compression="zstd" # zstd or av1
smeter_offset=0


Best regards,

Bas ON5HB

Ps. the Community Edition can be found here: https://github.com/ny4qphil/PhantomSDR-Plus

linkz

#17
FYI

http://linkz.ddns.net:8089 (raspi4 + rtl v4 dongle) is now:

0600z-1800z 28-30MHz
1800z-0600z 0-2MHz

(simple cron stuff)

linkz

Hi

My Raspberry Pi 4B 4GB now hosts a second rtl-sdr v4 dongle and streamserver with 30-32MHz range
Seems ok so far

to be continued..

Bas ON5HB

Found the issue why it stopped compiling on a low-CPU/Memory system.

Go into the install.sh and find this line:

meson compile -C build
Change it to

meson compile -j2 -C build
Meaning it will use 2 CPU-cores now and not the 6 by default.

Because more cores means it needs more memory, reducing the number of cores will help to finish the proces.

On most machines this isn't needed, but my tiny RPi4 with 2GB ram can not compile if more then 2 cores are used, as it runs out of memory and crashes. 8)

Best regards,

Bas ON5HB

Ps. the Community Edition can be found here: https://github.com/ny4qphil/PhantomSDR-Plus

Powered by EzPortal