paulh002 / sdrberry

Raspberry pi SDR tranceiver using lvgl gui
GNU General Public License v3.0
52 stars 6 forks source link

Can install driver for radioberry #32

Closed jacintomfr closed 4 months ago

jacintomfr commented 4 months ago

Hi,

I was trying to install radioberry driver but I get this error: make[2]: [scripts/Makefile.build:250: /home/pi/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.o] Error 1 make[1]: [Makefile:2012: /home/pi/Radioberry-2.x/SBC/rpi-4/device_driver/driver] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-6.1.21-v8+' make: *** [Makefile:8: 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.

even if I try Joahn driver I also get this: make[2]: [scripts/Makefile.build:250: /home/pi/Radioberry-2.x/SBC/rpi-4/releases/dev/Radioberry-2.x/SBC/rpi-4/device_driver/drive r/radioberry.o] Error 1 make[1]: [Makefile:2012: /home/pi/Radioberry-2.x/SBC/rpi-4/releases/dev/Radioberry-2.x/SBC/rpi-4/device_driver/driver] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-6.1.21-v8+' make: *** [Makefile:8: radioberry.ko] Error 2 Radioberry driver installation failed.

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

What os version is right for radioberry ? I'm confuse I do have interface juice (USB) for radioberry and the process is diferent

Jacinto cu2ed

paulh002 commented 4 months ago

Make sure you use 64 bit bullseye, not 32 bit. Best to use my installation script for radioberry.

Op za 4 mei 2024 18:37 schreef cu2ed @.***>:

Hi,

I was trying to install radioberry driver but I get this error: make[2]: [scripts/Makefile.build:250: /home/pi/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.o] Error 1 make[1]: [Makefile:2012: /home/pi/Radioberry-2.x/SBC/rpi-4/device_driver/driver] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-6.1.21-v8+' make: *** [Makefile:8: 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.

even if I try Joahn driver I also get this: make[2]: [scripts/Makefile.build:250: /home/pi/Radioberry-2.x/SBC/rpi-4/releases/dev/Radioberry-2.x/SBC/rpi-4/device_driver/drive r/radioberry.o] Error 1 make[1]: [Makefile:2012: /home/pi/Radioberry-2.x/SBC/rpi-4/releases/dev/Radioberry-2.x/SBC/rpi-4/device_driver/driver] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-6.1.21-v8+' make: *** [Makefile:8: radioberry.ko] Error 2 Radioberry driver installation failed.

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

What os version is right for radioberry ? I'm confuse I do have interface juice (USB) for radioberry and the process is diferent

Jacinto cu2ed

— Reply to this email directly, view it on GitHub https://github.com/paulh002/sdrberry/issues/32, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIOBYUBJR7FH4NHJ5AMDNNLZAUFFPAVCNFSM6AAAAABHG6Q3PCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI3TSMJQGU4DQNI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

jacintomfr commented 4 months ago

Well, this is not easy ...

uname -a Linux sdrberry 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux

I'm using your https://github.com/paulh002/Radioberry-2.x and I get this error: /tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.c:361:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 361 | int result = platform_driver_register(&radioberry_driver); | ^~~ make[3]: [scripts/Makefile.build:250: /tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.o] Error 1 make[2]: [Makefile:2012: /tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver] Error 2 make[1]: [Makefile:8: radioberry.ko] Error 2 make: [Makefile:26: SBC/rpi-4/device_driver/driver/radioberry.ko] Error 2

what I missing ? I'm using OS image : 2023-05-03-raspios-bullseye-arm64-lite.img

Jacinto

paulh002 commented 4 months ago

Sorry, you should use bookworm 64 bits. Just use the sdrberry instal script for radioberry Or go to /Radioberry-2.x/SBC/rpi-4/device_driver/driver do make, and then sudo make install

Make sure the radioberry service is not running (this simulates hermes light 2 interface) you can check with sudo systemctl status radioberry just disable this firmware driver sudo systemctl stop radioberry sudo systemctl disable radioberry

