where can i find the info for the first installation

194 views
Skip to first unread message

Fabio Cavuoto

unread,
Mar 23, 2025, 4:49:51 AM3/23/25
to Radioberry
Ciao,
I'm Fabio and I'm ready to set my radioberry CL016.
Please link me the way to setup my Pi4 and Radioberry CL016.

I need to upgrade the FPGA, how?

Grazie
Fabio


pa3gsb

unread,
Mar 23, 2025, 5:28:35 AM3/23/25
to Radioberry
https://github.com/pa3gsb/Radioberry-2.x/releases

Enjoy.

Johan
PA3GSB

Op zondag 23 maart 2025 om 09:49:51 UTC+1 schreef fabio.ca...@gmail.com:

Rick Tyo

unread,
Apr 1, 2025, 12:23:16 AM4/1/25
to Radioberry
I have a new Pi 4B and a new Radioberry V2.0 card. Everything assembled fine. Installed Bookworm 64-bit with Desktop on Pi4 (installed using Raspberry Pi imager) . All working great. But when I follow the link above and follow the instuctions there to install the Radioberry software, it fails as shown below. It complains that it can't find the linux headers, but I checked and the linux headers are installed. How to proceed???

Thanks...

$ ./radioberry_install.sh


============================================
Radioberry software installation.

You will install the following versions:

        Gateware version 73.3
        Driver version 0.94
        Firmware version 2022.01.24
============================================


