Blindscan on linux with tbs cards

deeptho

Specialist Contributor
Joined
Apr 7, 2006
Messages
697
Reaction score
420
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
Compared to on windows very few blindscan solutions are available on Linux, so I decided to make my own.
This meant: adapting the kernel drivers, providing a kernel interface and developing some user space command
line and plotting programs to test.

Currently the software supports stid135 based cards (tbs6909x and tbs6903x), and stv091x based cards
(tbs 5927). It provides two functions: 1) creating a spectrum and 2) blindscanning transponders on a satellite.
There is no gui (yet). The code support MIS and PLS scanning.

The stid135 blindcan code takes about 6 minutes to scan all Astra 2 transponders. It uses the chips fft engine
and outputs a high resolution spectrum (100kHz or better) simultaneously. The spectrum is computed first,
then searched for peaks, and then candidate transponders are blind scanned. The spectrum is saved to
a file and the blindscan results are saved in scan-s2 format. If desired, the spectrum can be retrieved without
blind scan as well.

Her is an example spectrum on 5.0W with 100kHz resolution, showing some low symbol rate transponders.
On this satellite all transponders with symbol rate larger than 1MS/s are found. By switching the spectrum
resolution to 50kHz even one or two sub 1MS/s transponders are detected. The spectrum is quite clean
after solving some bugs:
5.0W_100kHz.png

The stv091x blindscan code does not compute a spectrum first but rather computes parts of it as needed.
So it does not output a spectrum along with the blindscan, but it can still produce a spectrum
with other command line options. The stv091x seems to handle low symbol rates faster and it can scan down
to 250Mhz (useful for Eshail 2amateur transmissions).


The first working software is now available on github:

The kernel code is located on github: deeptho/linux_media
and is a fork of the tbs driver code.

The user space code is located at at deeptho/blindscan

If you encounter problems, open a ticket on github, but be sure to mention the exact version
of the kernel and user code and of course provide a detailed description of the problem.
 

Adam792

Specialist Contributor
Joined
Sep 5, 2009
Messages
1,260
Reaction score
1,152
Points
113
Age
31
My Satellite Setup
Dishes: 80cm (5°W), 80cm (30°W), 60cm Zone 2 (13°E/19.2°E/28.2°E)
Receivers: HTPC w/ TBS6905 4x DVB-S2 PCIe tuner card running TVHeadend, Octagon SF8008 mini.
My Location
Cheltenham
Brilliant! Will definitely have a go with this with my TBS6905 (STV091X) which I use in my Linux TVHeadend server. Been looking for something like this for ages!

Looking at your linux_media repo, it's forked from the TBSDTV one on there which is what I currently use. I get a weird bug on that build on the TBS6905 in TVH where DVB-S transponders fail to lock sometimes (DVB-S2 is always fine), so it'll be interesting to see if your changes affect that at all :)
 

deeptho

Specialist Contributor
Joined
Apr 7, 2006
Messages
697
Reaction score
420
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
Brilliant! Will definitely have a go with this with my TBS6905 (STV091X) which I use in my Linux TVHeadend server. Been looking for something like this for ages!

Looking at your linux_media repo, it's forked from the TBSDTV one on there which is what I currently use. I get a weird bug on that build on the TBS6905 in TVH where DVB-S transponders fail to lock sometimes (DVB-S2 is always fine), so it'll be interesting to see if your changes affect that at all :)

I have not tested this card, but I expect it will work. Looking forward to the test results...

Note that tvheadend will not use the blindscan features without changes. The way the code works is that tvheadend would have
to ask explicitly to use blindscan, otherwise the driver will just force the values of symbol rate , ... asked by tvheadend. That part is easy to fix. Reading the correct values of frequency, symbolrate... from the driver and updating the database is a lot more work.

For the DVB-S problem: Perhaps you can activate kernel debug logging. If the problem happens again, the log files may shed some light on it
(report on github).

One way to activate debugging: install rsyslogd, add a line like
kern.debug /var/log/debug
restart if needed. Debug messages should appear in /var/log/debug, which can become quite large...

