USB DVB Tuner not recognized

Noone?

If it would help: I also have a Raspberry PI 3 which I could use as TVheadend server, if you think my chances of getting that one running are higher than with the Vero4k.

I updated my Raspberry Pi 3 with latest RBPi OS.

pi@raspberrypi:~ $ uname -a Linux raspberrypi 5.4.79+ #1373 Mon Nov 23 13:18:15 GMT 2020 armv6l GNU/Linux

The error I’m currently stuck with is the following, when running make allyesconfig:

File not found: /lib/modules/5.4.79+/build/.config at ./scripts/make_kconfig.pl line 33, <IN> line 4

Any ideas how to get rid of that one?

The 5.4 is quite a modern kernel and there won’t be many additional DVB drivers out of tree as a result. Have you verified you actually need to compile any extra modules first?

Have you installed the package raspberrypi-kernel-headers?

To be honest, I do not know how to verify if extra modules are needed. How can I check that?

Yes, I did.

So is the file on your system, or not?

pi@raspberrypi:~ $ ls -la /lib/modules/5.4.79+/build/.config
-rw-r--r-- 1 root root 173216 Dec  1 15:31 /lib/modules/5.4.79+/build/.config
pi@raspberrypi:~ $ dpkg -l raspberrypi-kernel-headers
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                       Version      Architecture Description
+++-==========================-============-============-==============================================
ii  raspberrypi-kernel-headers 1.20201201-1 armhf        Header files for the Raspberry Pi Linux kernel

Apparently not:
pi@raspberrypi:~ $ ls -la /lib/modules/5.4.79+/build/.config
ls: cannot access '/lib/modules/5.4.79+/build/.config': No such file or directory

But sudo apt-get install raspberrypi-kernel-headers doesn’t fix that.

Then you’ll probably need to create the link:

sudo ln -s /usr/src/linux-headers-5.4.79+ /lib/modules/5.4.79+/build

Strangely, it says:
pi@raspberrypi:~ $ sudo ln -s /usr/src/linux-headers-5.4.79+ /lib/modules/5.4.79+/build
ln: failed to create symbolic link '/lib/modules/5.4.79+/build': File exists

Have you listed it? Is it a link? If so, where does it point?

I’m sorry, but I do not understand what you are asking of me. How do I check those things?

ls -l /lib/modules/5.4.79+/build

pi@raspberrypi:~ $ ls -l /lib/modules/5.4.79+/build
lrwxrwxrwx 1 root root 29 Jan 10 17:35 /lib/modules/5.4.79+/build -> /usr/src/rbp2-headers-5.4.79+

That doesn’t look right. What’s the output of ls -la /usr/src

pi@raspberrypi:~ $ ls -la /usr/src
total 24
drwxr-xr-x 6 root root 4096 Jan 10 17:47 .
drwxr-xr-x 11 root root 4096 Dec 2 12:45 ..
drwxr-xr-x 23 root root 4096 Jan 10 17:48 linux-headers-5.4.83+
drwxr-xr-x 23 root root 4096 Jan 10 17:48 linux-headers-5.4.83-v7+
drwxr-xr-x 23 root root 4096 Jan 10 17:48 linux-headers-5.4.83-v7l+
drwxr-xr-x 3 root root 4096 Dec 2 12:46 sense-hat

While my time is freely given, it is still a limited resource. Building kernel drivers can be a straightforward exercise but sometimes things aren’t such plain sailing and a certain degree of Linux knowledge is therefore required. This is one of those cases. While I have tried to help, you also need to bring a minimum level of Linux knowledge to the thread.

We have now moved from OSMC to RaspberryPi OS, which is outside the scope of this forum. There are so many things messed up on the new OS that I unfortunately need to draw a line here.

However, you didn’t respond to one of Sam’s questions:

Perhaps it already works on kernel 5.4. Have you checked?

I fully understand that, and I highly appreciate your help - and the help of many others in this forum.
Since I wasn’t lucky enough to get it running after all, I will have to look for other options to get Live TV running on OSMC.

I have responeded to that with: To be honest, I do not know how to verify if extra modules are needed. How can I check that?

If you mean if I have checked if USB tuner is working already after installing proper drivers (as per Home · tbsdtv/linux_media Wiki · GitHub), then Yes, I tried that and it’s not working.

1 Like

Just plug it in without drivers and check dmesg to see if the kernel picks it up.

Update from the front:
I got it running on my RPi with the help of a support guy from TBS. So I’m quite happy about that.

Just one day later I see that OSMC on Vero seems to run into a problem, which looks to be related to TVheadend server: my Vero is stuck in a “sad face reboot loop”. The Vero fully boots into the home screen, where the top status bar shows that live tv channels are scanning and after a few secs the sad face shows up and Vero reboots.

EDIT
The problem disappears when disconnecting network. So seems related to connection attempts to TVH server.

Excellent news.

You’ll need to provide logs for the OSMC end, but I’d also recommend that you also look for clues in the server’s system journal.