Op za 4 mei 2024 om 19:21 schreef cu2ed @.***>:

Well, this is not easy ...

uname -a Linux sdrberry 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux

I'm using your https://github.com/paulh002/Radioberry-2.x and I get this error: /tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.c:361:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 361 | int result = platform_driver_register(&radioberry_driver); | ^~~ make[3]: [scripts/Makefile.build:250: /tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.o] Error 1 make[2]: [Makefile:2012: /tmp/Radioberry-2.x/SBC/rpi-4/device_driver/driver] Error 2 make[1]: [Makefile:8: radioberry.ko] Error 2 make: [Makefile:26: SBC/rpi-4/device_driver/driver/radioberry.ko] Error 2

what I missing ? I'm using OS image : 2023-05-03-raspios-bullseye-arm64-lite.img

Jacinto

— Reply to this email directly, view it on GitHub https://github.com/paulh002/sdrberry/issues/32#issuecomment-2094311463, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIOBYUECP3XHZSZEDA65ZBLZAUKKVAVCNFSM6AAAAABHG6Q3PCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJUGMYTCNBWGM . You are receiving this because you commented.Message ID: @.***>

jacintomfr commented 4 months ago

OK, but I think I was using wrong OS version, after reading your files: The software is tested on Raspberry PI Model 4B and the 64 bit version of rasperry pi OS with the GUI switched of.

I was using lite version ... maybe the problem ... anyway I will switch to bookworm 64 bits full img with GUI off and see the result ...

tks again

Jacinto

paulh002 commented 4 months ago

Yes, just install 64 bit bookworm with gui, then use raspi-config to switch it off. Also before installation apply all updates.

Op za 4 mei 2024 20:25 schreef cu2ed @.***>:

OK, but I think I was using wrong OS version, after reading your files: The software is tested on Raspberry PI Model 4B and the 64 bit version of rasperry pi OS with the GUI switched of.

I was using lite version ... maybe the problem ... anyway I will switch to bookworm 64 bits full img with GUI off and see the result ...

tks again

Jacinto

— Reply to this email directly, view it on GitHub https://github.com/paulh002/sdrberry/issues/32#issuecomment-2094338988, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIOBYUDKFX7X3NY2UVAB44TZAURX7AVCNFSM6AAAAABHG6Q3PCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJUGMZTQOJYHA . You are receiving this because you commented.Message ID: @.***>

jacintomfr commented 4 months ago

Hi,

now I think everything is instaled as you can check (bottom) but I get error when try to load sdrberry:

line 4: 1034 aborted ...

will giveup for today ...

Jacinto

Installing Radioberry gateware Cyclone 10 CL025...

Radioberry gateware Cyclone 10 CL025 installed. Installing Radioberry driver... make[1]: Entering directory '/usr/src/linux-headers-6.6.20+rpt-rpi-v8' CC [M] /home/pi/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.o MODPOST /home/pi/Radioberry-2.x/SBC/rpi-4/device_driver/driver/Module.symvers CC [M] /home/pi/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.mod.o LD [M] /home/pi/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.ko make[1]: Leaving directory '/usr/src/linux-headers-6.6.20+rpt-rpi-v8' filename: /lib/modules/6.6.20+rpt-rpi-v8/kernel/drivers/sdr/radioberry.ko version: 95 license: GPL description: Radioberry SDR device driver. (rpi-4) author: Johan Maas - pa3gsb@gmail.com srcversion: 22A4BA62C709AEAE85D9445 alias: of:NTCsdr,radioberryC alias: of:NT*Csdr,radioberry depends: name: radioberry vermagic: 6.6.20+rpt-rpi-v8 SMP preempt mod_unload modversions aarch64

Radioberry driver installed. Reading package lists... Done Building dependency tree... Done Reading state information... Done Package 'pulseaudio' is not installed, so not removed The following package was automatically installed and is no longer required: libraspberrypi0 Use 'sudo apt autoremove' to remove it. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. --2024-05-04 21:10:41-- https://raw.githubusercontent.com/paulh002/sdrberry/master/install/sdrberry_settings_radioberry.cfg Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 2662 (2.6K) [text/plain] Saving to: ‘sdrberry_settings_radioberry.cfg’