Finding a way to reproduce the problem would be even better, but that can be difficult. I have seen similar problems on the stid135 based
cards from time to time, but have not been able to reproduce them. The overall logic is the same as in the the stv091x drivers, so the bugs
may be related (or not). Probably it is some register setting that remains from a previous tune to another transponder.
 

Butacas

Member
Joined
May 4, 2019
Messages
74
Reaction score
57
Points
18
My Satellite Setup
90 cm motorised dish (1 m x 90 cm) + fixed [DiSEqC 3 x 1] {80 cm x 74 cm} Hot Bird 13° E, {65 cm} Astra 19,2° E & {60 cm} Hispasat 30° W + fixed {60 cm} Astra 28,2° E.
Motorised dish currently: 40,5° West to 45° East.
Vu+ Solo SE V2, Vu+ Zero 4K, TBS 5927.
My Location
Spain, Galicia (Ourense)
Will drivers for enigma 2 or a patch be developed? For TBS 5927
 

deeptho

Specialist Contributor
Joined
Apr 7, 2006
Messages
697
Reaction score
420
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

Llew

cerca trova...
Staff member
Joined
Jan 1, 2000
Messages
16,226
Reaction score
4,197
Points
113
Age
81
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
Compared to on windows very few blindscan solutions are available on Linux, so I decided to make my own.
This meant: adapting the kernel drivers, providing a kernel interface and developing some user space command
line and plotting programs to test.

Currently the software supports stid135 based cards (tbs6909x and tbs6903x), and stv091x based cards
(tbs 5927). It provides two functions: 1) creating a spectrum and 2) blindscanning transponders on a satellite.
There is no gui (yet). The code support MIS and PLS scanning.

The stid135 blindcan code takes about 6 minutes to scan all Astra 2 transponders. It uses the chips fft engine
and outputs a high resolution spectrum (100kHz or better) simultaneously. The spectrum is computed first,
then searched for peaks, and then candidate transponders are blind scanned. The spectrum is saved to
a file and the blindscan results are saved in scan-s2 format. If desired, the spectrum can be retrieved without
blind scan as well.

Her is an example spectrum on 5.0W with 100kHz resolution, showing some low symbol rate transponders.
On this satellite all transponders with symbol rate larger than 1MS/s are found. By switching the spectrum
resolution to 50kHz even one or two sub 1MS/s transponders are detected. The spectrum is quite clean
after solving some bugs:
View attachment 131995

The stv091x blindscan code does not compute a spectrum first but rather computes parts of it as needed.
So it does not output a spectrum along with the blindscan, but it can still produce a spectrum
with other command line options. The stv091x seems to handle low symbol rates faster and it can scan down
to 250Mhz (useful for Eshail 2amateur transmissions).


The first working software is now available on github:

The kernel code is located on github: deeptho/linux_media
and is a fork of the tbs driver code.

The user space code is located at at deeptho/blindscan

If you encounter problems, open a ticket on github, but be sure to mention the exact version
of the kernel and user code and of course provide a detailed description of the problem.

Hi deeptho, looks to be an excellent facility.
Running into a small problem. I have an error compiling blindscan.

I have clang 6.0 installed. I'm using Ubuntu 16.04. Maybe I need a later version?

Any help appreciated.


Code:

