RB 2 not loading

261 views
Skip to first unread message

DIVAKAR RAO

unread,
Mar 19, 2024, 6:30:43 AM3/19/24
to radio...@googlegroups.com
Hi All,
Pls advice to resolve this issue , radioberry module is not getting loaded/installed. Pls see the output below when running installer script.
I use RPI 4 and full upgrade done before installing RB.

My Setup

Radioberry VERSION 2.0 BETA 3 FPGA Cyclone CL016 ,

Pins 53 and 69 shorted

Raspberry PI version 4

Official Raspberry Pi Power supply

Cheers
Divakar
VU2FFW

Radioberry gateware Cyclone 10 CL016 installed.
Installing Radioberry driver...
make[1]: *** /lib/modules/5.15.61-v7l+/build: No such file or directory.  Stop.
make: *** [Makefile:8: radioberry.ko] Error 2
cp: cannot stat 'radioberry.ko': No such file or directory
depmod: WARNING: could not open modules.order at /lib/modules/5.15.61-v7l+: No such file or directory
depmod: WARNING: could not open modules.builtin at /lib/modules/5.15.61-v7l+: No such file or directory
modprobe: FATAL: Module radioberry not found in directory /lib/modules/5.15.61-v7l+
chmod: cannot access '/dev/radioberry': No such file or directory
modinfo: ERROR: Module radioberry not found.

Radioberry driver installed.
Installing Radioberry firmware...
rm -f version.o
gcc -g -O3   -c -o register.o register.c
gcc -g -O3   -c -o bias.o bias.c
gcc -g -O3   -c -o measure.o measure.c
gcc -g -O3   -c -o radioberry.o radioberry.c
gcc -o radioberry register.o bias.o measure.o radioberry.o -lrt -lm -lpthread

Radioberry firmware installed.
Installing radioberry service ...
Radioberry service installed.
Created symlink /etc/systemd/system/multi-user.target.wants/radioberry.service → /etc/systemd/system/radioberry.service.


============================================
Radioberry software is installed!
Have fun using the SDR Radioberry

73 Johan PA3GSB
============================================

qrp73

unread,
Mar 19, 2024, 11:52:27 AM3/19/24
to Radioberry
this error indicates that there is missing kernel headers for your linux kernel.

v7l+ is 32-bit kernel. First try to install kernel headers for v7l kernel with this command:
```
sudo apt install linux-headers-rpi-v7l
```

then try to compile radioberry driver again. If it fails again with the same error, then it means that there is no kernel headers for your kernel.

Try to restore stock kernel with this command:
```
sudo apt install --reinstall raspi-firmware
```
then reboot the system and install kernel headers:
```
sudo apt install linux-headers-rpi-v7l
```

then try to compile radioberry driver again. It should help.

Best regards,
Alex

DIVAKAR RAO

unread,
Mar 19, 2024, 12:13:07 PM3/19/24
to qrp73, Radioberry
Thank you Alex !! for your prompt response. I will try this and revert asap.

Cheers
Divakar


From: radio...@googlegroups.com <radio...@googlegroups.com> on behalf of qrp73 <qrp...@gmail.com>
Sent: Tuesday, March 19, 2024 9:22 PM
To: Radioberry <radio...@googlegroups.com>
Subject: Re: RB 2 not loading
 
--
You received this message because you are subscribed to the Google Groups "Radioberry" group.
To unsubscribe from this group and stop receiving emails from it, send an email to radioberry+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/radioberry/c845afd4-d86c-42ee-9980-bcdcb330111dn%40googlegroups.com.

DIVAKAR RAO

unread,
Mar 20, 2024, 12:35:18 AM3/20/24
to qrp73, Radioberry
Hi Alex,

I tried to install the headers but not scuccessful .Pls see the screen below for errors

sudo apt install linux-headers-rpi-v7l


the highlighted portion of the command is not accepted i guess.


Cheers
Divakar



From: radio...@googlegroups.com <radio...@googlegroups.com> on behalf of qrp73 <qrp...@gmail.com>
Sent: Tuesday, March 19, 2024 9:22 PM
To: Radioberry <radio...@googlegroups.com>
Subject: Re: RB 2 not loading
 
--

qrp73

