32 views
Skip to first unread message

Rob Robinett

unread,
May 23, 2024, 12:11:46 PM5/23/24
to Phil Karn, ka9q-radio, Holger Gatternig, Steve Sykes
Hi Phil,

For the first time in months, I checked Holger's Pi 5 and found it needed to be rebooted in order to run almost any Linux command.
But after a reboot, your May 7th checkin fails to build on Holger's Pi 5.

73,

Rob



wsprdaemon@OE9GHV-Pi5:~/wsprdaemon/ka9q-radio $ make clean
rm -f *.o *.a .depend control jt-decoded metadump monitor opussend pcmcat pcmrecord pcmsend pcmspawn pl powers setfilt show-pkt show-sig tune wd-record aprs aprsfeed cwd opusd packetd radiod stereod rdsd
wsprdaemon@OE9GHV-Pi5:~/wsprdaemon/ka9q-radio $ make
rm -f .depend
cc -DNDEBUG=1 -O3 -march=native -std=gnu11 -pthread -Wall -funsafe-math-optimizations -fno-math-errno -fcx-limited-range -D_GNU_SOURCE=1  -MM airspy.c airspyhf.c aprs.c aprsfeed.c attr.c audio.c avahi.c avahi_browse.c ax25.c bandplan.c config.c control.c cwd.c decimate.c decode_status.c dump.c ezusb.c fcd.c filter.c fm.c funcube.c hid-libusb.c iir.c jt-decoded.c linear.c main.c metadump.c misc.c modes.c monitor.c morse.c multicast.c opusd.c opussend.c osc.c packetd.c pcmcat.c pcmrecord.c pcmsend.c pcmspawn.c pl.c powers.c radio.c radio_status.c rdsd.c rtcp.c rtlsdr.c rx888.c setfilt.c show-pkt.c show-sig.c sig_gen.c spectrum.c status.c stereod.c tune.c wd-record.c wfm.c > .depend
In file included from airspy.c:8:
/usr/include/libairspy/airspy.h:44:2: error: #endif without #if
cc -DNDEBUG=1 -O3 -march=native -std=gnu11 -pthread -Wall -funsafe-math-optimizations -fno-math-errno -fcx-limited-range -D_GNU_SOURCE=1    -c -o aprs.o aprs.c
cc -DNDEBUG=1 -O3 -march=native -std=gnu11 -pthread -Wall -funsafe-math-optimizations -fno-math-errno -fcx-limited-range -D_GNU_SOURCE=1    -c -o morse.o morse.c
cc -DNDEBUG=1 -O3 -march=native -std=gnu11 -pthread -Wall -funsafe-math-optimizations -fno-math-errno -fcx-limited-range -D_GNU_SOURCE=1    -c -o dump.o dump.c
^Cmake: *** [<builtin>: dump.o] Interrupt

wsprdaemon@OE9GHV-Pi5:~/wsprdaemon/ka9q-radio $ ^C

--
Rob Robinett
AI6VN

Rob Robinett

unread,
May 23, 2024, 12:12:45 PM5/23/24
to Phil Karn, ka9q-radio, Holger Gatternig, Steve Sykes
Resending with a subject line...

Steve Sykes

unread,
May 23, 2024, 3:16:32 PM5/23/24
to Rob Robinett, Phil Karn, ka9q-radio, Holger Gatternig
I also found that when trying to build yesterday. I got it running by using the Linux makefile instead of the pi one.

Steve 
Sent from my iPhone.
 

On May 23, 2024, at 12:12, Rob Robinett <r...@robinett.us> wrote:


--
You received this message because you are subscribed to the Google Groups "ka9q-radio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ka9q-radio+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ka9q-radio/CADO0QiYikbMyTTt%3DoknCxDwYFwHT7B4GtdRP9tiz_1O9CtfGgg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Rob Robinett

unread,
May 23, 2024, 3:41:23 PM5/23/24
to Steve Sykes, Holger Gatternig, Phil Karn, ka9q-radio
It seems that Holger's Pi 5 files system is corrupt:

wsprdaemon@OE9GHV-Pi5:~/wsprdaemon/ka9q-radio $ sudo apt update
E: Malformed line 1 in source list /etc/apt/sources.list.d/raspi.list (type)
E: The list of sources could not be read.
wsprdaemon@OE9GHV-Pi5:~/wsprdaemon/ka9q-radio $

Phil Karn

unread,
May 24, 2024, 12:45:02 PM5/24/24
to Rob Robinett, ka9q-radio, Holger Gatternig, Steve Sykes

Weird. I'm traveling and will look at it when I can. It's running on my Pi-5.

Rob Robinett

unread,
May 24, 2024, 12:48:42 PM5/24/24
to Phil Karn, ka9q-radio, Holger Gatternig, Steve Sykes
Holger is going to reinstall the OS this weekend.  It appears to be corrupted.

Phil Karn

unread,
May 24, 2024, 2:07:17 PM5/24/24
to Rob Robinett, ka9q-radio, Holger Gatternig, Steve Sykes

That's what I'd suggest. A mismatched #if/#endif would show up quickly during compilation anywhere if it were real.

Rob Robinett

unread,
May 24, 2024, 9:08:05 PM5/24/24
to Holger Gatternig, Steve Sykes, Phil Karn, ka9q-radio
Hi Holger,

I think Raspian without GUI would be best.

Rob

On Thu, May 23, 2024 at 9:26 PM Holger Gatternig <hol...@gatternig.com> wrote:
Hi Rob,

i try to install it this weekend.
What OS do you like to have on the pi5? Raspian without GUI?


thanks, Holger

Rob Robinett

unread,
Jun 4, 2024, 4:53:58 PM6/4/24
to ka9q-radio
To finish this thread:

KA9q-radio was successfully installed and reliably runs a RX888 at 64.8 Msps.  However you can't run any other software on the Pi5 at the same time.

Since you would need a second Pi5 or other host to run KA9Q-web or Wsprdaemon, it seems to me that the Pi 5 is not a cost or especially power or space efficient host for the RX888.

Phil Karn

unread,
Jun 4, 2024, 5:36:21 PM6/4/24
to ka9q-...@googlegroups.com

Well, technically you *can* run other software on the Pi5 at the same time, but there's little resources left. In particular, if you use a lot of memory you will probably worsen the cache hit ratios badly enough for the FFT threads inside ka9q-radio that they will no longer run in real time. This can also happen if you run ka9q-web (locally or on another system) with the default spectral option of "zoom all the way out". This causes the spectrum pseudo-demod thread inside ka9q-radio to calculate power levels for every one of 32.4 million complex FFT bins, and that cache contention also keeps the FFT threads from running in real time.

Although the Pi is a nifty little computer, it should not be seen as a CPU engine but as something best suited for embedded applications. ka9q-radio runs best on x86-64 systems with enough cycles (and cache) to provide a good margin for its real time operations.

Phil

Reply all
Reply to author
Forward
0 new messages