Blindscan on linux with tbs cards

deeptho

Specialist Contributor
Joined
Apr 7, 2006
Messages
769
Reaction score
465
Points
63
Age
57
My Satellite Setup
Wavefrontier T90, Laminas 120cm, 2 other dishes; tbs 5927, tbs6904, tbs6909x, tbs6903x, tbs5990, tbs6981,tbs5927
My Location
Europe
I know but I followed the info in readme. Anyway I managed to make your patch work (needs some fine tunning + correct kernel version) also spectrum scanning works well. But the blindscan functionality keeps failing.
Yes, I notice that now.
The default branch on github is deepthought and is the one which should be checked out.
"latest" is the media_build branch on top of which the changes were made.

This information was contributed by LLew. It may explain why he had problems with the blindscan code at the time.
 

deeptho

Specialist Contributor
Joined
Apr 7, 2006
Messages
769
Reaction score
465
Points
63
Age
57
My Satellite Setup
Wavefrontier T90, Laminas 120cm, 2 other dishes; tbs 5927, tbs6904, tbs6909x, tbs6903x, tbs5990, tbs6981,tbs5927
My Location
Europe
I have updated the blindscan kernel drivers, by merging with the latest code from tbsdtv.

I have also updated the installation instructions.

See
or below:

mkdir ~/blindscan_kernel
cd ~/blindscan_kernel

#check out the actual drivers. This uses the default branch which is called deepthought
git clone --depth=1 GitHub - deeptho/linux_media: TBS linux open source drivers ./media

#checkout a copy of media_build. Standard media_build should work as well
git clone GitHub - tbsdtv/media_build

cd media_build
make dir DIR=../media
make distclean
make allyesconfig
make -j8
sudo make install
 

tokk250

New Member
Joined
Sep 20, 2021
Messages
9
Reaction score
0
Points
1
Age
34
My Satellite Setup
TBS 6909X-V2 + Intel i7 10th Gen + 2x 10TB WD Gold
My Location
Slovakia
I can confirm that now compilation on ubuntu is really easy !

But unfortunately the blindscan is still showing some errors in the app. Kernel seems OK no crashes now cool.
But I want to ask you is there any formula I can use to translate the frequency from kernel log into transponder frequency ?

For example:
stid135_scan_sat:1640 BLINDSCAN: GOOD freq=1935619kHz SR=2748 kS/s returned status=23 next=1937kHz

I think this is a "cable" frequency which is then translated in LNB to TP frequency right ?
 

deeptho

Specialist Contributor
Joined
Apr 7, 2006
Messages
769
Reaction score
465
Points
63
Age
57
My Satellite Setup
Wavefrontier T90, Laminas 120cm, 2 other dishes; tbs 5927, tbs6904, tbs6909x, tbs6903x, tbs5990, tbs6981,tbs5927
My Location
Europe
Which error messages do you see in the log files? Debug messages are normal.
The one you mentioned just means that it is working.

Th kernel only knows about the IF frequencies. so you should add the local oscillator frequency
which is either 9.75 Ghz or 10.6Ghz. The correct frequencies are reported by the blindscan program itself.


If you prefer a gui, you can also install neumodvb (elsewhere on my github)
 

Llew

cerca trova...
Staff member
Joined
Jan 1, 2000
Messages
16,259
Reaction score
4,217
Points
113
Age
82
My Satellite Setup
Triple Dragon, Dreambox 8000, Echostar AD3000ip, TBS6522,6925,6983 PCie cards.
Gibertini 1.25m motorised dish driven by the AD3000, with either Inverto BU Quad or Norsat / XMW Ka LNBs . SMW 1.05m + 3 other dishes. Speccy: Promax HD Ranger+
My Location
The Flatlands of East Anglia
@deeptho
I'm running into a problem with theblindscan _kernel on Fedora.

With makeallyesconfig, the kernel file in /build/config isn't found - checking the script doesn't find it. I'm using kernel 5.13.16-200.fc34.x86_64.

I tried two other earlier kernel versions and have the same problem.

I'm trying to get adaptors into /dev/dvb so I can continue with Frontend Configuration in neumoDVB.

Any idea what might be the problem? I can't progress until I have my cards registered as adaptors.

