Moderator Control Panel ]

Kernel 5.7 compile TBS-Driver

It's important to keep your driver and software updated.

Kernel 5.7 compile TBS-Driver

Postby p3f » Mon Jun 15, 2020 3:02 pm

Hello,

i want to compile the actual TBS-Driver to the Kernel 5.7.2 for x86. By compile i get an Error, which i'm not able to find the missing point. So please, if you see or get an idea....

The error are appearing on the Frontend STID135:

Code: Select All Code
drivers/media/dvb-frontends/stid135/stid135-fe.c: In function ‘stid135_tune’:
drivers/media/dvb-frontends/stid135/stid135-fe.c:617:14: warning: unused variable ‘state’ [-Wunused-variable]
  struct stv *state = fe->demodulator_priv;
              ^~~~~
In file included from drivers/media/dvb-frontends/stid135/gen_types.h:45,
                 from drivers/media/dvb-frontends/stid135/i2c.h:41,
                 from drivers/media/dvb-frontends/stid135/chip.c:36:
drivers/media/dvb-frontends/stid135/stddefs.h:55:9: error: unknown type name ‘uint8_t’
 typedef uint8_t /*unsigned char*/  U8;
         ^~~~~~~
drivers/media/dvb-frontends/stid135/stddefs.h:56:9: error: unknown type name ‘uint16_t’
 typedef uint16_t /*unsigned short*/ U16;
         ^~~~~~~~
drivers/media/dvb-frontends/stid135/stddefs.h:57:9: error: unknown type name ‘uint32_t’
 typedef uint32_t /*unsigned int*/   U32;
         ^~~~~~~~
drivers/media/dvb-frontends/stid135/stddefs.h:58:9: error: unknown type name ‘uint64_t’
 typedef uint64_t /*unsigned long long*/ U64;
         ^~~~~~~~
drivers/media/dvb-frontends/stid135/stddefs.h:60:9: error: unknown type name ‘uint8_t’
 typedef uint8_t /*unsigned char*/  u8;
         ^~~~~~~
drivers/media/dvb-frontends/stid135/stddefs.h:61:9: error: unknown type name ‘uint16_t’
 typedef uint16_t /*unsigned short*/ u16;
         ^~~~~~~~
drivers/media/dvb-frontends/stid135/stddefs.h:62:9: error: unknown type name ‘uint32_t’
 typedef uint32_t /*unsigned int*/   u32;
         ^~~~~~~~
drivers/media/dvb-frontends/stid135/stddefs.h:63:9: error: unknown type name ‘uint64_t’
 typedef uint64_t /*unsigned long long*/ u64;
         ^~~~~~~~
drivers/media/dvb-frontends/stid135/stddefs.h:66:9: error: unknown type name ‘int8_t’
 typedef int8_t /*signed char*/  S8;
         ^~~~~~
drivers/media/dvb-frontends/stid135/stddefs.h:67:9: error: unknown type name ‘int16_t’
 typedef int16_t /*signed short*/ S16;
         ^~~~~~~
drivers/media/dvb-frontends/stid135/stddefs.h:68:9: error: unknown type name ‘int32_t’
 typedef int32_t /*signed int*/   S32;
         ^~~~~~~
drivers/media/dvb-frontends/stid135/stddefs.h:69:9: error: unknown type name ‘int64_t’
 typedef int64_t /*long long*/    S64;
         ^~~~~~~
drivers/media/dvb-frontends/stid135/stddefs.h:71:9: error: unknown type name ‘int8_t’
 typedef int8_t /*signed char*/  s8;
         ^~~~~~
drivers/media/dvb-frontends/stid135/stddefs.h:72:9: error: unknown type name ‘int16_t’
 typedef int16_t /*signed short*/ s16;
         ^~~~~~~
drivers/media/dvb-frontends/stid135/stddefs.h:73:9: error: unknown type name ‘int32_t’
 typedef int32_t /*signed int*/   s32;
         ^~~~~~~