unread,
Mar 20, 2024, 4:03:28 AM3/20/24
to Radioberry
as you can see from uname -r comman output, your kernel is switched to v8+. 
So, you're needs to install kernel headers with this command:
```
sudo apt install linux-headers-rpi-v8
```

DIVAKAR RAO

unread,
Mar 20, 2024, 5:07:18 AM3/20/24
to qrp73, Radioberry
Thank you Alex , however i have the same issue with v8 too

pi@raspberrypi:~ $ sudo apt install linux-headers-rpi-v8
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package linux-headers-rpi-v8
pi@raspberrypi:~ $

Sent: Wednesday, March 20, 2024 1:33 PM

qrp73

unread,
Mar 20, 2024, 12:32:18 PM3/20/24
to Radioberry
Your output shows kernel 6.1.21. 
But current raspios kernel is 6.6.20+rpt-rpi-v8.
You're needs to restore stock kernel and get latest update.

Before doing it, remove this line from /boot/firmware/config.txt:
```
dtoverlay=radioberry
```

it will help to avoid driver crash during boot. After that restore stock kernel with this command:
```
sudo apt install --reinstall raspi-firmware
```
Then do system reboot (this is important).

Then apply latest updates:
```
sudo apt update && sudo apt upgrade -y
```
and do system reboot again.

Then install kernel headers:
```
sudo apt install linux-headers-rpi-v8
```

After that you can try to install radioberry driver.

Best regards,
Alex

DIVAKAR RAO

unread,
Mar 21, 2024, 12:45:16 AM3/21/24
to qrp73, Radioberry
Many Many Thanks Alex for detailed steps, i will attempt this and update.

Cheers
Divakar

Sent: Wednesday, March 20, 2024 10:02 PM

Wim PE1PWR

unread,
Mar 21, 2024, 1:15:58 AM3/21/24
to DIVAKAR RAO, qrp73, Radioberry
Little tip.
Make a pi update with windisk Manager 32.
On my site my CD card was defect.
With a backup was it easy to go back to the old kernel 6.1 version. Thans to qrp73 I have sold the problem. Now I am using my backup to starting al over when my CD card became defect.
Wim
PE1PWR
73

Op 21 mrt. 2024, om 05:45, DIVAKAR RAO <vu2...@gmail.com> schreef:

DIVAKAR RAO

unread,
Mar 21, 2024, 1:39:11 AM3/21/24
to qrp73, Radioberry
Hi Alex,

This command did not work, sudo apt install --reinstall raspi-firmware

i tried $ sudo apt install --reinstall raspberrypi-kernel   and it installed (output as attached)
and after reboot  i did update and upgrade but there was nothing to upgrade. 
after reboot tried to install linux headers but getting same error again
==========

pi@raspberrypi:~ $ sudo apt install linux-headers-rpi-v8
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package linux-headers-rpi-v8
===========================

Attached is the whole output.
Many thanks for your responses.

Cheers
Divakar

Sent: Wednesday, March 20, 2024 10:02 PM
rberry_ker_err.txt

DIVAKAR RAO

unread,
Mar 21, 2024, 2:57:26 AM3/21/24
to qrp73, Radioberry
Hello Alex,

1.I managed to update the firmware with this command sudo rpi-update 

2. After this the kernel headers were updated as below 

pi@raspberrypi:~ $ uname -r
6.6.22-v8+

3.i ran the ./radioberry_install. sh   however this exited saying radioberry  module not found.

chmod: cannot access '/dev/radioberry': No such file or directory
modinfo: ERROR: Module radioberry not found.



Thank you for your reponses.

Cheers
Divakar

From: DIVAKAR RAO <vu2...@gmail.com>
Sent: Thursday, March 21, 2024 11:09 AM
To: qrp73 <qrp...@gmail.com>; Radioberry <radio...@googlegroups.com>

qrp73

unread,
Mar 21, 2024, 2:58:47 AM3/21/24
to Radioberry
according to log you're using raspios Bullseye, but my commands was for raspios Bookworm, that's explain why it don't works for your case.
I don't know details on how to install kernel headers for raspios Bullseye, but since you already reinstalled kernel, try to install the driver is it works?

Best regards,
Alex

qrp73

unread,
Mar 21, 2024, 3:05:45 AM3/21/24
to Radioberry

Don't use rpi-update, it don't have kernel headers.