Code:
[root@fedora media_build]# make allyesconfig
make -C /home/davidL/Downloads/blindscan_kernel/media_build/v4l allyesconfig
make[1]: Entering directory '/home/davidL/Downloads/blindscan_kernel/media_build/v4l'
No version yet, using 5.13.16-200.fc34.x86_64
make[2]: Entering directory '/home/davidL/Downloads/blindscan_kernel/media_build/linux'
Syncing with dir ../../media
Applying patches for kernel 5.13.16-200.fc34.x86_64
patch -s -f -N -p1 -i ../backports/api_version.patch
patch -s -f -N -p1 -i ../backports/pr_fmt.patch
patch -s -f -N -p1 -i ../backports/debug.patch
patch -s -f -N -p1 -i ../backports/drx39xxj.patch
patch -s -f -N -p1 -i ../backports/ccs.patch
patch -s -f -N -p1 -i ../backports/rc-cec.patch
Patched drivers/media/dvb-core/dvbdev.c
Patched drivers/media/v4l2-core/v4l2-dev.c
Patched drivers/media/rc/rc-main.c
Syncing with dir ../../media
make[2]: Leaving directory '/home/davidL/Downloads/blindscan_kernel/media_build/linux'
./scripts/make_kconfig.pl /lib/modules/5.13.16-200.fc34.x86_64/build /lib/modules/5.13.16-200.fc34.x86_64/build 1
Preparing to compile for kernel version 5.13.16
File not found: /lib/modules/5.13.16-200.fc34.x86_64/build/.config at ./scripts/make_kconfig.pl line 33, <IN> line 4.
make[1]: *** [Makefile:376: allyesconfig] Error 2
make[1]: Leaving directory '/home/davidL/Downloads/blindscan_kernel/media_build/v4l'
make: *** [Makefile:26: allyesconfig] Error 2
[root@fedora media_build]#
 

deeptho

Specialist Contributor
Joined
Apr 7, 2006
Messages
769
Reaction score
465
Points
63
Age
57
My Satellite Setup
Wavefrontier T90, Laminas 120cm, 2 other dishes; tbs 5927, tbs6904, tbs6909x, tbs6903x, tbs5990, tbs6981,tbs5927
My Location
Europe
It probably means that yoy ave not installed kernel devel. It has to be exactly the same version as your kernel

sudo dnf install kernel-devel-5.13.16
 

Llew

cerca trova...
Staff member
Joined
Jan 1, 2000
Messages
16,259
Reaction score
4,217
Points
113
Age
82
My Satellite Setup
Triple Dragon, Dreambox 8000, Echostar AD3000ip, TBS6522,6925,6983 PCie cards.
Gibertini 1.25m motorised dish driven by the AD3000, with either Inverto BU Quad or Norsat / XMW Ka LNBs . SMW 1.05m + 3 other dishes. Speccy: Promax HD Ranger+
My Location
The Flatlands of East Anglia
It probably means that yoy ave not installed kernel devel. It has to be exactly the same version as your kernel

sudo dnf install kernel-devel-5.13.16
I had tried that, but it couldn't find a match.

Maybe I should try other kernels.
 

Llew

cerca trova...
Staff member
Joined
Jan 1, 2000
Messages
16,259
Reaction score
4,217
Points
113
Age
82
My Satellite Setup
Triple Dragon, Dreambox 8000, Echostar AD3000ip, TBS6522,6925,6983 PCie cards.
Gibertini 1.25m motorised dish driven by the AD3000, with either Inverto BU Quad or Norsat / XMW Ka LNBs . SMW 1.05m + 3 other dishes. Speccy: Promax HD Ranger+
My Location
The Flatlands of East Anglia
Do I need to make/config the kernel? I'm hazy when it comes to kernels
 

deeptho

Specialist Contributor
Joined
Apr 7, 2006
Messages
769
Reaction score
465
Points
63
Age
57
My Satellite Setup
Wavefrontier T90, Laminas 120cm, 2 other dishes; tbs 5927, tbs6904, tbs6909x, tbs6903x, tbs5990, tbs6981,tbs5927
My Location
Europe
You only need to install kernel-devel and then proceed as indicated in the README.md file.
media_build can only install for the currently running kernel, so you must first boot using the
correct kernel, which of course must also be installed:

sudo dnf install kernel-devel-5.13.16
sudo dnf install kernel-5.13.16

If either of them is ot installed and if are not running this kernel,
then it will not work

You can check the running kernel witj
uname -r
5.13.16-200.fc34.x86_64

You can check which kernels are installed with
rpm -q -a kernel
kernel-5.10.19-200.fc33.x86_64
kernel-5.13.12-200.fc34.x86_64
kernel-5.13.16-200.fc34.x86_64

and which kernel devels are installed with
rpm -q -a kernel-devel
kernel-devel-5.10.19-200.fc33.x86_64
kernel-devel-5.13.12-200.fc34.x86_64
kernel-devel-5.13.16-200.fc34.x86_64

As you can see: in my computer 5.13.16-200 is in the output of the three commands



What do you mean by "it couldn't find a match"?
 

Llew

cerca trova...
Staff member
Joined
Jan 1, 2000
Messages
16,259
Reaction score
4,217
Points
113
Age
82
My Satellite Setup
Triple Dragon, Dreambox 8000, Echostar AD3000ip, TBS6522,6925,6983 PCie cards.
Gibertini 1.25m motorised dish driven by the AD3000, with either Inverto BU Quad or Norsat / XMW Ka LNBs . SMW 1.05m + 3 other dishes. Speccy: Promax HD Ranger+
My Location
The Flatlands of East Anglia
What do you mean by "it couldn't find a match"?
Code:
davidL@fedora ~]$ sudo -s
[sudo] password for davidL:
[root@fedora davidL]# sudo dnf install kernel-devel-5.13.16
Last metadata expiration check: 1:29:12 ago on Sun 26 Sep 2021 18:29:57 BST.
No match for argument: kernel-devel-5.13.16
Error: Unable to find a match: kernel-devel-5.13.16
[rootfedora davidL]#
uname-r gives my kernel.
I'll check with those other commands, thanks.
 

deeptho

Specialist Contributor
Joined
Apr 7, 2006
Messages
769
Reaction score
465
Points
63
Age
57
My Satellite Setup
Wavefrontier T90, Laminas 120cm, 2 other dishes; tbs 5927, tbs6904, tbs6909x, tbs6903x, tbs5990, tbs6981,tbs5927
My Location
Europe
If 5.13.16 cannot be found, then try a slightly different version, for example 5.13.19
 

Llew

cerca trova...
Staff member
Joined
Jan 1, 2000
Messages
16,259
Reaction score
4,217
Points
113
Age
82
My Satellite Setup
Triple Dragon, Dreambox 8000, Echostar AD3000ip, TBS6522,6925,6983 PCie cards.
Gibertini 1.25m motorised dish driven by the AD3000, with either Inverto BU Quad or Norsat / XMW Ka LNBs . SMW 1.05m + 3 other dishes. Speccy: Promax HD Ranger+
My Location
The Flatlands of East Anglia
If 5.13.16 cannot be found, then try a slightly different version, for example 5.13.19
kernel and kernel-devel installed fine with 5.13.19. Thanks.

blindscan_kernel now builds successfully.

There has to be a flaw somewhere in my system, kernel or whatever, or perhaps I've missed a vital step - still neither of my cards register in /dev/dvb.-

nothing in dmesg | grep frontend, even though the card tuner is in /drivers/media/dvb-frontends.

lspci -vvv | grep 6903
Subsystem: Device 6903:0001
Subsystem: Device 6903:0020
confirms both cards are recognised(TBS 6903 + TBS 6903X).

So, I have a neumoDVB GUI waiting to use, and no adaptor to use with it!

Nothing else I can think of doing using Fedora, I think I'll return to Ubuntu and try my luck with the kernel(s) there.

Thanks anyway deeptho.
 

deeptho

Specialist Contributor
Joined
Apr 7, 2006
Messages
769
Reaction score
465
Points
63
Age
57
My Satellite Setup
Wavefrontier T90, Laminas 120cm, 2 other dishes; tbs 5927, tbs6904, tbs6909x, tbs6903x, tbs5990, tbs6981,tbs5927
My Location
Europe
Perhaps you forgot to install the kernel modules?
A reboot may be needed as well.
 

deeptho