-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/david/deepthought/blindscan-master/build
david@david-desktop:~/deepthought/blindscan-master/build$ make
Scanning dependencies of target neumo-blindscan
[ 50%] Building CXX object src/CMakeFiles/neumo-blindscan.dir/neumo-blindscan.cc.o
/bin/sh: 1: clang++: not found
src/CMakeFiles/neumo-blindscan.dir/build.make:62: recipe for target 'src/CMakeFiles/neumo-blindscan.dir/neumo-blindscan.cc.o' failed
make[2]: *** [src/CMakeFiles/neumo-blindscan.dir/neumo-blindscan.cc.o] Error 127
CMakeFiles/Makefile2:93: recipe for target 'src/CMakeFiles/neumo-blindscan.dir/all' failed
make[1]: *** [src/CMakeFiles/neumo-blindscan.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
david@david-desktop:~/deepthought/blindscan-master/build$
 

deeptho

Specialist Contributor
Joined
Apr 7, 2006
Messages
697
Reaction score
420
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
Hi deeptho, looks to be an excellent facility.
Running into a small problem. I have an error compiling blindscan.

I have clang 6.0 installed. I'm using Ubuntu 16.04. Maybe I need a later version?

Any help appreciated.


Code:

-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/david/deepthought/blindscan-master/build
david@david-desktop:~/deepthought/blindscan-master/build$ make
Scanning dependencies of target neumo-blindscan
[ 50%] Building CXX object src/CMakeFiles/neumo-blindscan.dir/neumo-blindscan.cc.o
/bin/sh: 1: clang++: not found
src/CMakeFiles/neumo-blindscan.dir/build.make:62: recipe for target 'src/CMakeFiles/neumo-blindscan.dir/neumo-blindscan.cc.o' failed
make[2]: *** [src/CMakeFiles/neumo-blindscan.dir/neumo-blindscan.cc.o] Error 127
CMakeFiles/Makefile2:93: recipe for target 'src/CMakeFiles/neumo-blindscan.dir/all' failed
make[1]: *** [src/CMakeFiles/neumo-blindscan.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
david@david-desktop:~/deepthought/blindscan-master/build$
Perhaps the compiler is not installed under the name "clang++' on ubuntu. So replace clang+= with c++ in the CMakeFiles
or add a symbolic link to the compiler
As root:
ln -s /usr/bin/c++ /usr/bin/clang++
 

satesco

Specialist Contributor
Joined
Aug 10, 2008
Messages
1,894
Reaction score
2,650
Points
113
My Satellite Setup
seven antennas,one toroidal with 16 lnbs,
6 satellite receivers,2 Meters,9 PC cards(tbs6983,6903,6590,6504,6522,6209,2603,6909X,6903X,6902se,skystar hd2),2 tuners usb-tbs5927 & tbs5925,Skystar HD.
Satellite reception between 100.5E-50.0W
My Location
Romania
Compared to on windows very few blindscan solutions are available on Linux, so I decided to make my own.
This meant: adapting the kernel drivers, providing a kernel interface and developing some user space command
line and plotting programs to test.

Currently the software supports stid135 based cards (tbs6909x and tbs6903x), and stv091x based cards
(tbs 5927). It provides two functions: 1) creating a spectrum and 2) blindscanning transponders on a satellite.
There is no gui (yet). The code support MIS and PLS scanning.

The stid135 blindcan code takes about 6 minutes to scan all Astra 2 transponders. It uses the chips fft engine
and outputs a high resolution spectrum (100kHz or better) simultaneously. The spectrum is computed first,
then searched for peaks, and then candidate transponders are blind scanned. The spectrum is saved to
a file and the blindscan results are saved in scan-s2 format. If desired, the spectrum can be retrieved without
blind scan as well.

Her is an example spectrum on 5.0W with 100kHz resolution, showing some low symbol rate transponders.
On this satellite all transponders with symbol rate larger than 1MS/s are found. By switching the spectrum
resolution to 50kHz even one or two sub 1MS/s transponders are detected. The spectrum is quite clean
after solving some bugs:
View attachment 131995

The stv091x blindscan code does not compute a spectrum first but rather computes parts of it as needed.
So it does not output a spectrum along with the blindscan, but it can still produce a spectrum
with other command line options. The stv091x seems to handle low symbol rates faster and it can scan down
to 250Mhz (useful for Eshail 2amateur transmissions).


The first working software is now available on github:

The kernel code is located on github: deeptho/linux_media
and is a fork of the tbs driver code.

The user space code is located at at deeptho/blindscan

If you encounter problems, open a ticket on github, but be sure to mention the exact version
of the kernel and user code and of course provide a detailed description of the problem.



Congratulations on your application :YIt seems to offer what even on Windows could not be done with the 6903X card,among other things even locking the low symbol rates.Perhaps it would be better to try the low symbol rates at 10.0E, of 256 Ks,on Vatican Radio transponders.Some of these are very close to each other,they only separate a few Kz(not MHz)!
Actually,since I don't work on Linux/Ubuntu much,would it take too much to make a tutorial for beginners to install your application?
And another thing,is there a conflict between the kerner of your application and the tbs driver for 6903X card?
My regards.
 