drivers/media/dvb-frontends/stid135/stddefs.h:74:9: error: unknown type name ‘int64_t’
 typedef int64_t /*long long*/    s64;
         ^~~~~~~


There seems somethings are missed by the pre-conditions.

Thanks,
Pit
p3f
 
Posts: 3
Joined: Mon Jun 15, 2020 2:46 pm

Re: Kernel 5.7 compile TBS-Driver

Postby p3f » Mon Jun 15, 2020 3:09 pm

and the next compile errors....

Code: Select All Code
In file included from ./include/uapi/asm-generic/types.h:7,
                 from ./arch/x86/include/generated/uapi/asm/types.h:1,
                 from ./include/uapi/linux/types.h:5,
                 from ./include/linux/types.h:6,
                 from ./include/linux/limits.h:6,
                 from ./include/linux/kernel.h:7,
                 from drivers/media/dvb-frontends/stid135/globaldefs.h:46,
                 from drivers/media/dvb-frontends/stid135/chip.h:57,
                 from drivers/media/dvb-frontends/stid135/chip.c:37:
./include/asm-generic/int-ll64.h:16:15: error: conflicting types for ‘s8’
 typedef __s8  s8;
               ^~
In file included from drivers/media/dvb-frontends/stid135/gen_types.h:45,
                 from drivers/media/dvb-frontends/stid135/i2c.h:41,
                 from drivers/media/dvb-frontends/stid135/chip.c:36:
drivers/media/dvb-frontends/stid135/stddefs.h:71:33: note: previous declaration of ‘s8’ was here
 typedef int8_t /*signed char*/  s8;
                                 ^~
In file included from ./include/uapi/asm-generic/types.h:7,
                 from ./arch/x86/include/generated/uapi/asm/types.h:1,
                 from ./include/uapi/linux/types.h:5,
                 from ./include/linux/types.h:6,
                 from ./include/linux/limits.h:6,
                 from ./include/linux/kernel.h:7,
                 from drivers/media/dvb-frontends/stid135/globaldefs.h:46,
                 from drivers/media/dvb-frontends/stid135/chip.h:57,
                 from drivers/media/dvb-frontends/stid135/chip.c:37:
./include/asm-generic/int-ll64.h:17:15: error: conflicting types for ‘u8’
 typedef __u8  u8;
               ^~
In file included from drivers/media/dvb-frontends/stid135/gen_types.h:45,
                 from drivers/media/dvb-frontends/stid135/i2c.h:41,
                 from drivers/media/dvb-frontends/stid135/chip.c:36:
drivers/media/dvb-frontends/stid135/stddefs.h:60:36: note: previous declaration of ‘u8’ was here
 typedef uint8_t /*unsigned char*/  u8;
                                    ^~
In file included from ./include/uapi/asm-generic/types.h:7,
                 from ./arch/x86/include/generated/uapi/asm/types.h:1,
                 from ./include/uapi/linux/types.h:5,
                 from ./include/linux/types.h:6,
                 from ./include/linux/limits.h:6,
                 from ./include/linux/kernel.h:7,
                 from drivers/media/dvb-frontends/stid135/globaldefs.h:46,
                 from drivers/media/dvb-frontends/stid135/chip.h:57,
                 from drivers/media/dvb-frontends/stid135/chip.c:37:
./include/asm-generic/int-ll64.h:18:15: error: conflicting types for ‘s16’
 typedef __s16 s16;
               ^~~
In file included from drivers/media/dvb-frontends/stid135/gen_types.h:45,
                 from drivers/media/dvb-frontends/stid135/i2c.h:41,
                 from drivers/media/dvb-frontends/stid135/chip.c:36:
drivers/media/dvb-frontends/stid135/stddefs.h:72:34: note: previous declaration of ‘s16’ was here
 typedef int16_t /*signed short*/ s16;
                                  ^~~
