[SOLVED] RTL-SDR wont't work in Pi4

Ask questions about Arch Linux ARM. Please search before making a new topic.

[SOLVED] RTL-SDR wont't work in Pi4

Postby rafaelcastellar » Fri Nov 22, 2019 10:24 am

Hi there!

I had a Pi 3B+ with ArchARM running on it, among other stuff, rtl-sdrhttps://wiki.archlinux.org/index.php/RTL-SDR and dump1090 https://aur.archlinux.org/packages/dump1090-fa-git/.

Code: Select all
Linux castberry2 4.19.80-2-ARCH #1 SMP PREEMPT Wed Oct 30 01:09:23 UTC 2019 armv7l GNU/Linux


Then I had installed the very same things in my Pi4, using ArchARM armv7l https://archlinuxarm.org/forum/viewtopic.php?f=65&t=13994

Code: Select all
Linux castberry 4.19.83-1-ARCH #1 SMP PREEMPT Wed Nov 13 02:54:28 UTC 2019 armv7l GNU/Linux


In Pi4 rtl-sdr is not ok. I get this messages when I run the rtl_test:

Code: Select all
$ rtl_test
Found 1 device(s):
  0:  Realtek, RTL2838UHIDIR, SN: 00000001

Using device 0: Generic RTL2832U OEM
Detached kernel driver
Found Rafael Micro R820T tuner
Supported gain values (29): 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6
[R82XX] PLL not locked!
Sampling at 2048000 S/s.

Info: This tool will continuously read from the device, and report if
samples get lost. If you observe no further output, everything is fine.

Reading samples in async mode...
Allocating 15 zero-copy buffers
lost at least 22420752 bytes
lost at least 22406737 bytes
lost at least 22456579 bytes
lost at least 22412980 bytes
lost at least 22413938 bytes
lost at least 22405085 bytes
lost at least 22388208 bytes
lost at least 22494127 bytes
lost at least 22438635 bytes
lost at least 22418988 bytes
lost at least 22425132 bytes
lost at least 22433221 bytes
lost at least 22435003 bytes
lost at least 22475017 bytes
^CSignal caught, exiting!

User cancel, exiting...
Samples per million lost (minimum): 589
Reattached kernel driver


I've been reading several related post and they talk about a kernel update which would fix it, but, as I understand, the version they said is already in my system:

https://www.raspberrypi.org/forums/viewtopic.php?t=243982
https://github.com/raspberrypi/linux/issues/3060
https://www.rtl-sdr.com/forum/viewtopic.php?t=4757
[...]

Maybe I misunderstand some instruction, but I don't know how to get it running.

Is there anyone with the same situation? Any ideias of what to do?

Thank you!
Last edited by rafaelcastellar on Wed May 20, 2020 1:14 pm, edited 1 time in total.
rafaelcastellar
 
Posts: 23
Joined: Fri May 12, 2017 12:42 am

Re: RTL-SDR wont't work in Pi4

Postby EmmanuelSN » Mon Nov 25, 2019 9:57 pm

I am having exactly the same problem and have been trying for several days but have not figured out the problem yet. I know the exact same setup will work on a different linux distro by just swapping the SD card with my Raspbian card. So this seems unique to Arch on Pi 4. :cry:
EmmanuelSN
 
Posts: 2
Joined: Mon Nov 25, 2019 9:51 pm

Re: RTL-SDR wont't work in Pi4

Postby rafaelcastellar » Tue Nov 26, 2019 12:46 pm

Hi!

That's what I was afraid of, to have to go back to Raspbian...

I'll wait more....

Tks for sharing
rafaelcastellar
 
Posts: 23
Joined: Fri May 12, 2017 12:42 am

Re: RTL-SDR wont't work in Pi4

Postby rafaelcastellar » Tue Jan 21, 2020 9:55 pm

Any news? I had some updates and none was covering this situation. I was confirmed raspbian is ok, but don't want to go back to it.

Tks
rafaelcastellar
 
Posts: 23
Joined: Fri May 12, 2017 12:42 am

Re: RTL-SDR wont't work in Pi4

Postby EmmanuelSN » Fri Feb 14, 2020 7:26 am

I have not tried again it but I suspect this won't work until Alarm has the master kernel for RPI4
EmmanuelSN
 
Posts: 2
Joined: Mon Nov 25, 2019 9:51 pm

Re: RTL-SDR wont't work in Pi4

Postby rafaelcastellar » Sat Mar 14, 2020 11:23 am

