Installation error -

246 views
Skip to first unread message

Robert Nickels

unread,
Sep 1, 2023, 2:34:13 PM9/1/23
to Radioberry

I recently installed radioberry and pihpsdr on a fresh Bullseye OS created with the R-Pi Imager and in a "pi" user account.     Both Radioberry and pihpsdr on this Pi4 work separately - but not at the same time. I can control the Radioberry from another application such as Spark, and I can control a standard Hermes-Lite from pihpsdr on the Radioberry Pi - but as soon as I try to do both at the same time, the stream locks up and the Radioberry shows a solid waterfall spike. I have to reboot the Pi in order to clear this condition.

Examination of the installation terminal shows the following error:
E: Unable to locate package linux-headers-rpi

Evidently linux-headers-rpi is needed for compiling a kernel module.  Trying to manually install it with sudo apt install  linux-headers-rpi results in "Unable to locate package linux-headers-rpi"   Google searches produce info on "raspberrypi-kernel-headers" - which is installed and up to date, but not the package being requested by the script.

I'm interested in getting the Radioberry running properly on the Pi4 with pihpsdr, and am only speculating that the missing package might be the reason for that problem, since it's the only error message I've spotted.

I followed the Radioberry install script with no other errors,  and get a proper response to sudo modinfo radioberry.  As stated,  both Radioberry and pihpsdr work properly one at a time, but not simultaneously. 

Any suggestions on where to find  linux-headers-rpi  and/or how to resolve the primary issue would be much appreciated!

73, Bob W9RAN

pa3gsb

unread,
Sep 1, 2023, 4:09:14 PM9/1/23
to Radioberry
Bob

You installed pihpsdr with io control

the io is used by radioberry

Dont use the io from pihpsdr.

73 Johan

PA3GSB

Op vrijdag 1 september 2023 om 20:34:13 UTC+2 schreef rani...@gmail.com:

Robert Nickels

unread,
Sep 1, 2023, 11:25:04 PM9/1/23
to Radioberry
Johan,  thanks very much for your reply.    However I don't quite understand.
First I made sure the fresh Pi OS Bullseye installation was updated and checked SSH, VNC, I2C and unchecked SPI.  This Pi has never had pihpsdr installed before and I don't remember installing any IO.

I followed the installation process pasted below  - could you please give me a bit more specific information about what I did wrong? 
Thanks, Bob

Installation of radioberry software.

The whole software stack will be installed.

https://github.com/pa3gsb/Radioberry-2.x/wiki/Radioberry-Software-stack

The install script will give details about the versions to be installed.

Open a command window and executing the following commands:

cd /tmp
wget https://raw.githubusercontent.com/pa3gsb/Radioberry-2.x/master/SBC/rpi-4/releases/dev/radioberry_install.sh
sudo chmod +x radioberry_install.sh
./radioberry_install.sh

Install script pihpsdr This script does help in installing the development version of pihpsdr using the git repo of John Melton.

cd /tmp
wget https://raw.githubusercontent.com/pa3gsb/Radioberry-2.x/master/SBC/rpi-4/releases/dev/pihpsdr_install.sh
sudo chmod +x pihpsdr_install.sh
./pihpsdr_install.sh

 

pa3gsb

unread,
Sep 2, 2023, 8:02:40 AM9/2/23
to Radioberry
Bob

I did react on your mail

I recently installed radioberry and pihpsdr on a fresh Bullseye OS created with the R-Pi Imager and in a "pi" user account.     Both Radioberry and pihpsdr on this Pi4 work separately - but not at the same time. I can control the Radioberry from another application such as Spark, and I can control a standard Hermes-Lite from pihpsdr on the Radioberry Pi - but as soon as I try to do both at the same time, the stream locks up and the Radioberry shows a solid waterfall spike. I have to reboot the Pi in order to clear this condition.

The radioberry does use the gpio pins. The pihpsdr software running at the RPI can have acces to the gpio pins as well. The use of these gpio pins is done to control your radio via encoders and push buttons.
So the code of pihpsdr is trying to control the gpio pins which are needed by the Radioberry.

Due to interference between both the radio is not working properly; so when you start on an external computer an sdr program the radio is working.

All these hints are already mention in this forum... by some digging it must be possible to find the answer.

Hope this makes it clear.

73 Johan
PA3GSB

Op zaterdag 2 september 2023 om 05:25:04 UTC+2 schreef rani...@gmail.com:

Robert Nickels

unread,
Sep 2, 2023, 12:01:51 PM9/2/23
to Radioberry
SOLVED:    I was not making the connection between your comments and the installation script, but here it is:

When installing pihpsdr, you will be asked "Do you wish to install the local CW option: yes or no?"   
THIS IS WHAT YOU MUST ANSWER "NO" TO IN ORDER FOR RADIOBERRY TO WORK LOCALLY.

Re-installing pihpsdr from the script and entering "n" at this option fixed the problem and I'm now able to run phipsdr on the local radioberry board.

Maybe the wiki could be revised at some point to include this and other important notes.
Thanks again for your help, Johan.
73, Bob W9RAN

pa3gsb

unread,
Sep 2, 2023, 12:27:33 PM9/2/23
to Radioberry
Bob,

The info is there already...


Your conclusion is not right; gpio use  is possible but limited for cw only.



73 Johan
PA3GSB

Op zaterdag 2 september 2023 om 18:01:51 UTC+2 schreef rani...@gmail.com:

Robert Nickels

unread,
Sep 2, 2023, 4:22:16 PM9/2/23
to Radioberry
OK, although my way seemed to make it work, I re-installed pihpsdr, this time again answering "Y" to the local CW option.   When I ran pihpsdr and "No Controller" and then "Configure GPIO, I expected to get the screen on the left, per the wiki.  However I only get the screen on the right which has no similar options available:
gpio config screens.jpg

While it's a different build, both  "includes GPIO MIDI LOCALCW"    Note, I have a regular Hermes-Lite online plus the Radioberry, thus three devices are discovered.
Thanks again for any help.

73, Bob W9RAN

Yado-san

unread,
Sep 3, 2023, 1:42:07 AM9/3/23
to Radioberry
Hi Bob,

The following posts may be helpful.

https://groups.google.com/g/radioberry/c/Q1AmOpy2Ok4/m/Lelfm-EiCAAJ
 Radioberry 2022/02/17 21:04:09 ( for piHPSDR earlier build:2020-10-12 v2.0.0-rc15)
 Radioberry 2022/02/18 23:33:29 ( for piHPSDR later build:2022-02-18 )
  i.e. Need to change the piHPSDR repository to "https://github.com/pa3gsb/pihpsdr"

73, Yado-san jg1twp

2023年9月3日日曜日 5:22:16 UTC+9 rani...@gmail.com:

Robert Nickels

unread,
Sep 4, 2023, 2:14:33 PM9/4/23
to Radioberry
Thanks Yado-san, I think I see now that for the local CW options to show up, it's necessary to swap in the modified gpio.c and recompile.  
Since local CW is not that important to me I'll probably just stick with my "no" solution for now.

73, Bob W9RAN
Reply all
Reply to author
Forward
0 new messages