In file included from ./include/uapi/asm-generic/types.h:7,
                 from ./arch/x86/include/generated/uapi/asm/types.h:1,
                 from ./include/uapi/linux/types.h:5,
                 from ./include/linux/types.h:6,
                 from ./include/linux/limits.h:6,
                 from ./include/linux/kernel.h:7,
                 from drivers/media/dvb-frontends/stid135/globaldefs.h:46,
                 from drivers/media/dvb-frontends/stid135/chip.h:57,
                 from drivers/media/dvb-frontends/stid135/chip.c:37:
./include/asm-generic/int-ll64.h:19:15: error: conflicting types for ‘u16’
 typedef __u16 u16;
               ^~~
In file included from drivers/media/dvb-frontends/stid135/gen_types.h:45,
                 from drivers/media/dvb-frontends/stid135/i2c.h:41,
                 from drivers/media/dvb-frontends/stid135/chip.c:36:
drivers/media/dvb-frontends/stid135/stddefs.h:61:37: note: previous declaration of ‘u16’ was here
 typedef uint16_t /*unsigned short*/ u16;
                                     ^~~
In file included from ./include/uapi/asm-generic/types.h:7,
                 from ./arch/x86/include/generated/uapi/asm/types.h:1,
                 from ./include/uapi/linux/types.h:5,
                 from ./include/linux/types.h:6,
                 from ./include/linux/limits.h:6,
                 from ./include/linux/kernel.h:7,
                 from drivers/media/dvb-frontends/stid135/globaldefs.h:46,
                 from drivers/media/dvb-frontends/stid135/chip.h:57,
                 from drivers/media/dvb-frontends/stid135/chip.c:37:
./include/asm-generic/int-ll64.h:21:15: error: conflicting types for ‘u32’
 typedef __u32 u32;
               ^~~
In file included from drivers/media/dvb-frontends/stid135/gen_types.h:45,
                 from drivers/media/dvb-frontends/stid135/i2c.h:41,
                 from drivers/media/dvb-frontends/stid135/chip.c:36:
drivers/media/dvb-frontends/stid135/stddefs.h:62:37: note: previous declaration of ‘u32’ was here
 typedef uint32_t /*unsigned int*/   u32;
                                     ^~~
In file included from ./include/uapi/asm-generic/types.h:7,
                 from ./arch/x86/include/generated/uapi/asm/types.h:1,
                 from ./include/uapi/linux/types.h:5,
                 from ./include/linux/types.h:6,
                 from ./include/linux/limits.h:6,
                 from ./include/linux/kernel.h:7,
                 from drivers/media/dvb-frontends/stid135/globaldefs.h:46,
                 from drivers/media/dvb-frontends/stid135/chip.h:57,
                 from drivers/media/dvb-frontends/stid135/chip.c:37:
./include/asm-generic/int-ll64.h:22:15: error: conflicting types for ‘s64’
 typedef __s64 s64;
               ^~~
In file included from drivers/media/dvb-frontends/stid135/gen_types.h:45,
                 from drivers/media/dvb-frontends/stid135/i2c.h:41,
                 from drivers/media/dvb-frontends/stid135/chip.c:36:
drivers/media/dvb-frontends/stid135/stddefs.h:74:34: note: previous declaration of ‘s64’ was here
 typedef int64_t /*long long*/    s64;
                                  ^~~
In file included from ./include/uapi/asm-generic/types.h:7,
                 from ./arch/x86/include/generated/uapi/asm/types.h:1,
                 from ./include/uapi/linux/types.h:5,
                 from ./include/linux/types.h:6,
                 from ./include/linux/limits.h:6,
                 from ./include/linux/kernel.h:7,
                 from drivers/media/dvb-frontends/stid135/globaldefs.h:46,
                 from drivers/media/dvb-frontends/stid135/chip.h:57,
                 from drivers/media/dvb-frontends/stid135/chip.c:37:
./include/asm-generic/int-ll64.h:23:15: error: conflicting types for ‘u64’
 typedef __u64 u64;
               ^~~