If you do rpi-update, then you're needs to restore stock kernel. For Bookworm it can be done with
```
sudo apt install --reinstall raspi-firmware
```

But I don't know how to restore it on Bullseye. 
You're needs to restore stock kernel, because kernels headers can be installed for this kernel only. 
For other kernel you're needs to install kernel headers manually by fetching code which was used to build your kernel.

Best regards,
Alex

qrp73

unread,
Mar 21, 2024, 3:07:47 AM3/21/24
to Radioberry
I think it's better to reinstall raspios from scratch and just don't use rpi-update.

Best regards,
Alex

DIVAKAR RAO

unread,
Mar 21, 2024, 3:31:40 AM3/21/24
to qrp73, Radioberry
Ok noted Alex , i will reinstall OS.

Cheers
Divakar

Sent: Thursday, March 21, 2024 12:37 PM

DIVAKAR RAO

unread,
Mar 21, 2024, 3:58:28 AM3/21/24
to qrp73, Radioberry
Hello Alex,

I have reinstalled OS with Bookworm on RPI4 . I believe now we dont need to do kernel update.

This is on my new Bookworm . can i proceed to install radioberry 2.0 from the installer ?
pi@wspry:~ $ uname -r
6.6.20+rpt-rpi-v8
pi@wspry:~ $

Cheers
Divakar


From: DIVAKAR RAO <vu2...@gmail.com>
Sent: Thursday, March 21, 2024 1:01 PM
To: qrp73 <qrp...@gmail.com>; Radioberry <radio...@googlegroups.com>

Paulh002

unread,
Mar 21, 2024, 4:54:07 AM3/21/24
to Radioberry
Hi,

If you want to use 32 bit operating system make sure the kernel is set to 32 bit.
Raspberry pi OS always defaults to 64 bit. Even when you install 32 bit OS.
This can be done by adding arm_64bit=0 to config.txt


73,
Paul



Op donderdag 21 maart 2024 om 08:58:28 UTC+1 schreef DIVAKAR RAO:

DIVAKAR RAO

unread,
Mar 21, 2024, 7:06:30 AM3/21/24
to qrp73, Radioberry
Thank you Alex and Paul. 

I have managed to do the below

  1. Flashed OS 64 bit in sd card
  2. Installed Radioberry module
  3. Installed piHPSDR 
  4. radioberry status show service running

However the pihpsdr shows blank screen as attached (antenna not yet connected) is this normal ?
Pls do advice any other next steps.

Many thanks for your support

==============================================================================
 sudo systemctl status radioberry