Specialist Contributor
Joined
Apr 7, 2006
Messages
769
Reaction score
465
Points
63
Age
57
My Satellite Setup
Wavefrontier T90, Laminas 120cm, 2 other dishes; tbs 5927, tbs6904, tbs6909x, tbs6903x, tbs5990, tbs6981,tbs5927
My Location
Europe
Perhaps you forgot to install the kernel modules?
A reboot may be needed as well.
so:
sudo make install

Note that the procedure for the kernel is exactlt the same as on ubuntu....
 

Llew

cerca trova...
Staff member
Joined
Jan 1, 2000
Messages
16,259
Reaction score
4,217
Points
113
Age
82
My Satellite Setup
Triple Dragon, Dreambox 8000, Echostar AD3000ip, TBS6522,6925,6983 PCie cards.
Gibertini 1.25m motorised dish driven by the AD3000, with either Inverto BU Quad or Norsat / XMW Ka LNBs . SMW 1.05m + 3 other dishes. Speccy: Promax HD Ranger+
My Location
The Flatlands of East Anglia
so:
sudo make install

Note that the procedure for the kernel is exactlt the same as on ubuntu....
I'm building it again, and waiting for it to finish make -j8.

Have to break for supper, will be back ASAP. If you can stand the suspense :D
 

Llew

cerca trova...
Staff member
Joined
Jan 1, 2000
Messages
16,259
Reaction score
4,217
Points
113
Age
82
My Satellite Setup
Triple Dragon, Dreambox 8000, Echostar AD3000ip, TBS6522,6925,6983 PCie cards.
Gibertini 1.25m motorised dish driven by the AD3000, with either Inverto BU Quad or Norsat / XMW Ka LNBs . SMW 1.05m + 3 other dishes. Speccy: Promax HD Ranger+
My Location
The Flatlands of East Anglia
I'm building it again, and waiting for it to finish make -j8.

Have to break for supper, will be back ASAP. If you can stand the suspense :D
Just checked make -j8. Stopped here with an error that has appeared since reboot. No idea what that signifies.
Code:
  CC [M]  /home/davidL/Downloads/blindscan_kernel/media_build/v4l/mxl111sf-i2c.o
  CC [M]  /home/davidL/Downloads/blindscan_kernel/media_build/v4l/mxl111sf-gpio.o
  CC [M]  /home/davidL/Downloads/blindscan_kernel/media_build/v4l/mxl111sf-demod.o
In file included from ./include/linux/string.h:269,
                 from ./include/linux/bitmap.h:10,
                 from ./include/linux/cpumask.h:12,
                 from ./arch/x86/include/asm/cpumask.h:5,
                 from ./arch/x86/include/asm/msr.h:11,
                 from ./arch/x86/include/asm/processor.h:22,
                 from ./arch/x86/include/asm/timex.h:5,
                 from ./include/linux/timex.h:65,
                 from ./include/linux/time32.h:13,
                 from ./include/linux/time.h:60,
                 from ./include/linux/input.h:8,
                 from /home/davidL/Downloads/blindscan_kernel/media_build/v4l/compat.h:47,
                 from <command-line>:
In function 'strscpy',
    inlined from 'lme_name' at /home/davidL/Downloads/blindscan_kernel/media_build/v4l/lmedm04.c:944:2,
    inlined from 'dm04_lme2510_frontend_attach' at /home/davidL/Downloads/blindscan_kernel/media_build/v4l/lmedm04.c:1053:8:
./include/linux/fortify-string.h:120:17: error: call to '__write_overflow' declared with attribute error: detected write beyond size of object passed as 1st parameter
  120 |                 __write_overflow();
      |                 ^~~~~~~~~~~~~~~~~~
make[3]: *** [scripts/Makefile.build:273: /home/davidL/Downloads/blindscan_kernel/media_build/v4l/lmedm04.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile:1868: /home/davidL/Downloads/blindscan_kernel/media_build/v4l] Error 2
make[2]: Leaving directory '/usr/src/kernels/5.13.19-200.fc34.x86_64'
make[1]: *** [Makefile:53: default] Error 2
make[1]: Leaving directory '/home/davidL/Downloads/blindscan_kernel/media_build/v4l'
make: *** [Makefile:26: all] Error 2
[root@fedora media_build]#
 

Llew

