TBS 5928 usb Ras Pi 4 TVheadend
Added by Michael Berg almost 2 years ago
Hi guys,
Years ago I have bought a TBS 5928 usb adapter.
I remember it was nightmare to get it working.
Now years later I was wondering if I can still use the device in the latest TVH build with Kernel 5.10.17-v7+ ?
Anyone still got a TBS 5928 ?
Would anyone please be so kind to help out ?
Thank you very much.
Replies (14)
RE: TBS 5928 usb Ras Pi 4 TVheadend - Added by Anders Gustafsson almost 2 years ago
TBS Are generally quite good at supporting linux,but you need to install and build drivers from media_build:
cd /usr/src git clone https://github.com/tbsdtv/media_build.git git clone --depth=1 https://github.com/tbsdtv/linux_media.git -b latest ./media cd media_build make dir DIR=../media make allyesconfig make -j4 sudo make install curl -L http://www.tbsdtv.com/download/document/linux/tbs-tuner-firmwares_v1.0.tar.bz2 | tar -jxvf - -C /lib/firmware/ reboot
RE: TBS 5928 usb Ras Pi 4 TVheadend - Added by Michael Berg almost 2 years ago
Thanks for your reply, but I keep getting this ?
make2: Leaving directory '/usr/src/media_build/linux'
./scripts/make_kconfig.pl /lib/modules/5.10.17-v7+/build /lib/modules/5.10.17-v7+/build 1
Preparing to compile for kernel version 5.10.17
You appear to have loadable modules turned off in your kernel. You can
not compile the v4l-dvb drivers, as modules, and use them with a kernel
that has modules disabled.
If you want to compile these drivers into your kernel, you should
use 'make kernel-links' to link the source for these drivers into
your kernel tree. Then configure and compile the kernel.
make1: * [Makefile:376: allyesconfig] Error 255
make1: Leaving directory '/usr/src/media_build/v4l'
make: * [Makefile:26: allyesconfig] Error 2
I have run make kernel-links, rebooted and compiled again, but same message.
Thanks
RE: TBS 5928 usb Ras Pi 4 TVheadend - Added by Anders Gustafsson almost 2 years ago
What OS is this? Debian on RPi? what does uname -a say?
Does this help: https://forums.raspberrypi.com/viewtopic.php?f=35&t=31721
RE: TBS 5928 usb Ras Pi 4 TVheadend - Added by Michael Berg almost 2 years ago
Thanks for getting back.
Still got an issue here.
root@raspberrypi:/usr/src# uname -a
Linux raspberrypi 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux
root@raspberrypi:/usr/src# ls l 1 root root 186746597 Jan 28 06:52 rpi-5.10.y.tar.gz
total 182388
drwxr-xr-x 23 root root 4096 Jan 28 14:44 linux-headers-5.10.103+
drwxr-xr-x 23 root root 4096 Jan 28 14:44 linux-headers-5.10.103-v7+
drwxr-xr-x 23 root root 4096 Jan 28 14:44 linux-headers-5.10.103-v7l+
drwxrwxr-x 25 root root 4096 Aug 23 15:59 linux-rpi-5.10.y
-rw-r--r-
root@raspberrypi:/usr/src# git clone --depth=1 https://github.com/tbsdtv/linux_media.git -b latest ./media
fatal: destination path './media' already exists and is not an empty directory.
root@raspberrypi:/usr/src# rm -fr media
git clone --depth=1 https://github.com/tbsdtv/linux_media.git -b latest ./media
root@raspberrypi:/usr/src# git clone --depth=1 https://github.com/tbsdtv/linux_media.git -b latest ./media
Cloning into './media'...
remote: Enumerating objects: 80732, done.
remote: Counting objects: 100% (80732/80732), done.
remote: Compressing objects: 100% (76531/76531), done.
fatal: the remote end hung up unexpectedly.87 MiB | 25.00 KiB/s
fatal: early EOF
fatal: index-pack failed
root@raspberrypi:/usr/src#
root@raspberrypi:/usr/src# cd media_build
root@raspberrypi:/usr/src/media_build# make dir DIR=../media
make C linux/ dir DIR="../../media"
|diff --git a/drivers/media/cec/core/cec-api.c b/drivers/media/cec/core/cec-api.c
|index b6536bbad530..401ed65c834b 100644
|--- a/drivers/media/cec/core/cec-api.c
|+++ b/drivers/media/cec/core/cec-api.c
make1: Entering directory '/usr/src/media_build/linux'
rm -rf drivers include sound mm .patches_applied .linked_dir .git_log.md5 git_log kernel_version.h
../../media does not contain kernel sources
/bin/sh: 1: exit: Illegal number: -1
make1: * [Makefile:124: dir] Error 2
make1: Leaving directory '/usr/src/media_build/linux'
make: * [Makefile:32: dir] Error 2
root@raspberrypi:/usr/src/media_build# make allyesconfig
make -C /usr/src/media_build/v4l allyesconfig
make1: Entering directory '/usr/src/media_build/v4l'
No version yet, using 5.10.103-v7+
make2: Entering directory '/usr/src/media_build/linux'
Applying patches for kernel 5.10.103-v7+
patch -s -f -N -p1 -i ../backports/api_version.patch
The text leading up to this was:
-------------------------
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
The text leading up to this was:
--------------------------
|diff --git a/drivers/media/mc/mc-device.c b/drivers/media/mc/mc-device.c
|index 3bae24b15eaa..7f7cc64c637c 100644
|--- a/drivers/media/mc/mc-device.c
|+++ b/drivers/media/mc/mc-device.c
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
The text leading up to this was:
--------------------------
|diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c
|index 54afc9c7ee6e..4572a87acc0b 100644
|--- a/drivers/media/v4l2-core/v4l2-ioctl.c
|+++ b/drivers/media/v4l2-core/v4l2-ioctl.c
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
make2: * [Makefile:133: apply_patches] Error 1
make2: Leaving directory '/usr/src/media_build/linux'
make1: [Makefile:375: allyesconfig] Error 2
make1: Leaving directory '/usr/src/media_build/v4l'
make: ** [Makefile:26: allyesconfig] Error 2
root@raspberrypi:/usr/src/media_build# make install
make -C /usr/src/media_build/v4l install
make1: Entering directory '/usr/src/media_build/v4l'
scripts/make_makefile.pl
Installing kernel modules under /lib/modules/5.10.103-v7+/updates/extra/media/:
/sbin/depmod -a 5.10.103-v7+
make -C firmware install
make2: Entering directory '/usr/src/media_build/v4l/firmware'
Installing firmwares at /lib/firmware:
make2: Leaving directory '/usr/src/media_build/v4l/firmware'
make1: Leaving directory '/usr/src/media_build/v4l'
root@raspberrypi:/usr/src/media_build# cd /lib/modules/5.10.103-v7+/updates/extra/media/
root@raspberrypi:/lib/modules/5.10.103-v7+/updates/extra/media# ls
root@raspberrypi:/lib/modules/5.10.103-v7+/updates/extra/media#
RE: TBS 5928 usb Ras Pi 4 TVheadend - Added by Anders Gustafsson almost 2 years ago
You need to fix this before proceeding:
fatal: the remote end hung up unexpectedly.87 MiB | 25.00 KiB/s fatal: early EOF fatal: index-pack failed
RE: TBS 5928 usb Ras Pi 4 TVheadend - Added by Anders Gustafsson almost 2 years ago
Anders Gustafsson wrote:
You need to fix this before proceeding:
[...]
Also note that TBS have dedicated support forums and they are really helpful there.
RE: TBS 5928 usb Ras Pi 4 TVheadend - Added by Michael Berg almost 2 years ago
Thanks again for your help here,
Just an update. It turned out that the SD card on my pi has corrupted.
I have build the drivers on a physical PC X64.
root@tvhead:~# lsusb
Bus 002 Device 010: ID 734c:5928 TBS Technologies China Q-Box II DVB-S2 HD
root@tvhead:~# modinfo dvb_usb_tbsqboxs2
filename: /lib/modules/4.15.0-202-generic/updates/extra/media/usb/dvb-usb/dvb-usb-tbsqboxs2.ko
license: GPL
version: 0.2
description: Driver for TBS QBOXS2-CX24116
author: Bob Liu <[email protected]>
srcversion: 533BB7E5866E52F63B9ACCB
alias: usb:v734Cp5928d*dc*dsc*dp*ic*isc*ip*in*
depends: dvb-usb,rc-core
retpoline: Y
name: dvb_usb_tbsqboxs2
vermagic: 4.15.0-202-generic SMP mod_unload modversions
parm: debug:set debugging level (1=info 2=xfer (or-able)). (int)
parm: adapter_nr:DVB adapter numbers (array of short)
However if I try to scan the whole system freezes ?
No issues with another DVBSKY USB card on the same system.
Looks like a driver / firmware issue.
Any more suggestions ?
Thanks
RE: TBS 5928 usb Ras Pi 4 TVheadend - Added by Anders Gustafsson almost 2 years ago
OK. FWIW I run my TVHeadend on a separate Linux box. I am also moving away from USB adapters because of the problems I have had. I have now installed a TVS PCI card.
I had to build those drivers from media_build so I installed a test machine with the same kernel version and tested there, then moved to the "production" server.
No issues with another DVBSKY USB card on the same system.
Is this the same type of card as the TBS?
However if I try to scan the whole system freezes
You mean dvb_scan?
Anything interesting in dmesg?
RE: TBS 5928 usb Ras Pi 4 TVheadend - Added by Michael Berg almost 2 years ago
Is this the same type of card as the TBS?
No total different make has also got a CI but not using it.
With the TBS card I get this on nearly ever transponder.
2023-02-03 10:36:18.238 mpegts: 10853.44H in Hotbird - scan no data, failed
2023-02-03 10:36:18.238 subscription: 00EB: "scan" unsubscribing
1/2 way through everything is freezing up and I have to disconnect the power from the TBS card and kill/restart TVH.
The DVBSKY card can scan all of them.
RE: TBS 5928 usb Ras Pi 4 TVheadend - Added by Anders Gustafsson almost 2 years ago
Most likely a driver issue. Does it need a special FW? Is that downloaded to lib/firmware.
Try with just this adapter. Reboot, then start tvheadend, then look at dmesg.
RE: TBS 5928 usb Ras Pi 4 TVheadend - Added by Michael Berg almost 2 years ago
I did this
curl -L http://www.tbsdtv.com/download/document/linux/tbs-tuner-firmwares_v1.0.tar.bz2 | tar -jxvf - -C /lib/firmware/
I can't find any other or newer firmware?
[ 32.783403] cx24116_firmware_ondemand: Waiting for firmware upload (dvb-fe-cx24116.fw)...
[ 32.991471] cx24116_firmware_ondemand: Waiting for firmware upload(2)...
[ 34.892284] cx24116_load_firmware: FW version 1.23.86.1
[ 34.892299] cx24116_firmware_ondemand: Firmware upload complete
[ 35.204317] usb 2-1: DVB: adapter 0 frontend 0 frequency 0 out of range (950000..2150000)
[ 50.219349] tbsqboxs2: tbsqboxs2_set_voltage 0
[ 151.612295] tbsqboxs2: tbsqboxs2_set_voltage 1
[ 682.577086] tbsqboxs2: tbsqboxs2_set_voltage 0
[ 763.212190] tbsqboxs2: tbsqboxs2_set_voltage 1
[ 773.855682] tbsqboxs2: tbsqboxs2_set_voltage 0
[ 984.874421] tbsqboxs2: tbsqboxs2_set_voltage 1
[ 1189.443263] cx24116_firmware_ondemand: Waiting for firmware upload (dvb-fe-cx24116.fw)...
[ 1189.443321] cx24116_firmware_ondemand: Waiting for firmware upload(2)...
root@tvhead:/lib/firmware#
RE: TBS 5928 usb Ras Pi 4 TVheadend - Added by Anders Gustafsson almost 2 years ago
What I would do at this point is to ask in the TBS support forums.
When it hangs, does it hang hard or is the keyboard still responsive?
RE: TBS 5928 usb Ras Pi 4 TVheadend - Added by Michael Berg almost 2 years ago
I'd love to but my account doesn't seem to be active once I registered lol.
I am in an ssh session but I guess the keyboard would still work.
Anyway, thanks for your time here, I'll try the TBS forum and if they can't help the TBS card is going in the bin.
Looking at getting a similar card to the DVKSKY at least they work out of the box.
Thanks again.
RE: TBS 5928 usb Ras Pi 4 TVheadend - Added by Anders Gustafsson almost 2 years ago
OK. If you can, try top and see what is eating resources.
I have had nothing but grief with USB adapters, especially the cheap chinese clones where two may look identical, but have different chipsets.