In file included from drivers/media/dvb-frontends/stid135/gen_types.h:45,
                 from drivers/media/dvb-frontends/stid135/i2c.h:41,
                 from drivers/media/dvb-frontends/stid135/chip.c:36:
drivers/media/dvb-frontends/stid135/stddefs.h:63:41: note: previous declaration of ‘u64’ was here
 typedef uint64_t /*unsigned long long*/ u64;
                                         ^~~
p3f
 
Posts: 3
Joined: Mon Jun 15, 2020 2:46 pm

Re: Kernel 5.7 compile TBS-Driver

Postby p3f » Mon Jun 15, 2020 3:10 pm

last sector of compilerror:

Code: Select All Code
In file included from drivers/media/dvb-frontends/stid135/chip.h:57,
                 from drivers/media/dvb-frontends/stid135/chip.c:37:
drivers/media/dvb-frontends/stid135/chip.c: In function ‘AppendNode’:
drivers/media/dvb-frontends/stid135/globaldefs.h:50:23: error: implicit declaration of function ‘kzalloc’; did you mean ‘calloc’? [-Werror=implicit-function-declaration]
   #define calloc(n,s) kzalloc(n*s,GFP_KERNEL)
                       ^~~~~~~
drivers/media/dvb-frontends/stid135/chip.c:81:11: note: in expansion of macro ‘calloc’
   pNode = calloc(1,sizeof(NODE));
           ^~~~~~
drivers/media/dvb-frontends/stid135/globaldefs.h:50:35: error: ‘GFP_KERNEL’ undeclared (first use in this function)
   #define calloc(n,s) kzalloc(n*s,GFP_KERNEL)
                                   ^~~~~~~~~~
drivers/media/dvb-frontends/stid135/chip.c:81:11: note: in expansion of macro ‘calloc’
   pNode = calloc(1,sizeof(NODE));
           ^~~~~~
drivers/media/dvb-frontends/stid135/globaldefs.h:50:35: note: each undeclared identifier is reported only once for each function it appears in
   #define calloc(n,s) kzalloc(n*s,GFP_KERNEL)
                                   ^~~~~~~~~~
drivers/media/dvb-frontends/stid135/chip.c:81:11: note: in expansion of macro ‘calloc’
   pNode = calloc(1,sizeof(NODE));
           ^~~~~~
drivers/media/dvb-frontends/stid135/chip.c: In function ‘DeleteNode’:
drivers/media/dvb-frontends/stid135/globaldefs.h:51:19: error: implicit declaration of function ‘kfree’; did you mean ‘free’? [-Werror=implicit-function-declaration]
   #define free(p) kfree(p)
                   ^~~~~
drivers/media/dvb-frontends/stid135/chip.c:130:3: note: in expansion of macro ‘free’
   free(pNode); /* memory deallocation */
   ^~~~
drivers/media/dvb-frontends/stid135/chip.c: In function ‘ChipGetHandleFromName’:
drivers/media/dvb-frontends/stid135/chip.c:204:28: error: implicit declaration of function ‘strcmp’ [-Werror=implicit-function-declaration]
  while((hChip != NULL) && (strcmp(hChip->Name,Name) != 0))
                            ^~~~~~
In file included from drivers/media/dvb-frontends/stid135/chip.h:57,
                 from drivers/media/dvb-frontends/stid135/chip.c:37:
drivers/media/dvb-frontends/stid135/chip.c: In function ‘ChipOpen’:
drivers/media/dvb-frontends/stid135/globaldefs.h:50:35: error: ‘GFP_KERNEL’ undeclared (first use in this function)
   #define calloc(n,s) kzalloc(n*s,GFP_KERNEL)
                                   ^~~~~~~~~~
drivers/media/dvb-frontends/stid135/chip.c:228:10: note: in expansion of macro calloc’
  hChip = calloc(1,sizeof(STCHIP_Info_t));     /* Allocation of the chip structure */
          ^~~~~~