sdrberry_settings_radioberry.cfg 100%[====================================================================================================>] 2.60K --.-KB/s in 0s

2024-05-04 21:10:42 (7.32 MB/s) - ‘sdrberry_settings_radioberry.cfg’ saved [2662/2662]

paulh002 commented 4 months ago

Reboot and start sdrberry with sudo sdrberry. Radioberry driver need root rights to start. If it does not work share me the startup log

Op za 4 mei 2024 23:15 schreef cu2ed @.***>:

Hi,

now I think everything is instaled as you can check (bottom) but I get error when try to load sdrberry:

line 4: 1034 aborted ...

will giveup for today ...

Jacinto

Installing Radioberry gateware Cyclone 10 CL025...

Radioberry gateware Cyclone 10 CL025 installed. Installing Radioberry driver... make[1]: Entering directory '/usr/src/linux-headers-6.6.20+rpt-rpi-v8' CC [M] /home/pi/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.o MODPOST /home/pi/Radioberry-2.x/SBC/rpi-4/device_driver/driver/Module.symvers CC [M] /home/pi/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.mod.o LD [M] /home/pi/Radioberry-2.x/SBC/rpi-4/device_driver/driver/radioberry.ko make[1]: Leaving directory '/usr/src/linux-headers-6.6.20+rpt-rpi-v8' filename: /lib/modules/6.6.20+rpt-rpi-v8/kernel/drivers/sdr/radioberry.ko version: 95 license: GPL description: Radioberry SDR device driver. (rpi-4) author: Johan Maas - @.** srcversion: 22A4BA62C709AEAE85D9445 alias: of:NTCsdr,radioberryC alias: of:NTCsdr,radioberry depends: name: radioberry vermagic: 6.6.20+rpt-rpi-v8 SMP preempt mod_unload modversions aarch64

Radioberry driver installed. Reading package lists... Done Building dependency tree... Done Reading state information... Done Package 'pulseaudio' is not installed, so not removed The following package was automatically installed and is no longer required: libraspberrypi0 Use 'sudo apt autoremove' to remove it. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. --2024-05-04 21:10:41-- https://raw.githubusercontent.com/paulh002/sdrberry/master/install/sdrberry_settings_radioberry.cfg Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 2662 (2.6K) [text/plain] Saving to: ‘sdrberry_settings_radioberry.cfg’

sdrberry_settings_radioberry.cfg 100%[====================================================================================================>] 2.60K --.-KB/s in 0s

2024-05-04 21:10:42 (7.32 MB/s) - ‘sdrberry_settings_radioberry.cfg’ saved [2662/2662]

— Reply to this email directly, view it on GitHub https://github.com/paulh002/sdrberry/issues/32#issuecomment-2094399440, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIOBYUCSYSRFTBNNX3TLSL3ZAVFYVAVCNFSM6AAAAABHG6Q3PCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJUGM4TSNBUGA . You are receiving this because you commented.Message ID: @.***>

jacintomfr commented 4 months ago

Hi, it's working ...

with SoapySDRUtil --find it found radioberry but when I do --probe... I get error after a few checks I detected that I forgot to turn on SPI protocol :-(

sorry for that

now everything is OK

Jacinto

paulh002 commented 4 months ago

Great

Op zo 5 mei 2024 00:08 schreef cu2ed @.***>:

Hi, it's working ...

with SoapySDRUtil --find it found radioberry but when I do --probe... I get error after a few checks I detected that I forgot to turn on SPI protocol :-(

sorry for that

now everything is OK

Jacinto

— Reply to this email directly, view it on GitHub https://github.com/paulh002/sdrberry/issues/32#issuecomment-2094443587, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIOBYUHIRWSN3ULQAGQRZRLZAVL45AVCNFSM6AAAAABHG6Q3PCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJUGQ2DGNJYG4 . You are receiving this because you commented.Message ID: @.***>