cerca trova...
Staff member
Joined
Jan 1, 2000
Messages
16,259
Reaction score
4,217
Points
113
Age
82
My Satellite Setup
Triple Dragon, Dreambox 8000, Echostar AD3000ip, TBS6522,6925,6983 PCie cards.
Gibertini 1.25m motorised dish driven by the AD3000, with either Inverto BU Quad or Norsat / XMW Ka LNBs . SMW 1.05m + 3 other dishes. Speccy: Promax HD Ranger+
My Location
The Flatlands of East Anglia
I rm'd the Directory, made a new one and started again. Errors still appearing during make -j8.

It's taking up yours and my time time continually posting them here, so I will have to give it a rest until my sanity returns :-ohmy
 

deeptho

Specialist Contributor
Joined
Apr 7, 2006
Messages
769
Reaction score
465
Points
63
Age
57
My Satellite Setup
Wavefrontier T90, Laminas 120cm, 2 other dishes; tbs 5927, tbs6904, tbs6909x, tbs6903x, tbs5990, tbs6981,tbs5927
My Location
Europe
This is a problem in an unrelated driver. The workaround is:
Find the file ./media/drivers/media/usb/dvb-usb-v2/lsmedm04.c
Close to line 939 there is
strscpy(name, desc, 128);
Replace this with
//strscpy(name, desc, 128);
save the file.
make -j8 should now work.
Afterwards, do not forget:
sudo make install
 

Llew

cerca trova...
Staff member
Joined
Jan 1, 2000
Messages
16,259
Reaction score
4,217
Points
113
Age
82
My Satellite Setup
Triple Dragon, Dreambox 8000, Echostar AD3000ip, TBS6522,6925,6983 PCie cards.
Gibertini 1.25m motorised dish driven by the AD3000, with either Inverto BU Quad or Norsat / XMW Ka LNBs . SMW 1.05m + 3 other dishes. Speccy: Promax HD Ranger+
My Location
The Flatlands of East Anglia
This is a problem in an unrelated driver. The workaround is:
Find the file ./media/drivers/media/usb/dvb-usb-v2/lsmedm04.c
Close to line 939 there is
strscpy(name, desc, 128);
Replace this with
//strscpy(name, desc, 128);
save the file.
make -j8 should now work.
Afterwards, do not forget:
sudo make install
Did that, but still get an error with make -j8. (patches?)-

Then out of interest I did make all to see what the output was, and it is the same as with make -j8.

I I remember earlier when I first tried today with this kernel, it built OK.
Code:
make[3]: Entering directory '/home/davidL/Downloads/blindscan_kernel/media_build/linux'
Unapplying patches
patch -s -f -R -p1 -i ../backports/rc-cec.patch
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/rc/Makefile.rej
make[3]: Leaving directory '/home/davidL/Downloads/blindscan_kernel/media_build/linux'
Applying patches for kernel 5.13.19-200.fc34.x86_64
patch -s -f -N -p1 -i ../backports/api_version.patch
patch -s -f -N -p1 -i ../backports/pr_fmt.patch
patch -s -f -N -p1 -i ../backports/debug.patch
patch -s -f -N -p1 -i ../backports/drx39xxj.patch
patch -s -f -N -p1 -i ../backports/ccs.patch
patch -s -f -N -p1 -i ../backports/rc-cec.patch
patch -s -f -N -p1 -i ../backports/v5.14_bus_void_return.patch
1 out of 1 hunk FAILED
make[2]: *** [Makefile:133: apply_patches] Error 1
make[2]: Leaving directory '/home/davidL/Downloads/blindscan_kernel/media_build/linux'
make[1]: *** [Makefile:52: default] Error 2
make[1]: Leaving directory '/home/davidL/Downloads/blindscan_kernel/media_build/v4l'
make: *** [Makefile:26: all] Error 2
[root@fedora media_build]#
 

deeptho

Specialist Contributor
Joined
Apr 7, 2006
Messages
769
Reaction score
465
Points
63
Age
57
My Satellite Setup
Wavefrontier T90, Laminas 120cm, 2 other dishes; tbs 5927, tbs6904, tbs6909x, tbs6903x, tbs5990, tbs6981,tbs5927
My Location
Europe
It seems teh media_build hell strikes again... What I propose is that I try this kernel myself.
I will then send you the modules if I succeed....
 
Top