Just tried and it is not working yet.

It seems it will never happen :cry:
rafaelcastellar
 
Posts: 23
Joined: Fri May 12, 2017 12:42 am

Re: RTL-SDR wont't work in Pi4

Postby SmartJQ » Sat May 16, 2020 3:25 pm

I'm on the latest Manjaro ARM and having the exact same issue.

Kernel: Linux pi 4.19.118-1-MANJARO-ARM #1 SMP PREEMPT Mon Apr 27 15:17:51 CDT 2020 aarch64 GNU/Linux

Running rtl_test for just 5 seconds gives me this.
Code: Select all
Found 1 device(s):
  0:  Realtek, RTL2838UHIDIR

Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Supported gain values (29): 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6
[R82XX] PLL not locked!
Sampling at 2048000 S/s.

Info: This tool will continuously read from the device, and report if
samples get lost. If you observe no further output, everything is fine.

Reading samples in async mode...
Allocating 15 zero-copy buffers
lost at least 10988271 bytes
lost at least 7483220 bytes
lost at least 19053898 bytes
lost at least 16108686 bytes
lost at least 16852256 bytes
lost at least 21011023 bytes
lost at least 13859211 bytes
lost at least 10013734 bytes
lost at least 14546246 bytes
lost at least 15680245 bytes
lost at least 15935831 bytes
lost at least 11670808 bytes
lost at least 16731954 bytes
lost at least 8783484 bytes
lost at least 8378147 bytes
lost at least 10988295 bytes
lost at least 7483220 bytes
lost at least 19053898 bytes
lost at least 16108686 bytes
lost at least 16852256 bytes
^CSignal caught, exiting!

User cancel, exiting...
Samples per million lost (minimum): 52944825


At this point I don't think a kernel update would save us but here we are :(
SmartJQ
 
Posts: 2
Joined: Sat May 16, 2020 3:10 pm

Re: RTL-SDR wont't work in Pi4

Postby SmartJQ » Tue May 19, 2020 4:03 pm

Ok got it fixed. My workaround was manually compiling the rtl-sdr-git package from the AUR repo.

After the install you will need to manually do the following as described in the Arch wiki
https://wiki.archlinux.org/index.php/RTL-SDR

1. add the blacklist back in the following file,
[user@pi ~]$ cat /etc/modprobe.d/rtlsdr.conf
# disable DVB drivers
blacklist rtl2830
blacklist rtl2832
blacklist dvb_usb_rtl28xxu


2. fix a udev rule so that non-privileged user can also use this device (optional)
[user@pi ~]$ cat /usr/lib/udev/rules.d/10-rtl-sdr.rules
#
# Copyright 2012-2013 Osmocom rtl-sdr project
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#

# original RTL2832U vid/pid (hama nano, for example)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="2832", MODE:="0666"

# RTL2832U OEM vid/pid, e.g. ezcap EzTV668 (E4000), Newsky TV28T (E4000/R820T) etc.
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="2838", MODE:="0666"

# DigitalNow Quad DVB-T PCI-E card (4x FC0012?)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0413", ATTRS{idProduct}=="6680", MODE:="0666"

# Leadtek WinFast DTV Dongle mini D (FC0012)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0413", ATTRS{idProduct}=="6f0f", MODE:="0666"

# Genius TVGo DVB-T03 USB dongle (Ver. B)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0458", ATTRS{idProduct}=="707f", MODE:="0666"

# Terratec Cinergy T Stick Black (rev 1) (FC0012)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0ccd", ATTRS{idProduct}=="00a9", MODE:="0666"

# Terratec NOXON rev 1 (FC0013)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0ccd", ATTRS{idProduct}=="00b3", MODE:="0666"

# Terratec Deutschlandradio DAB Stick (FC0013)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0ccd", ATTRS{idProduct}=="00b4", MODE:="0666"

# Terratec NOXON DAB Stick - Radio Energy (FC0013)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0ccd", ATTRS{idProduct}=="00b5", MODE:="0666"

# Terratec Media Broadcast DAB Stick (FC0013)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0ccd", ATTRS{idProduct}=="00b7", MODE:="0666"

# Terratec BR DAB Stick (FC0013)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0ccd", ATTRS{idProduct}=="00b8", MODE:="0666"

# Terratec WDR DAB Stick (FC0013)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0ccd", ATTRS{idProduct}=="00b9", MODE:="0666"