Llew

cerca trova...
Staff member
Joined
Jan 1, 2000
Messages
16,226
Reaction score
4,197
Points
113
Age
81
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
Perhaps the compiler is not installed under the name "clang++' on ubuntu. So replace clang+= with c++ in the CMakeFiles
or add a symbolic link to the compiler
As root:
ln -s /usr/bin/c++ /usr/bin/clang++
Compiled OK now. I just needed to remove the version added to c++ in usr/bin (was c++-6.0, now changed to plain c++).
 

Llew

cerca trova...
Staff member
Joined
Jan 1, 2000
Messages
16,226
Reaction score
4,197
Points
113
Age
81
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
Congratulations on your application :YIt seems to offer what even on Windows could not be done with the 6903X card,among other things even locking the low symbol rates.Perhaps it would be better to try the low symbol rates at 10.0E, of 256 Ks,on Vatican Radio transponders.Some of these are very close to each other,they only separate a few Kz(not MHz)!
Actually,since I don't work on Linux/Ubuntu much,would it take too much to make a tutorial for beginners to install your application?
And another thing,is there a conflict between the kerner of your application and the tbs driver for 6903X card?
My regards.
I'm a 'just get by' person with Linux satesco, but I'll try to outline the steps I'm taking when I (hopefully) get it blindscanning and a spectrum scan.
 

deeptho

Specialist Contributor
Joined
Apr 7, 2006
Messages
697
Reaction score
420
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
Congratulations on your application :YIt seems to offer what even on Windows could not be done with the 6903X card,among other things even locking the low symbol rates.Perhaps it would be better to try the low symbol rates at 10.0E, of 256 Ks,on Vatican Radio transponders.Some of these are very close to each other,they only separate a few Kz(not MHz)!
Actually,since I don't work on Linux/Ubuntu much,would it take too much to make a tutorial for beginners to install your application?
And another thing,is there a conflict between the kerner of your application and the tbs driver for 6903X card?
My regards.

Satesco,
I will keep in mind the Vatican radio channels as a future challenge. It may be beyond
the cards limits (stv091x is currently better for that).

For the tutorial: first install the kernel drivers. This will be the most challenging.
Follow the instructions here TBS driver installation - LinuxTVWiki (use the "tbs forked driver"), but replace the "media" tree with the new one (so that means: do not download the linux_media.git from the usual place but from my fork instead)

Then test it using some linux application (dvblast, tvheadend ...).

The user space code installation procedure is documented in the README. It has almost no external
dependencies currently, except for a compiler and cmake.

Conflicts? There should not be any. I try to keep the code backward compatible,
but there can be bugs and it is work in progress.
 

deeptho

Specialist Contributor
Joined
Apr 7, 2006
Messages
697
Reaction score
420
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'm a 'just get by' person with Linux satesco, but I'll try to outline the steps I'm taking when I (hopefully) get it blindscanning and a spectrum scan.

That should be helpful.

By the way: There has been a fix today for stv091x and high symbol rates like on 51.5 East.

This is what I get on the low horizontal band now

SEARCH: 10700.000-11700.000 pol=H

RESULT: freq=10803.028H Symrate=27496 Stream=255 pls_mode= 3:262143 ISI list: 0
SIG=-42.97dB SIG= 58% CNR=14.20dB CNR= 71% SYS(21) MOD(6) FEC_AUTO INV_OFF PILAUTO ROL_AUTO

RESULT: freq=10804.149H Symrate=27496 Stream=255 pls_mode= 3:262143 ISI list: 0
SIG=-43.39dB SIG= 57% CNR=14.00dB CNR= 70% SYS(21) MOD(6) FEC_AUTO INV_OFF PILAUTO ROL_AUTO

RESULT: freq=11229.090H Symrate=44984 Stream=255 pls_mode= 3:262143 ISI list: 0
SIG=-42.48dB SIG= 58% CNR=14.90dB CNR= 74% SYS(21) MOD(6) FEC_AUTO INV_OFF PILAUTO ROL_AUTO