drivers/media/dvb-frontends/stid135/chip.c:253:6: error: implicit declaration of function ‘strcpy’ [-Werror=implicit-function-declaration]
      strcpy(hChip->Name,hChipOpenParams->Name);
      ^~~~~~
drivers/media/dvb-frontends/stid135/chip.c:253:6: warning: incompatible implicit declaration of built-in function ‘strcpy’
drivers/media/dvb-frontends/stid135/chip.c:253:6: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
drivers/media/dvb-frontends/stid135/chip.c:38:1:
+#include <string.h>
 
drivers/media/dvb-frontends/stid135/chip.c:253:6:
      strcpy(hChip->Name,hChipOpenParams->Name);
      ^~~~~~
drivers/media/dvb-frontends/stid135/chip.c: In function ‘ChipAddField’:
drivers/media/dvb-frontends/stid135/chip.c:388:5: warning: incompatible implicit declaration of built-in function ‘strcpy’
     strcpy(pField->Name,Name);
     ^~~~~~
drivers/media/dvb-frontends/stid135/chip.c:388:5: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
drivers/media/dvb-frontends/stid135/chip.c: In function ‘ChipGetRegisters’:
drivers/media/dvb-frontends/stid135/chip.c:742:8: error: implicit declaration of function ‘memset’ [-Werror=implicit-function-declaration]
        memset (data, 0xFF, nbdata);
        ^~~~~~
drivers/media/dvb-frontends/stid135/chip.c:742:8: warning: incompatible implicit declaration of built-in function ‘memset’
drivers/media/dvb-frontends/stid135/chip.c:742:8: note: include ‘<string.h>’ or provide a declaration of ‘memset’
drivers/media/dvb-frontends/stid135/chip.c: In function ‘ChipSetRegisters’:
drivers/media/dvb-frontends/stid135/chip.c:621:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
       data[nbdata++]=(u8)(MSB(hChip->pRegMapImage[firstRegIndex].Addr)); /* 16 bits sub addresses */
       ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/dvb-frontends/stid135/chip.c:622:6: note: here
      case STCHIP_MODE_SUBADR_8:
      ^~~~
drivers/media/dvb-frontends/stid135/chip.c:624:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
       data[nbdata++]=(u8)(LSB(hChip->pRegMapImage[firstRegIndex].Addr)); /* 8 bits sub addresses */
       ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/dvb-frontends/stid135/chip.c:625:6: note: here
      case STCHIP_MODE_NOSUBADR:
      ^~~~
drivers/media/dvb-frontends/stid135/chip.c: In function ‘ChipGetRegisters’:
drivers/media/dvb-frontends/stid135/chip.c:694:44: warning: this statement may fall through [-Wimplicit-fallthrough=]
                                     nbdata = (u8)(nbdata + 1);
                                     ~~~~~~~^~~~~~~~~~~~~~~~~~
drivers/media/dvb-frontends/stid135/chip.c:696:8: note: here
        case STCHIP_MODE_SUBADR_16:
        ^~~~
drivers/media/dvb-frontends/stid135/chip.c:697:23: warning: this statement may fall through [-Wimplicit-fallthrough=]
         data[nbdata++]=(u8)(MSB(hChip->pRegMapImage[firstRegIndex].Addr)); /* for 16 bits sub addresses */
         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/dvb-frontends/stid135/chip.c:698:8: note: here
        case STCHIP_MODE_SUBADR_8:
        ^~~~
drivers/media/dvb-frontends/stid135/chip.c:708:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
         if(hChip->Repeater && hChip->RepeaterHost && hChip->RepeaterFn)
           ^
drivers/media/dvb-frontends/stid135/chip.c:711:8: note: here
        case STCHIP_MODE_NOSUBADR:
        ^~~~
cc1: some warnings being treated as errors
p3f
 
Posts: 3
Joined: Mon Jun 15, 2020 2:46 pm

Re: Kernel 5.7 compile TBS-Driver

Postby zhangchao » Wed Jun 17, 2020 10:14 am

Please follow the steps below to install driver for tbs card .