# Terratec MuellerVerlag DAB Stick (FC0013)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0ccd", ATTRS{idProduct}=="00c0", MODE:="0666"

# Terratec Fraunhofer DAB Stick (FC0013)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0ccd", ATTRS{idProduct}=="00c6", MODE:="0666"

# Terratec Cinergy T Stick RC (Rev.3) (E4000)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0ccd", ATTRS{idProduct}=="00d3", MODE:="0666"

# Terratec T Stick PLUS (E4000)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0ccd", ATTRS{idProduct}=="00d7", MODE:="0666"

# Terratec NOXON rev 2 (E4000)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0ccd", ATTRS{idProduct}=="00e0", MODE:="0666"

# PixelView PV-DT235U(RN) (FC0012)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1554", ATTRS{idProduct}=="5020", MODE:="0666"

# Astrometa DVB-T/DVB-T2 (R828D)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="15f4", ATTRS{idProduct}=="0131", MODE:="0666"

# HanfTek DAB+FM+DVB-T
SUBSYSTEMS=="usb", ATTRS{idVendor}=="15f4", ATTRS{idProduct}=="0133", MODE:="0666"

# Compro Videomate U620F (E4000)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="185b", ATTRS{idProduct}=="0620", MODE:="0666"

# Compro Videomate U650F (E4000)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="185b", ATTRS{idProduct}=="0650", MODE:="0666"

# Compro Videomate U680F (E4000)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="185b", ATTRS{idProduct}=="0680", MODE:="0666"

# GIGABYTE GT-U7300 (FC0012)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b80", ATTRS{idProduct}=="d393", MODE:="0666"

# DIKOM USB-DVBT HD
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b80", ATTRS{idProduct}=="d394", MODE:="0666"

# Peak 102569AGPK (FC0012)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b80", ATTRS{idProduct}=="d395", MODE:="0666"

# KWorld KW-UB450-T USB DVB-T Pico TV (TUA9001)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b80", ATTRS{idProduct}=="d397", MODE:="0666"

# Zaapa ZT-MINDVBZP (FC0012)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b80", ATTRS{idProduct}=="d398", MODE:="0666"

# SVEON STV20 DVB-T USB & FM (FC0012)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b80", ATTRS{idProduct}=="d39d", MODE:="0666"

# Twintech UT-40 (FC0013)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b80", ATTRS{idProduct}=="d3a4", MODE:="0666"

# ASUS U3100MINI_PLUS_V2 (FC0013)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b80", ATTRS{idProduct}=="d3a8", MODE:="0666"

# SVEON STV27 DVB-T USB & FM (FC0013)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b80", ATTRS{idProduct}=="d3af", MODE:="0666"

# SVEON STV21 DVB-T USB & FM
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b80", ATTRS{idProduct}=="d3b0", MODE:="0666"

# Dexatek DK DVB-T Dongle (Logilink VG0002A) (FC2580)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d19", ATTRS{idProduct}=="1101", MODE:="0666"

# Dexatek DK DVB-T Dongle (MSI DigiVox mini II V3.0)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d19", ATTRS{idProduct}=="1102", MODE:="0666"

# Dexatek DK 5217 DVB-T Dongle (FC2580)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d19", ATTRS{idProduct}=="1103", MODE:="0666"

# MSI DigiVox Micro HD (FC2580)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d19", ATTRS{idProduct}=="1104", MODE:="0666"

# Sweex DVB-T USB (FC0012)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1f4d", ATTRS{idProduct}=="a803", MODE:="0666"

# GTek T803 (FC0012)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1f4d", ATTRS{idProduct}=="b803", MODE:="0666"

# Lifeview LV5TDeluxe (FC0012)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1f4d", ATTRS{idProduct}=="c803", MODE:="0666"

# MyGica TD312 (FC0012)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1f4d", ATTRS{idProduct}=="d286", MODE:="0666"

# PROlectrix DV107669 (FC0012)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1f4d", ATTRS{idProduct}=="d803", MODE:="0666"


3. the rtl-sdr package should work just fine now :)
SmartJQ
 
Posts: 2
Joined: Sat May 16, 2020 3:10 pm

[SOLVED] Re: RTL-SDR wont't work in Pi4

Postby rafaelcastellar » Wed May 20, 2020 1:13 pm

Excelent! It worked just fine!

Solved!

Thank you!
rafaelcastellar
 
Posts: 23
Joined: Fri May 12, 2017 12:42 am


Return to User Questions

Who is online

Users browsing this forum: No registered users and 3 guests