RESULT: freq=11288.914H Symrate=44995 Stream=255 pls_mode= 3:262143 ISI list: 0
SIG=-41.11dB SIG= 59% CNR=13.40dB CNR= 67% SYS(21) MOD(6) FEC_AUTO INV_OFF PILAUTO ROL_AUTO

RESULT: freq=11348.932H Symrate=44995 Stream=255 pls_mode= 3:262143 ISI list: 0
SIG=-43.46dB SIG= 57% CNR=14.00dB CNR= 70% SYS(21) MOD(6) FEC_AUTO INV_OFF PILAUTO ROL_AUTO

RESULT: freq=11386.080H Symrate=5831 Stream=255 pls_mode= 3:262143 ISI list: 0
SIG=-47.40dB SIG= 53% CNR=3.70dB CNR= 18% SYS(21) MOD(6) FEC_AUTO INV_OFF PILAUTO ROL_AUTO
 

satesco

Specialist Contributor
Joined
Aug 10, 2008
Messages
1,894
Reaction score
2,650
Points
113
My Satellite Setup
seven antennas,one toroidal with 16 lnbs,
6 satellite receivers,2 Meters,9 PC cards(tbs6983,6903,6590,6504,6522,6209,2603,6909X,6903X,6902se,skystar hd2),2 tuners usb-tbs5927 & tbs5925,Skystar HD.
Satellite reception between 100.5E-50.0W
My Location
Romania
Would it be also interesting to know to what extent your blindscan would be able to find high symbol rates of over 65,000 Ks with 6903X/6909X?Crazyscan or IQmonitor have locked such symbol rates on Windows 10.I found symbol rates over 68500 Ks at 74.9E.
On the other hand,for me it will really be a challenge to install your kernel and the functions of blindscan and spectrum. I hope you do a tutorial for installing your application.
Thanks in advance.
 

Attachments

  • 74.5E_11800-12500 H_2020-08-02_14-51-01.png
    74.5E_11800-12500 H_2020-08-02_14-51-01.png
    63.4 KB · Views: 17
  • 75°0E_2008021819_11930-12480 H.jpg
    75°0E_2008021819_11930-12480 H.jpg
    181.4 KB · Views: 18

Llew

cerca trova...
Staff member
Joined
Jan 1, 2000
Messages
16,226
Reaction score
4,197
Points
113
Age
81
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
Unfortunately my PC with the TBS6903 that I was using for this application is out of order at present. I was about to scan a spectrum too.

I will now be using my laptop with a TBS5927. It's Windows 8 only at present, so I will be loading it with a Linux OS ASAP.

I don't have TBS6903X/6909X cards, so I won't be able to comment on their performance with this app.
 

Llew

cerca trova...
Staff member
Joined
Jan 1, 2000
Messages
16,226
Reaction score
4,197
Points
113
Age
81
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'll be using my laptop with a clean Linux install in due course, but meanwhile I have my PC working now with Ubuntu. This has a TBS6903 installed.

On trying a spectrum scan on 28.2E I have some errors. (DVBlast finds the TBS6903 and scans TPs OK).

Would you please check my output and possibly advise on the errors?

Also, what is c in the command line? I don't see it in the available options.

Thanks in anticipation.

Code:
david@david-desktop:~/deepthought/blindscan-master/build/src$ neumo-blindscan  -c spectrum

adapter=0
frontend=0
start-freq=10700000
end-freq=12750000
step-freq=6000
pol=3
pls_codes[5]={ 4202496, 2048, 98139136, 134216704, 80015360, }
diseqc=UC: U=0 C=0
FE_GET_EXTENDED_INFO: Unknown error 524FE_SET_PROPERTY clear failed: Bad file descriptor
EPOLL Failed: err=Invalid argument
neumo-blindscan: /home/david/deepthought/blindscan-master/src/neumo-blindscan.cc:1453: int main_spectrum(int): Assertion `s==0' failed.
Aborted (core dumped)
david@david-desktop:~/deepthought/blindscan-master/build/src$ neumo-blindscan c spectrum -U3 -pH -a0 --spectrum-method sweep --spectral-resolution 500
The following arguments were not expected: spectrum c
Run with --help for more information.

david@david-desktop:~/deepthought/blindscan-master/build/src$ neumo-blindscan -c spectrum -U3 -pH -a0 --spectrum-method sweep --spectral-resolution 500

adapter=0
frontend=0
start-freq=10700000
end-freq=12750000
step-freq=6000
pol=1
pls_codes[5]={ 4202496, 2048, 98139136, 134216704, 80015360, }
diseqc=UC: U=3 C=0
FE_GET_EXTENDED_INFO: Unknown error 524FE_SET_PROPERTY clear failed: Bad file descriptor
EPOLL Failed: err=Invalid argument
neumo-blindscan: /home/david/deepthought/blindscan-master/src/neumo-blindscan.cc:1453: int main_spectrum(int): Assertion `s==0' failed.
Aborted (core dumped)
david@david-desktop:~/deepthought/blindscan-master/build/src$
.
 

