Did an update on os I believe Kernel updated to 5.15.30 broke driver

271 views
Skip to first unread message

Brad Jeffries

unread,
Mar 31, 2022, 9:25:13 PM3/31/22
to Radioberry
I did an update and the Radioberry driver won't load.  Tried to reinstall and get an error in when it tries to compile the module?   Any ideas?


Brad Jeffries

unread,
Mar 31, 2022, 9:41:42 PM3/31/22
to Radioberry
OK....  figured out it was complaining when compiling radioberry.c  at the line MODULE_SUPPORTED_DEVICE("Radioberry SDR");   commented that out and now all is fine ???

Radioberry

unread,
Apr 6, 2022, 12:52:02 PM4/6/22
to Radioberry
updated the repo. did not test it but please give it a try.

The  MODULE_SUPPORTED_DEVICE is removed from the module.h it was there for some years for further development... now the linux maintainers decided to remove it.

Hope this helps

73 Johan
PA3GSB

Op vrijdag 1 april 2022 om 03:41:42 UTC+2 schreef bradpj...@gmail.com:

Remi echange

unread,
Apr 6, 2022, 5:06:32 PM4/6/22
to Radioberry
Many thanks for your very fast answers.

pi@raspberrypi:/tmp $ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/10/lto-wrapper
Target: aarch64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 10.2.1-6' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-10 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.2.1 20210110 (Debian 10.2.1-6)

pi@raspberrypi:/tmp $ uname -r
5.15.32-v8+

I try again with new repos: ./radioberry_install.sh

some errors again  : 

/tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.c:223:17: error: initialization of ‘ssize_t (*)(struct file *, const char *, size_t,  loff_t *)’ {aka ‘long int (*)(struct file *, const char *, long unsigned int,  long long int *)’} from incompatible pointer type ‘int (*)(struct file *, const char *, size_t,  loff_t *)’ {aka ‘int (*)(struct file *, const char *, long unsigned int,  long long int *)’} [-Werror=incompatible-pointer-types]
  223 |     .write    = radioberry_write,
      |                 ^~~~~~~~~~~~~~~~

/tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.c:359:25: error: expected declaration specifiers or ‘...’ before string constant
  359 | MODULE_SUPPORTED_DEVICE("Radioberry SDR");
      |                         ^~~~~~~~~~~~~~~~

Radioberry

unread,
Apr 7, 2022, 3:55:09 AM4/7/22
to Radioberry

/tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.c:359:25: error: expected declaration specifiers or ‘...’ before string constant
  359 | MODULE_SUPPORTED_DEVICE("Radioberry SDR");
      |                

is not possible when using new repo.



the other error seems related to 64b .... the return type of the write method needs a change...



Op woensdag 6 april 2022 om 23:06:32 UTC+2 schreef remie...@gmail.com:

Remi echange

unread,
Apr 7, 2022, 7:48:51 AM4/7/22
to Radioberry
Hello
Yes i don't understand why the file is the same as your new repos, but the install script seem to work with old file...I need more tryings on my side.

Today i build a VM with  32 bit rasbian os buster : 
uname -r  : 4.19.0-13-68
I see some warnings, but the software s builded. I can start it with ''radioberry'' into my VM.
May be, 32bit is a requirement for your software. If it works...this rasberry will be dedicated to this SDR device. No need to be compliant with very last kernel and software version.
Rémi
Reply all
Reply to author
Forward
0 new messages