● radioberry.service - Radioberry SDR
     Loaded: loaded (/etc/systemd/system/radioberry.service; enabled; preset: e>
     Active: active (running) since Thu 2024-03-21 16:10:08 IST; 7min ago
    Process: 1181 ExecStart=/etc/init.d/radioberryd start (code=exited, status=>
   Main PID: 1228 (radioberry)
      Tasks: 6 (limit: 3910)
        CPU: 6min 17.357s
     CGroup: /system.slice/radioberry.service
             └─1228 /usr/local/bin/radioberry

Mar 21 16:10:08 wspry systemd[1]: Starting radioberry.service - Radioberry SDR.>
Mar 21 16:10:08 wspry sudo[1186]:     root : PWD=/ ; USER=root ; COMMAND=/usr/b>
Mar 21 16:10:08 wspry sudo[1186]: pam_unix(sudo:session): session opened for us>
Mar 21 16:10:08 wspry sudo[1186]: pam_unix(sudo:session): session closed for us>
Mar 21 16:10:08 wspry radioberryd[1181]: Start radioberry firmware daemon: OK
Mar 21 16:10:08 wspry radioberryd[1229]: Thu 21 Mar 16:10:08 IST 2024
Mar 21 16:10:08 wspry systemd[1]: Started radioberry.service - Radioberry SDR.
lines 1-17/17 (END)


Cheers
Divakar



From: DIVAKAR RAO <vu2...@gmail.com>
Sent: Thursday, March 21, 2024 1:28 PM
pihpsdr_screen.jpeg

qrp73

unread,
Mar 21, 2024, 8:30:54 AM3/21/24
to Radioberry
Where did you get radioberry board? I bought it on aliexpress and it had the same issue, the root of cause - the bad chip soldering.

I asked help for local repair service they resoldered AD9866 and it started to work. 
But afer some time it appears that some pin unconnected again and now it shows twice slower sample rate and jerky sound. It react on LO change, but don't react on Gain setting. It looks like there is still bad soldering for serial pin and it cannot initialize registers of AD9866. 
I inspected it with magnifier and it seems that it really bad soldered for pins 20-23, it looks like there is some small gap between pin and solder. Needs to repair it again.

Best regards,
Alex

qrp73

unread,
Mar 21, 2024, 8:39:59 AM3/21/24
to Radioberry
it should show gateware version instead of 0.0 at the window title. If it shows 0.0 there is no clock from AD9866.

Also try to reboot the system, may be it can help.

There is sanity test, do the following commands:
```
sudo systemctl stop radioberry
sudo radioberry
```

It should show gateware version (73.3 at current version), if it shows 0.0 it means that there is no clock from AD9866 (pin 19) to FPGA chip (pin 53 and pin 69).

Best regards,
Alex

DIVAKAR RAO

unread,
Mar 21, 2024, 9:10:28 AM3/21/24
to qrp73, Radioberry
Thanks Alex for the inputs. The board was locally assembled here in Chennai as part of group build  , though i am not sure if it was 100% or semi assembled locally.

I will do reboot once again and check also will check solder pads on the board. Also in my board pin 53 and 69 is shorted using s small wire , this was done so that it will work with PI4.

Thanks a lot.

Cheers
Divakar

Sent: Thursday, March 21, 2024 6:09 PM
To: Radioberry <radio...@googlegroups.com>
Subject: Re: RB 2 not loading (Good News : Small Win...)
 

DIVAKAR RAO

unread,
Mar 21, 2024, 9:33:55 AM3/21/24
to qrp73, Radioberry
Hi Alex,

Quick update.

  1. sudo systemctl stop radioberry  // after this command i did not see any output for long time , 
  2. so i did a ctrl-c and sudo reboot 
  3. the reboot also gets hung in the Welcome screen
  4. have to pull the power out to to get it work again , 
  5. radioberry service is started automatically after this. (o/p below)

this happened even i rebooted(and had to pull out power) the first time after installing everything.

Cheers
Divakar
===============================================================
 sudo systemctl status radioberry
● radioberry.service - Radioberry SDR
     Loaded: loaded (/etc/systemd/system/radioberry.service; enabled; preset: e>
     Active: active (running) since Thu 2024-03-21 18:47:47 IST; 13min ago
    Process: 1179 ExecStart=/etc/init.d/radioberryd start (code=exited, status=>
   Main PID: 1228 (radioberry)
      Tasks: 6 (limit: 3910)
        CPU: 595ms
     CGroup: /system.slice/radioberry.service
             └─1228 /usr/local/bin/radioberry

Mar 21 18:47:47 wspry systemd[1]: Starting radioberry.service - Radioberry SDR.>
Mar 21 18:47:47 wspry sudo[1181]:     root : PWD=/ ; USER=root ; COMMAND=/usr/b>
Mar 21 18:47:47 wspry sudo[1181]: pam_unix(sudo:session): session opened for us>
Mar 21 18:47:47 wspry sudo[1181]: pam_unix(sudo:session): session closed for us>
Mar 21 18:47:47 wspry radioberryd[1179]: Start radioberry firmware daemon: OK
Mar 21 18:47:47 wspry radioberryd[1229]: Thu 21 Mar 18:47:47 IST 2024
Mar 21 18:47:47 wspry systemd[1]: Started radioberry.service - Radioberry SDR.


Sent: Thursday, March 21, 2024 6:09 PM
To: Radioberry <radio...@googlegroups.com>
Subject: Re: RB 2 not loading (Good News : Small Win...)

qrp73

unread,
Mar 21, 2024, 9:34:35 AM3/21/24
to Radioberry
check the clock on pin 53 and 69, if it missing check the oscillator clock. 
If oscillator clock is present and pin 53 and 69 is missing then something wrong with AD9866.

Best regards,
Alex

DIVAKAR RAO

unread,
Mar 21, 2024, 9:57:27 AM3/21/24
to qrp73, Radioberry
noted , Thank you will check and revert.

Cheers
Divakar

Sent: Thursday, March 21, 2024 7:04 PM
Reply all
Reply to author
Forward
0 new messages