deeptho

Specialist Contributor
Joined
Apr 7, 2006
Messages
697
Reaction score
420
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
FE_GET_EXTENDED_INFO: Unknown error 524FE_SET_PROPERTY clear failed: Bad
That sounds like you are using the wrong adapter. Does /dev/dvb/adapter0/frontend0 exist?
It could also be that you are using the wrong driver...

The code should check for problems like these, but it doesn't always
 

Llew

cerca trova...
Staff member
Joined
Jan 1, 2000
Messages
16,226
Reaction score
4,197
Points
113
Age
81
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
Adapters OK.
Code:
david@david-desktop:~$ dmesg | grep frontend
[    8.530203] SAA716x Budget 0000:01:00.0: DVB: registering adapter 1 frontend 0 (TurboSight TBS 6220 DVB-T/T2/C)...
[    8.731213] TBSECP3 driver 0000:02:00.0: DVB: registering adapter 0 frontend 0 (TurboSight TBS 6903 DVB-S/S2 )...
[    8.852932] TBSECP3 driver 0000:02:00.0: DVB: registering adapter 2 frontend 0 (TurboSight TBS 6903 DVB-S/S2 )...
david@david-desktop:~$

As you say, could be a driver issue. Tomorrow, I install the app on my laptop with new Linux OS.
 

deeptho

Specialist Contributor
Joined
Apr 7, 2006
Messages
697
Reaction score
420
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
Adapters OK.
Code:
david@david-desktop:~$ dmesg | grep frontend
[    8.530203] SAA716x Budget 0000:01:00.0: DVB: registering adapter 1 frontend 0 (TurboSight TBS 6220 DVB-T/T2/C)...
[    8.731213] TBSECP3 driver 0000:02:00.0: DVB: registering adapter 0 frontend 0 (TurboSight TBS 6903 DVB-S/S2 )...
[    8.852932] TBSECP3 driver 0000:02:00.0: DVB: registering adapter 2 frontend 0 (TurboSight TBS 6903 DVB-S/S2 )...
david@david-desktop:~$

As you say, could be a driver issue. Tomorrow, I install the app on my laptop with new Linux OS.
ALways make sure to use corresponding kernel and user space programs, e.g., most recent version of both.
 

Llew

cerca trova...
Staff member
Joined
Jan 1, 2000
Messages
16,226
Reaction score
4,197
Points
113
Age
81
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
ALways make sure to use corresponding kernel and user space programs, e.g., most recent version of both.
Noted. I'm always ready to learn (or recall half-forgotten stuff :oops: )
 

Llew

cerca trova...
Staff member
Joined
Jan 1, 2000
Messages
16,226
Reaction score
4,197
Points
113
Age
81
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

Hi deeptho, My building of the kernel has come to a halt, seemingly stopping where it applies patches to the existing kernel, 5.4.0-26-generic.

I've no idea what hunks are, too deep down in Linux language for me.

I'm using Linux Mint 20 on an HP Envy laptop. Any ideas what the problem could be?

TIA.