Install CL016 or CL025 radioberry version: 1 = CL016 or 2 = CL025? 1
--- Installing dependency: raspberrypi-kernel-headers
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
raspberrypi-kernel-headers is already the newest version (1:1.20230405-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
--- Installing dependency: linux-headers-rpi
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package linux-headers-rpi
--- Installing dependency: git
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
git is already the newest version (1:2.39.5-0+deb12u2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
--- Installing dependency: device-tree-compiler
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
device-tree-compiler is already the newest version (1.6.1-4+b1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
--- Installing dependency: pigpio
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
pigpio is already the newest version (1.79-1+rpt1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Failed to stop radioberry.service: Unit radioberry.service not loaded.
Failed to disable unit: Unit file radioberry.service does not exist.
Installing Radioberry gateware Cyclone 10 CL016...

Radioberry gateware Cyclone 10 CL016 installed.
Installing Radioberry driver...
modprobe: FATAL: Module radioberry not found.
make[1]: Entering directory '/usr/src/linux-headers-6.12.20+rpt-rpi-v8'
  CC [M]  /tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.o
In file included from /tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.c:60:
/tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry_rpi.h:38:6: warning: no previous prototype for 'initialize_gpio_for_output' [-Wmissing-prototypes]
   38 | void initialize_gpio_for_output(volatile uint32_t *gpio_registerset, int bit) {
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry_rpi.h:43:6: warning: no previous prototype for 'initialize_gpio_for_input' [-Wmissing-prototypes]
   43 | void initialize_gpio_for_input(volatile uint32_t *gpio_registerset, int bit) {
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.c:125:9: warning: no previous prototype for 'radioberry_read' [-Wmissing-prototypes]
  125 | ssize_t radioberry_read(struct file *flip, char *buf, size_t count, loff_t *pos) {
      |         ^~~~~~~~~~~~~~~
/tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.c: In function 'radioberry_probe':
/tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.c:300:49: warning: cast between incompatible function types from 'irqreturn_t (* (*)(unsigned int,  void *, struct pt_regs *))(int,  void *)' {aka 'enum irqreturn (* (*)(unsigned int,  void *, struct pt_regs *))(int,  void *)'} to 'irqreturn_t (*)(int,  void *)' {aka 'enum irqreturn (*)(int,  void *)'} [-Wcast-function-type]
  300 |                                                 (irq_handler_t) radioberry_irq_handler,
      |                                                 ^
/tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.c: At top level:
/tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.c:333:27: error: initialization of 'void (*)(struct platform_device *)' from incompatible pointer type 'int (*)(struct platform_device *)' [-Werror=incompatible-pointer-types]
  333 |                 .remove = radioberry_remove,
      |                           ^~~~~~~~~~~~~~~~~
/tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.c:333:27: note: (near initialization for 'radioberry_driver.<anonymous>.remove')
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-headers-6.12.20+rpt-common-rpi/scripts/Makefile.build:249: /tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.12.20+rpt-common-rpi/Makefile:1969: /tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver] Error 2
make[1]: *** [/usr/src/linux-headers-6.12.20+rpt-common-rpi/Makefile:236: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.12.20+rpt-rpi-v8'
make: *** [Makefile:17: radioberry] Error 2
Radioberry driver installation failed.

You are using a linux version without linux header files; choose an other distro.

pa3gsb

unread,
Apr 1, 2025, 2:11:38 AM4/1/25
to Radioberry
seems a recent linux version; so an update of the driver is required.

as an alternative i provided a docker possibility (https://github.com/pa3gsb/Radioberry-2.x/releases/tag/radioberry

please give it a try.

iam not able to work on the driver shortly.

73 Johan
PA3GSB

Op dinsdag 1 april 2025 om 06:23:16 UTC+2 schreef rick...@gmail.com:

Rick Tyo

unread,
Apr 1, 2025, 10:34:00 AM4/1/25
to Radioberry
The Docker version also failed (see below).

73 Rick
KC7X

============================================

Radioberry driver software installation.


if you are facing issues or having ideas for improvement use the forum.
The forum can be found at https://groups.google.com/g/radioberry

Have fun
Johan, PA3GSB
============================================

Greate you are running at a 64-bit system.
Radioberry gateware (radioberry.rbf) is present in /lib/firmware folder.
Docker is installed.
Docker version 28.0.4, build b8034c0
Unable to find image 'pa3gsb/radioberry_kernel_pi4:latest' locally
latest: Pulling from pa3gsb/radioberry_kernel_pi4
f5127914701a: Pull complete
bf64cb2f30eb: Pull complete
5bc885739167: Pull complete
fc0a0b086851: Pull complete
36263003ea5d: Pull complete
58c88aebbdb0: Pull complete
bdf805d19751: Pull complete
4f4fb700ef54: Pull complete
022c7ec7526e: Pull complete
74903f0203fe: Pull complete
b3c80d4aacbd: Pull complete
e6269893bc30: Pull complete
63ce67f81d10: Pull complete
235e3d1721e4: Pull complete
7dcdc1fd3a1c: Pull complete
d752a8f06b48: Pull complete
Digest: sha256:839b0d3cac8bc35403d30231da2d8040326b2bd863e8509d06833973319ab0ab
Status: Downloaded newer image for pa3gsb/radioberry_kernel_pi4:latest

This docker image builds the radioberry driver for the pi-4.



kernel header source files are searched at location: /usr/src/linux-headers-6.12.20+rpt-rpi-v8
kernel header source files are present

kernel modules must be present at location:  /lib/modules/6.12.20+rpt-rpi-v8
kernel modules are present


Building kernel....
Radioberry driver built failed
Building radioberry driver failed (using Docker), stopping script.

Rick Tyo

unread,
Apr 1, 2025, 11:40:18 AM4/1/25
to Radioberry
I also tried the current 32-bit version of the officieal Raspberry Pi OS and got the same error on the standard build (missing headers). When I tried to build using Docker, it complained that "This is not a 64 bit system; Please make use of a 64 bit Linux variant."

So I am now officially dead in the water with new hardware unless someone can point me to a legacy version of the Raspberry Pi OS (64 or 32 bit) on which the existing build scripts will work.

73, Rick - KC7X

Rick Tyo

unread,
Apr 1, 2025, 12:02:50 PM4/1/25
to Radioberry
FYI... I went back to the only legacy 64-bit desktop version of Raspberry Pi OS that is listed in the current Raspberry Pi Imager and tried it with that version. It also failed. Same issue: missing headers.

73, Rick - KC7X

Paul Kuhn

unread,
Apr 1, 2025, 12:14:09 PM4/1/25
to Radioberry
@Rick
Try this one:

Paul Kuhn

unread,
Apr 1, 2025, 12:16:27 PM4/1/25
to Radioberry
@Rick 2nd
I installed bullseye on my pi4, with bookworm i had problems with my touchscreen.

Rick Tyo

unread,
Apr 1, 2025, 12:51:39 PM4/1/25
to Radioberry
Paul,

Thanks for the suggestion. I just tried the script you suggested and encountered the same error as the original script from Johan. I haven't had any issues with my touchscreen on Bookworm or Bullseye. But the Radioberry build error occurs on both Bookworm and Bullseye.

73, Rick - KC7X

pa3gsb

unread,
Apr 1, 2025, 1:15:33 PM4/1/25
to Radioberry

i looked at the error output, searched at the linux distro... i did an update of the repo. i did not compiled it myself iam not having a rpi-4 at hand here. please give it a try.

73 Johan
PA3GSB
Op dinsdag 1 april 2025 om 18:51:39 UTC+2 schreef rick...@gmail.com:
Message has been deleted

Rick Tyo

unread,
Apr 1, 2025, 2:46:12 PM4/1/25
to Radioberry
Johan,

It worked! (See below) I was able to successfully install the Radioberry software from the scripts after you updated the repo. THANK YOU!!!

73, Rick - KC7X

Cloning into 'Radioberry-2.x'...
remote: Enumerating objects: 1152, done.
remote: Counting objects: 100% (1152/1152), done.
remote: Compressing objects: 100% (751/751), done.
remote: Total 1152 (delta 457), reused 900 (delta 354), pack-reused 0 (from 0)
Receiving objects: 100% (1152/1152), 32.38 MiB | 10.47 MiB/s, done.
Resolving deltas: 100% (457/457), done.

Failed to stop radioberry.service: Unit radioberry.service not loaded.
Failed to disable unit: Unit file radioberry.service does not exist.
Installing Radioberry gateware Cyclone 10 CL016...

Radioberry gateware Cyclone 10 CL016 installed.
Installing Radioberry driver...
modprobe: FATAL: Module radioberry not found.
make[1]: Entering directory '/usr/src/linux-headers-6.12.20+rpt-rpi-v8'
  CC [M]  /tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.o
In file included from /tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.c:60:
/tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry_rpi.h:38:6: warning: no previous prototype for ‘initialize_gpio_for_output’ [-Wmissing-prototypes]
   38 | void initialize_gpio_for_output(volatile uint32_t *gpio_registerset, int bit) {
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry_rpi.h:43:6: warning: no previous prototype for ‘initialize_gpio_for_input’ [-Wmissing-prototypes]
   43 | void initialize_gpio_for_input(volatile uint32_t *gpio_registerset, int bit) {
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.c:125:9: warning: no previous prototype for ‘radioberry_read’ [-Wmissing-prototypes]
  125 | ssize_t radioberry_read(struct file *flip, char *buf, size_t count, loff_t *pos) {
      |         ^~~~~~~~~~~~~~~
/tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.c: In function ‘radioberry_probe’:
/tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.c:300:49: warning: cast between incompatible function types from ‘irqreturn_t (* (*)(unsigned int,  void *, struct pt_regs *))(int,  void *)’ {aka ‘enum irqreturn (* (*)(unsigned int,  void *, struct pt_regs *))(int,  void *)’} to ‘irqreturn_t (*)(int,  void *)’ {aka ‘enum irqreturn (*)(int,  void *)’} [-Wcast-function-type]
  300 |                                                 (irq_handler_t) radioberry_irq_handler,
      |                                                 ^
  MODPOST /tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver/Module.symvers
  CC [M]  /tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.mod.o
  CC [M]  /tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver/.module-common.o
  LD [M]  /tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.ko

make[1]: Leaving directory '/usr/src/linux-headers-6.12.20+rpt-rpi-v8'
dtc -@ -I dts -O dtb -o radioberry.dtbo radioberry.dts
echo Build Device Tree Overlay and kernel module.
Build Device Tree Overlay and kernel module.
chmod: cannot access '/dev/radioberry': No such file or directory
filename:       /lib/modules/6.12.20+rpt-rpi-v8/kernel/drivers/sdr/radioberry.ko
version:        4.02
license:        GPL
description:    Radioberry SDR device driver. (rpi-4)
author:         Johan Maas - pa3...@gmail.com
srcversion:     068677817B2081DAAB945EF
alias:          of:N*T*Csdr,radioberryC*
alias:          of:N*T*Csdr,radioberry
depends:
name:           radioberry
vermagic:       6.12.20+rpt-rpi-v8 SMP preempt mod_unload modversions aarch64

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.
Cleaning up...
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
============================================

Reply all
Reply to author
Forward
Message has been deleted
0 new messages