#wget https://www.tbsdtv.com/download/document/linux/media_build-2020-05-23.tar.bz2
#tar jxvf media_build-2020-05-23.tar.bz2
#cd media_build
#./install.sh
#reboot
zhangchao
 
Posts: 45
Joined: Thu Jan 17, 2013 4:59 pm

Re: Kernel 5.7 compile TBS-Driver

Postby clanos » Sun Jun 28, 2020 9:10 am

Thanks, this worked for 5.6.0-0.bpo.2-amd64 (Debian)
clanos
 
Posts: 8
Joined: Fri Oct 30, 2015 10:47 am

Re: Kernel 5.7 compile TBS-Driver

Postby clanos » Mon Aug 17, 2020 1:06 am

Also worked for 5.7.0-0.bpo.2-amd64 (Debian), thanks again!
clanos
 
Posts: 8
Joined: Fri Oct 30, 2015 10:47 am

Re: Kernel 5.7 compile TBS-Driver

Postby boy01 » Tue Aug 18, 2020 1:46 am

This media_build-2020-05-23.tar.bz2 worked also on my Fedora 31 (5.7.11-100.fc31.x86_64).
I could watch several DVB-C channels at the same time with vlc.

Unfortunately it broke my VirtualBox installation. Couldn't start VirtualBox anymore (vboxdrv does not load anymore
and actually it is missing under /lib/modules/5.7.11-100.fc31.x86_64/):
# VirtualBox
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (5.7.11-100.fc31.x86_64) or it failed to
load. Please try load the kernel module by executing as root

dnf install akmod-VirtualBox kernel-devel-5.7.11-100.fc31.x86_64
akmods --kernels 5.7.11-100.fc31.x86_64 && systemctl restart vboxdrv.service

Above build commands do not work anymore. Kernel module vboxdrv is missing (and can not be compiled).
# modprobe vboxdrv
modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/5.7.11-100.fc31.x86_64
# locate vboxdrv
/etc/systemd/system/multi-user.target.wants/vboxdrv.service
/usr/lib/modules/5.7.9-100.fc31.x86_64/extra/VirtualBox/vboxdrv.ko
/usr/lib/systemd/system/vboxdrv.service
/usr/lib/udev/rules.d/60-vboxdrv.rules
# dnf install akmod-VirtualBox kernel-devel-5.7.11-100.fc31.x86_64
Last metadata expiration check: 0:06:22 ago on Mon 17 Aug 2020 00:11:31 EEST.
Package akmod-VirtualBox-6.1.12-1.fc31.x86_64 is already installed.
Package kernel-devel-5.7.11-100.fc31.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
# akmods --kernels 5.7.11-100.fc31.x86_64
Checking kmods exist for 5.7.11-100.fc31.x86_64 [ OK ]
Building and installing VirtualBox-kmod [ OK ]
#
-> resulted no vboxdrv.ko file for the kernel (although says OK)

Now I'm running my old kernel (5.7.9-100.fc31.x86_64) with working vboxdrv. I need my virtual hosts.
# locate vboxdrv.ko
/usr/lib/modules/5.7.9-100.fc31.x86_64/extra/VirtualBox/vboxdrv.ko

Any advice how I could get both (TBS6205 and VirtualBox) working at the same time?
Also, I tried to remove akmod-VirtualBox package and re-installed it. No vboxdrv.ko.

# lspci -vv -s 04:00.0 (with this old kernel, no picture, actually no channel lock at all)
04:00.0 Multimedia controller: TBS Technologies DVB Tuner PCIe Card
Subsystem: TBS Technologies (wrong ID) TBS6205 DVB-T2/T/C Quad TV Tuner PCIe Card
Physical Slot: 0-2
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 10
Region 0: Memory at f3200000 (32-bit, non-prefetchable) [size=256K]
Capabilities: [50] Power Management version 3
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [70] MSI: Enable- Count=1/1 Maskable- 64bit+
Address: 00000000fee01004 Data: 4029
Capabilities: [90] Express (v1) Endpoint, MSI 00
DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <64ns, L1 <1us
ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset- SlotPowerLimit 0.000W
DevCtl: CorrErr- NonFatalErr- FatalErr- UnsupReq-
RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop-
MaxPayload 128 bytes, MaxReadReq 512 bytes
DevSta: CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr- TransPend-
LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s, Exit Latency L0s unlimited
ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp-
LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- CommClk+
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 2.5GT/s (ok), Width x1 (ok)
TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
boy01
 
