Have a new Radioberry board that I have married to my Pi4 4GB SBC. I have the 32bit Raspberry Pi OS installed which I downloaded today. The OS is fully updated and upgraded as of today. I used the Radioberry development installer for the Raspberry Pi driver and I get errors as it installs. The errors I am getting are similar to what has been posted here on this group before but the "fixes" offered don't make any difference in my case.
Point to ponder - I had attempted the same install on an existing OS build of the same flavor and got the same errors. One of the "fixes" that was offered here was to create a whole new Pi image which apparently 'fixed' some users issues - but not mine.
Below I pasted what the install looked like - complete with failures of which I have no idea how to fix - and the fixes I found here didn't "fix" them either...
So if anyone has an idea as to what to do next, I'm open to all suggestions. I have changed the errors that were obvious to me, to red letters and highlighted a few things as well to help others "see" the possible issues....
xxxxxxxxxxx/tmp
https://raw.githubusercontent.com/pa3gsb/Radioberry-2.x/master/SBC/rpi-4/releases/dev/radioberry_install.sh--2023-08-24 13:48:56--
https://raw.githubusercontent.com/pa3gsb/Radioberry-2.x/master/SBC/rpi-4/releases/dev/radioberry_install.shResolving
raw.githubusercontent.com (
raw.githubusercontent.com)... 185.199.110.133, 185.199.111.133, 185.199.109.133, ...
Connecting to
raw.githubusercontent.com (
raw.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3653 (3.6K) [text/plain]
Saving to: ‘radioberry_install.sh’
radioberry_install.sh 100%[=======================================================================>] 3.57K --.-KB/s in 0s
2023-08-24 13:48:56 (10.8 MB/s) - ‘radioberry_install.sh’ saved [3653/3653]
xxxxxxxxxxxi:/tmp $ sudo chmod +x radioberry_install.sh
xxxxxxxxxxx:/tmp $ sudo ./radioberry_install.sh
============================================
Radioberry software installation.
You will install the following versions:
Gateware version 73.2
Driver version 0.92
Firmware version 2021.09.10
============================================
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
The following NEW packages will be installed:
raspberrypi-kernel-headers
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 30.0 MB of archives.
After this operation, 193 MB of additional disk space will be used.
Get:1
http://archive.raspberrypi.org/debian bullseye/main armhf raspberrypi-kernel-headers armhf 1:1.20230405-1 [30.0 MB]
Fetched 30.0 MB in 4s (7,381 kB/s)
Selecting previously unselected package raspberrypi-kernel-headers.
(Reading database ... 106576 files and directories currently installed.)
Preparing to unpack .../raspberrypi-kernel-headers_1%3a1.20230405-1_armhf.deb ...
Unpacking raspberrypi-kernel-headers (1:1.20230405-1) ...
Setting up raspberrypi-kernel-headers (1:1.20230405-1) ...
--- 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.30.2-1+deb11u2).
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.0-1).
device-tree-compiler set to manually installed.
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.
Cloning into 'Radioberry-2.x'...
remote: Enumerating objects: 1021, done.
remote: Counting objects: 100% (1021/1021), done.
remote: Compressing objects: 100% (700/700), done.
remote: Total 1021 (delta 407), reused 756 (delta 279), pack-reused 0
Receiving objects: 100% (1021/1021), 28.47 MiB | 10.44 MiB/s, done.
Resolving deltas: 100% (407/407), 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]: *** /lib/modules/6.1.21-v8+/build: No such file or directory. Stop.
make: *** [Makefile:6: radioberry.ko] Error 2
cp: cannot stat 'radioberry.ko': No such file or directory
modprobe: FATAL: Module radioberry not found in directory /lib/modules/6.1.21-v8+
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
register.c: In function ‘process_http’:
register.c:105:2: warning: implicit declaration of function ‘write’; did you mean ‘fwrite’? [-Wimplicit-function-declaration]
105 | write(sockfd, sendline, strlen(sendline));
| ^~~~~
| fwrite
register.c:107:14: warning: implicit declaration of function ‘read’; did you mean ‘fread’? [-Wimplicit-function-declaration]
107 | while ((n = read(sockfd, recvline, MAXLINE)) > 0) {
| ^~~~
| fread
register.c: In function ‘postRadioberryConfiguration’:
register.c:132:73: warning: implicit declaration of function ‘inet_ntop’ [-Wimplicit-function-declaration]
132 | if (hptr->h_addrtype == AF_INET && (pptr = hptr->h_addr_list) != NULL) inet_ntop(hptr->h_addrtype, *pptr, str, sizeof(str));
| ^~~~~~~~~
register.c:137:2: warning: implicit declaration of function ‘inet_pton’ [-Wimplicit-function-declaration]
137 | inet_pton(AF_INET, str, &servaddr.sin_addr);
| ^~~~~~~~~
register.c:141:2: warning: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Wimplicit-function-declaration]
141 | close(sockfd);
| ^~~~~
| pclose
gcc -g -O3 -c -o bias.o bias.c
bias.c: In function ‘init_I2C_bias’:
bias.c:15:10: warning: ‘return’ with a value, in function returning void
15 | return fd_i2c_bias;
| ^~~~~~~~~~~
bias.c:8:6: note: declared here
8 | void init_I2C_bias() {
| ^~~~~~~~~~~~~
bias.c:17:21: warning: implicit declaration of function ‘ioctl’ [-Wimplicit-function-declaration]
17 | i2c_bias_handler = ioctl(fd_i2c_bias, I2C_SLAVE, ADDR_BIAS);
| ^~~~~
bias.c: In function ‘close_I2C_bias’:
bias.c:35:18: warning: comparison between pointer and integer
35 | if (fd_i2c_bias != NULL) close(fd_i2c_bias);
| ^~
gcc -g -O3 -c -o measure.o measure.c
measure.c: In function ‘openI2C_measure’:
measure.c:30:10: warning: ‘return’ with a value, in function returning void
30 | return fd_i2c_measure;
| ^~~~~~~~~~~~~~
measure.c:21:6: note: declared here
21 | void openI2C_measure() {
| ^~~~~~~~~~~~~~~
measure.c:32:24: warning: implicit declaration of function ‘ioctl’ [-Wimplicit-function-declaration]
32 | i2c_measure_handler = ioctl(fd_i2c_measure, I2C_SLAVE, ADDR_MEAS);
| ^~~~~
measure.c: In function ‘close_I2C_measure’:
measure.c:48:21: warning: comparison between pointer and integer
48 | if (fd_i2c_measure != NULL) close(fd_i2c_measure);
| ^~
gcc -g -O3 -c -o radioberry.o radioberry.c
In file included from radioberry.c:56:
radioberry.h:57:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
57 | mask(val) { return val & (CAPACITY - 1); }
| ^~~~
radioberry.h: In function ‘mask’:
radioberry.h:57:1: warning: type of ‘val’ defaults to ‘int’ [-Wimplicit-int]
radioberry.h: At top level:
radioberry.h:58:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
58 | push(val) { assert(!full()); spi_commands[mask(p_write++)] = val; }
| ^~~~
radioberry.h: In function ‘push’:
radioberry.h:58:1: warning: type of ‘val’ defaults to ‘int’ [-Wimplicit-int]
In file included from radioberry.h:18,
from radioberry.c:56:
radioberry.h:58:22: warning: implicit declaration of function ‘full’ [-Wimplicit-function-declaration]
58 | push(val) { assert(!full()); spi_commands[mask(p_write++)] = val; }
| ^~~~
In file included from radioberry.c:56:
radioberry.h: At top level:
radioberry.h:59:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
59 | pop() { assert(!empty()); return spi_commands[mask(p_read++)]; }
| ^~~
In file included from radioberry.h:18,
from radioberry.c:56:
radioberry.h: In function ‘pop’:
radioberry.h:59:22: warning: implicit declaration of function ‘empty’ [-Wimplicit-function-declaration]
59 | pop() { assert(!empty()); return spi_commands[mask(p_read++)]; }
| ^~~~~
In file included from radioberry.c:56:
radioberry.h: At top level:
radioberry.h:60:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
60 | empty() { return p_read == p_write; }
| ^~~~~
radioberry.h:61:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
61 | full() { return size() == CAPACITY; }
| ^~~~
radioberry.h: In function ‘full’:
radioberry.h:61:21: warning: implicit declaration of function ‘size’ [-Wimplicit-function-declaration]
61 | full() { return size() == CAPACITY; }
| ^~~~
radioberry.h: At top level:
radioberry.h:62:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
62 | size() { return p_write - p_read; }
| ^~~~
In file included from radioberry.c:57:
filters.h: In function ‘initFilters’:
filters.h:347:21: warning: implicit declaration of function ‘ioctl’ [-Wimplicit-function-declaration]
347 | i2c_alex_handler = ioctl(fd_i2c_alex, I2C_SLAVE, ADDR_ALEX);
| ^~~~~
radioberry.c: In function ‘initRadioberry’:
radioberry.c:121:2: warning: implicit declaration of function ‘init_I2C_bias’; did you mean ‘write_I2C_bias’? [-Wimplicit-function-declaration]
121 | init_I2C_bias();
| ^~~~~~~~~~~~~
| write_I2C_bias
radioberry.c:125:2: warning: implicit declaration of function ‘pthread_create’ [-Wimplicit-function-declaration]
125 | pthread_create(&pid1, NULL, packetreader, NULL);
| ^~~~~~~~~~~~~~
radioberry.c:128:2: warning: implicit declaration of function ‘start_rb_control_thread’ [-Wimplicit-function-declaration]
128 | start_rb_control_thread();
| ^~~~~~~~~~~~~~~~~~~~~~~
radioberry.c:129:2: warning: implicit declaration of function ‘start_rb_measure_thread’ [-Wimplicit-function-declaration]
129 | start_rb_measure_thread();
| ^~~~~~~~~~~~~~~~~~~~~~~
radioberry.c:186:2: warning: implicit declaration of function ‘start_rb_register_thread’ [-Wimplicit-function-declaration]
186 | start_rb_register_thread();
| ^~~~~~~~~~~~~~~~~~~~~~~~
radioberry.c: In function ‘runRadioberry’:
radioberry.c:200:2: warning: implicit declaration of function ‘start_timer_thread’ [-Wimplicit-function-declaration]
200 | start_timer_thread();
| ^~~~~~~~~~~~~~~~~~
radioberry.c: At top level:
radioberry.c:485:6: warning: conflicting types for ‘start_rb_control_thread’
485 | void start_rb_control_thread() {
| ^~~~~~~~~~~~~~~~~~~~~~~
radioberry.c:128:2: note: previous implicit declaration of ‘start_rb_control_thread’ was here
128 | start_rb_control_thread();
| ^~~~~~~~~~~~~~~~~~~~~~~
radioberry.c:512:6: warning: conflicting types for ‘start_rb_measure_thread’
512 | void start_rb_measure_thread() {
| ^~~~~~~~~~~~~~~~~~~~~~~
radioberry.c:129:2: note: previous implicit declaration of ‘start_rb_measure_thread’ was here
129 | start_rb_measure_thread();
| ^~~~~~~~~~~~~~~~~~~~~~~
radioberry.c:527:6: warning: conflicting types for ‘start_rb_register_thread’
527 | void start_rb_register_thread() {
| ^~~~~~~~~~~~~~~~~~~~~~~~
radioberry.c:186:2: note: previous implicit declaration of ‘start_rb_register_thread’ was here
186 | start_rb_register_thread();
| ^~~~~~~~~~~~~~~~~~~~~~~~
radioberry.c:542:6: warning: conflicting types for ‘start_timer_thread’
542 | void start_timer_thread() {
| ^~~~~~~~~~~~~~~~~~
radioberry.c:200:2: note: previous implicit declaration of ‘start_timer_thread’ was here
200 | start_timer_thread();
| ^~~~~~~~~~~~~~~~~~
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
============================================
xxxxxxxxxxx:/tmp $ sudo radioberry====================================================================
====================================================================
Radioberry V2.0
Supports 4 receivers and 1 transmitter.
Build version: 2022.01.24
Have fun Johan PA3GSB
Report requests or bugs to <
pa3...@gmail.com>.
====================================================================
====================================================================
Failed to open /dev/radioberry: No such file or directory