Code:
david@david-HP-ENVY-dv6-Notebook-PC:~/deeptho-tbsdriver/media_build$ sudo -s
[sudo] password for david:          
root@david-HP-ENVY-dv6-Notebook-PC:/home/david/deeptho-tbsdriver/media_build# make dir DIR=../media
make -C linux/ dir DIR="../../media"
make[1]: Entering directory '/home/david/deeptho-tbsdriver/media_build/linux'
rm -rf drivers include sound mm .patches_applied .linked_dir .git_log.md5 git_log kernel_version.h
Searching in ../../media/Makefile for kernel version.
./use_dir.pl ../../media
sync file: include/uapi/linux/uvcvideo.h
sync file: include/trace/events/pwc.h
sync file: include/uapi/linux/smiapp.h
sync file: include/linux/of_graph.h
sync file: include/uapi/linux/v4l2-common.h
sync file: include/uapi/linux/cec.h
sync file: include/trace/events/v4l2.h
sync file: include/uapi/linux/max2175.h
sync file: include/uapi/linux/ivtvfb.h
sync file: include/uapi/linux/v4l2-mediabus.h
sync file: include/uapi/linux/media.h
sync file: include/linux/via-core.h
sync file: include/linux/pci_ids.h
sync file: include/linux/overflow.h
sync file: include/uapi/linux/media-bus-format.h
sync file: include/trace/events/vb2.h
sync file: include/linux/dma/xilinx_dma.h
sync file: include/uapi/linux/cec-funcs.h
sync file: include/linux/dma-fence.h
sync file: include/linux/dma-buf.h
sync file: include/uapi/linux/v4l2-dv-timings.h
sync file: include/uapi/linux/xilinx-v4l2-controls.h
sync file: include/linux/mmc/sdio_ids.h
sync file: include/uapi/linux/meye.h
sync file: include/uapi/linux/videodev2.h
sync file: include/uapi/linux/v4l2-subdev.h
sync file: include/linux/kconfig.h
sync file: sound/pci/bt87x.c
sync file: include/sound/aci.h
sync file: include/uapi/linux/v4l2-controls.h
sync file: include/linux/ti_wilink_st.h
sync file: include/uapi/linux/ivtv.h
sync file: include/linux/hdmi.h
sync file: include/uapi/linux/lirc.h
sync file: include/linux/fixp-arith.h
sync file: include/misc/altera.h
sync file: include/uapi/linux/usb/video.h
sync dir: drivers/staging/media/
sync dir: include/uapi/linux/dvb/
sync dir: drivers/media/
sync dir: drivers/misc/altera-stapl/
sync dir: include/linux/platform_data/media/
sync dir: include/media/
sync dir: include/dt-bindings/media/
make[1]: Leaving directory '/home/david/deeptho-tbsdriver/media_build/linux'
root@david-HP-ENVY-dv6-Notebook-PC:/home/david/deeptho-tbsdriver/media_build# make allyesconfig
make -C /home/david/deeptho-tbsdriver/media_build/v4l allyesconfig
make[1]: Entering directory '/home/david/deeptho-tbsdriver/media_build/v4l'
make[2]: Entering directory '/home/david/deeptho-tbsdriver/media_build/linux'
Syncing with dir ../../media
Applying patches for kernel 5.4.0-26-generic
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/v5.7_mmap_read_lock.patch
1 out of 1 hunk FAILED
1 out of 1 hunk FAILED
1 out of 1 hunk FAILED
2 out of 2 hunks FAILED
2 out of 2 hunks FAILED
3 out of 3 hunks FAILED
1 out of 1 hunk FAILED
The text leading up to this was:
--------------------------
|diff --git a/drivers/staging/media/atomisp/pci/hmm/hmm_bo.c b/drivers/staging/media/atomisp/pci/hmm/hmm_bo.c
|index 4fb9bfdd2f4c..76d6e52b7af9 100644
|--- a/drivers/staging/media/atomisp/pci/hmm/hmm_bo.c
|+++ b/drivers/staging/media/atomisp/pci/hmm/hmm_bo.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
make[2]: *** [Makefile:133: apply_patches] Error 1
make[2]: Leaving directory '/home/david/deeptho-tbsdriver/media_build/linux'
make[1]: *** [Makefile:387: allyesconfig] Error 2
make[1]: Leaving directory '/home/david/deeptho-tbsdriver/media_build/v4l'
make: *** [Makefile:26: allyesconfig] Error 2
root@david-HP-ENVY-dv6-Notebook-PC:/home/david/deeptho-tbsdriver/media_build#
 
Top