Posts: 2
Joined: Mon Aug 17, 2020 6:02 am

Re: Kernel 5.7 compile TBS-Driver

Postby boy01 » Sun Aug 30, 2020 7:15 pm

boy01 Wrote:This media_build-2020-05-23.tar.bz2 worked also on my Fedora 31 (5.7.11-100.fc31.x86_64).
I could watch several DVB-C channels at the same time with vlc.

Unfortunately it broke my VirtualBox installation. Couldn't start VirtualBox anymore (vboxdrv does not load anymore
and actually it is missing under /lib/modules/5.7.11-100.fc31.x86_64/):
...


Finally had some time to figure this out. I'm now running newest Fedora 31 kernel atm (5.7.15-100.fc31.x86_64).
With this kernel I need to do theses steps to get both running, my TBS 6205 and VirtualBox 6.1:

# wget https://www.tbsdtv.com/download/documen ... 23.tar.bz2
# tar jxvf media_build-2020-05-23.tar.bz2
# cd media_build

Apply this patch:
--- ./media_build/v4l/compat.h.ORIG 2020-08-30 11:37:46.531110334 +0300
+++ ./media_build/v4l/compat.h 2020-08-30 13:43:51.456478066 +0300
@@ -1585,6 +1585,13 @@
}
#endif

+/* prandom at least already in 5.7.15 kernel */
+#if LINUX_VERSION_CODE > KERNEL_VERSION(5, 7, 13)
+#undef NEED_PRANDOM_U32_MAX
+#undef NEED_PRANDOM_U32
+#undef NEED_NEXT_PSEUDO_RANDOM32
+#endif
+
#ifdef NEED_PRANDOM_U32_MAX
#include <linux/random.h>
#ifdef NEED_PRANDOM_U32

Continue with script commands...
# ./install.sh

(Possibly) erase already built VirtualBox kernel modules and re-install:
# dnf erase kmod-VirtualBox-5.7.15-100.fc31.x86_64-6.1.12-1.fc31.x86_64
# akmods --kernels 5.7.15-100.fc31.x86_64
# reboot

Now my virtualhosts are up and running and I can watch TV channels with VLC.
Above procedure needs to be done after each kernel upgrade, though.
boy01
 
Posts: 2
Joined: Mon Aug 17, 2020 6:02 am

Re: Kernel 5.7 compile TBS-Driver

Postby clanos » Sat Oct 17, 2020 10:21 pm

Failed with 5.8.0-0.bpo.2-amd64, and I can't compile opensource as my dist is not built with GCC9+ :(

Is it possible to get an updated tar?
clanos
 
Posts: 8
Joined: Fri Oct 30, 2015 10:47 am

Re: Kernel 5.7 compile TBS-Driver

Postby clanos » Sat Oct 17, 2020 10:34 pm

clanos Wrote:Failed with 5.8.0-0.bpo.2-amd64, and I can't compile opensource as my dist is not built with GCC9+ :(

Is it possible to get an updated tar?


Actually, it's struck me that I can download the latest from: https://www.tbsdtv.com/download/?path=6&id=27

Duh, all these years being confused :)

Works fine with http://www.tbsdtv.com/download/document ... 27.tar.bz2 but have to assume the latest on the above page would also work.
clanos
 
Posts: 8
Joined: Fri Oct 30, 2015 10:47 am


Return to Driver & Software Update

Who is online

Users browsing this forum: Google [Bot] and 3 guests

cron