Build for VU+ Duo2

Support forum for minisatip
Post Reply
dorinilut
Posts: 10
Joined: Tue Aug 28, 2018 8:10 am

Build for VU+ Duo2

Post by dorinilut »

HI all,

Looking for some help with the following situation. I have a VU+ Duo2 which I would like to use as a SAT-IP tuner for my tvheadend. The reasoning for that would be that I have the official CI+ CAM from the tv provider in Romania. I tried using the binaries in the first post, but the gigablue one is not built with CI support. Therefore I tried building this on my own. I use an Ubuntu machine. When doing the configure I get the following:

Code: Select all

dorin@dorin:~/minisatip$ sudo ./configure CC=/opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gcc --host=mips   --with-mcli=/opt/cross/mipsel-tuxbox-linux-gnu/lib  --with-xml2=/opt/cross/mipsel-tuxbox-linux-gnu/include --enable-dvbcsa
[sudo] password for dorin:
checking for mips-gcc... /opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gcc accepts -g... yes
checking for /opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gcc option to accept ISO C89... none needed
checking for main in -lrt... yes
checking how to run the C preprocessor... /opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking for int16_t... yes
checking for int64_t... yes
checking for int8_t... yes
checking for size_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... no
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... no
checking for bzero... yes
checking for clock_gettime... yes
checking for dup2... yes
checking for gethostbyname... yes
checking for gettimeofday... yes
checking for inet_ntoa... yes
checking for memset... yes
checking for munmap... yes
checking for socket... yes
checking for strchr... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strstr... yes
configure:  == Checking LINUX DVB ==
checking linux/dvb/frontend.h usability... yes
checking linux/dvb/frontend.h presence... yes
checking for linux/dvb/frontend.h... yes
configure:  == Checking DVBEN50221 ==
checking libdvben50221/en50221_app_dvb.h usability... yes
checking libdvben50221/en50221_app_dvb.h presence... yes
checking for libdvben50221/en50221_app_dvb.h... yes
configure:  == Checking OpenSSL ==
checking openssl/aes.h usability... yes
checking openssl/aes.h presence... yes
checking for openssl/aes.h... yes
configure:  == Checking Embedded ==
checking for backtrace... yes
configure:  == Checking DVBCSA ==
checking dvbcsa/dvbcsa.h usability... yes
checking dvbcsa/dvbcsa.h presence... yes
checking for dvbcsa/dvbcsa.h... yes
configure:  == Checking NETCVCLIENT ==
checking netceiver.h usability... no
checking netceiver.h presence... no
checking for netceiver.h... no
configure: creating ./config.status
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating Makefile

minisatip configuration


Linux DVB:				  enabled
Common Interface (needs DVBEN50221):	  enabled
OpenSSL (AES as part of DVBAPI):	  enabled
Embedded system:			  disabled
DVBCSA (needs libdvbcsa):		  enabled
Netceiver support:			  disabled
SatIP Client:				  enabled
Static:					  disabled
dvbapi:					  enabled
axe:					  disabled
enigma:					  disabled
This kind of tells me that it should build with CI support. Then the make:

Code: Select all

dorin@dorin:~/minisatip$ make
make -C src
make[1]: Entering directory '/home/dorin/minisatip/src'
/opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gcc -Wall -Wno-switch -ggdb -fPIC   -DDISABLE_NETCVCLIENT -DDISABLE_DDCI -DDISABLE_T2MI  -c minisatip.c -o ../build/minisatip.o
/opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gcc -Wall -Wno-switch -ggdb -fPIC   -DDISABLE_NETCVCLIENT -DDISABLE_DDCI -DDISABLE_T2MI  -c socketworks.c -o ../build/socketworks.o
/opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gcc -Wall -Wno-switch -ggdb -fPIC   -DDISABLE_NETCVCLIENT -DDISABLE_DDCI -DDISABLE_T2MI  -c stream.c -o ../build/stream.o
/opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gcc -Wall -Wno-switch -ggdb -fPIC   -DDISABLE_NETCVCLIENT -DDISABLE_DDCI -DDISABLE_T2MI  -c adapter.c -o ../build/adapter.o
/opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gcc -Wall -Wno-switch -ggdb -fPIC   -DDISABLE_NETCVCLIENT -DDISABLE_DDCI -DDISABLE_T2MI  -c utils.c -o ../build/utils.o
utils.c: In function 'print_trace':
utils.c:473:2: warning: implicit declaration of function 'backtrace' [-Wimplicit-function-declaration]
  size = backtrace(array, 10);
  ^
/opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gcc -Wall -Wno-switch -ggdb -fPIC   -DDISABLE_NETCVCLIENT -DDISABLE_DDCI -DDISABLE_T2MI  -c aes.c -o ../build/aes.o
/opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gcc -Wall -Wno-switch -ggdb -fPIC   -DDISABLE_NETCVCLIENT -DDISABLE_DDCI -DDISABLE_T2MI  -c csa.c -o ../build/csa.o
/opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gcc -Wall -Wno-switch -ggdb -fPIC   -DDISABLE_NETCVCLIENT -DDISABLE_DDCI -DDISABLE_T2MI  -c dvbapi.c -o ../build/dvbapi.o
/opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gcc -Wall -Wno-switch -ggdb -fPIC   -DDISABLE_NETCVCLIENT -DDISABLE_DDCI -DDISABLE_T2MI  -c ca.c -o ../build/ca.o
/opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gcc -Wall -Wno-switch -ggdb -fPIC   -DDISABLE_NETCVCLIENT -DDISABLE_DDCI -DDISABLE_T2MI  -c pmt.c -o ../build/pmt.o
/opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gcc -Wall -Wno-switch -ggdb -fPIC   -DDISABLE_NETCVCLIENT -DDISABLE_DDCI -DDISABLE_T2MI  -c tables.c -o ../build/tables.o
/opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gcc -Wall -Wno-switch -ggdb -fPIC   -DDISABLE_NETCVCLIENT -DDISABLE_DDCI -DDISABLE_T2MI  -c satipc.c -o ../build/satipc.o
/opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gcc -Wall -Wno-switch -ggdb -fPIC   -DDISABLE_NETCVCLIENT -DDISABLE_DDCI -DDISABLE_T2MI  -c dvb.c -o ../build/dvb.o
/opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gcc -Wall -Wno-switch -ggdb -fPIC   -DDISABLE_NETCVCLIENT -DDISABLE_DDCI -DDISABLE_T2MI  -o ../minisatip  ../build/minisatip.o  ../build/socketworks.o  ../build/stream.o  ../build/adapter.o  ../build/utils.o  ../build/aes.o  ../build/csa.o  ../build/dvbapi.o  ../build/ca.o  ../build/pmt.o  ../build/tables.o  ../build/satipc.o  ../build/dvb.o  -lpthread -lrt -lcrypto -ldvbcsa -ldvben50221 -ldvbapi -lucsi
make[1]: Leaving directory '/home/dorin/minisatip/src'
Now when running this on the Duo2 i get the following:

Code: Select all

root@vuduo2:~# init 4
root@vuduo2:~#
root@vuduo2:~#
root@vuduo2:~#
root@vuduo2:~# minisatip -f -l -l -l
[01/07 08:09:29.287 main]: The LOG option has changed, please run ./minisatip -h
minisatip: option requires an argument -- 'l'
[01/07 08:09:29.291 main]: minisatip version 0.7.13, compiled with s2api version: 0504
[01/07 08:09:29.292 main]: Built with dvbcsa
[01/07 08:09:29.292 main]: Built without CI
[01/07 08:09:29.292 main]: Built with dvbapi
[01/07 08:09:29.293 main]: Built with AES (OpenSSL)
[01/07 08:09:29.293 main]: Built with tables processing
[01/07 08:09:29.293 main]: Built with pmt processing
[01/07 08:09:29.293 main]: Built with satip client
[01/07 08:09:29.293 main]: Built with linux dvb client
[01/07 08:09:29.293 main]: Built with backtrace
[01/07 08:09:29.293 main]: Built without netceiver
[01/07 08:09:29.297 main]: New UDP socket 3 bound to 0.0.0.0:1900
[01/07 08:09:29.298 main]: setting multicast for 239.255.255.250
[01/07 08:09:29.298 main]: New UDP socket 4 bound to 239.255.255.250:1900
[01/07 08:09:29.299 main]: Mutex init 0x5cd268
[01/07 08:09:29.299 main]: Mutex init 0x5ef088
[01/07 08:09:29.300 main]: sockets_add: handle 3 (type 0) returning socket index 0 [0.0.0.0:0] read: 0x4224ec
[01/07 08:09:29.301 main]: Mutex init 0x5f0b60
[01/07 08:09:29.302 main]: sockets_add: handle 4 (type 0) returning socket index 1 [0.0.0.0:0] read: 0x4224ec
[01/07 08:09:29.303 main]: Mutex init 0x5f0c60
[01/07 08:09:29.303 main]: sockets_add: handle 5 (type 2) returning socket index 2 [0.0.0.0:0] read: 0x4221c4
[01/07 08:09:29.303 main]: Mutex init 0x5f0d60
[01/07 08:09:29.304 main]: sockets_add: handle 6 (type 2) returning socket index 3 [0.0.0.0:0] read: 0x4221c4
[01/07 08:09:29.304 main]: Mutex init 0x5f0e60
[01/07 08:09:29.304 main]: sockets_add: handle -2 (type 0) returning socket index 4 [0.0.0.0:0] read: 0x4224ec
[01/07 08:09:29.305 main]: set_socket_thread: thread 777ef300 for sockets 4
[01/07 08:09:29.305 signal]: Starting select_and_execute on thread ID 777ef300, thread_name signal
[01/07 08:09:29.306 main]: Mutex init 0x5f0ff8
[01/07 08:09:29.306 main]: sockets_add: handle -2 (type 0) returning socket index 5 [0.0.0.0:0] read: 0x4224ec
[01/07 08:09:29.306 main]: set_socket_thread: thread 777ef300 for sockets 5
[01/07 08:09:29.307 main]: Mutex init 0x5cf0e0
[01/07 08:09:29.307 main]: Mutex init 0x5cf120
[01/07 08:09:29.347 main]: Mutex init 0x5d9620
[01/07 08:09:29.348 main]: Mutex init 0x5fd728
[01/07 08:09:29.348 main]: sockets_add: handle -2 (type 0) returning socket index 6 [0.0.0.0:0] read: 0x4224ec
[01/07 08:09:29.348 main]: Mutex init 0x5ce3f0
[01/07 08:09:29.349 main]: starting init_all_hw 0
[01/07 08:09:29.350 main]: Mutex init 0x5cda28
[01/07 08:09:29.383 main]: Mutex init 0x5fd828
[01/07 08:09:29.384 main]: trying to open [0] adapter 0 and frontend 0
[01/07 08:09:29.385 main]: opened DVB adapter 0 fe:7 dvr:8
[01/07 08:09:29.387 main]: DVR buffer set to 5775360 bytes
[01/07 08:09:29.388 main]: Set DMX_SET_SOURCE for adapter 0 to 0
[01/07 08:09:29.389 main]: deleting pids on adapter 0, sid -1, pids=NULL
[01/07 08:09:29.390 main]: Detected adapter 0 handle 7 DVB Card Name: Vuplus FE
[01/07 08:09:29.391 main]: Detected delivery system for adapter 0: dvbc [1]
[01/07 08:09:29.391 main]: Detected delivery system for adapter 0: dvbcc [18]
[01/07 08:09:29.391 main]: Mutex init 0x611108
[01/07 08:09:29.392 main]: sockets_add: handle 8 (type 5) returning socket index 7 [0.0.0.0:0] read: 0x4223f4
[01/07 08:09:29.392 main]: set_socket_thread: thread 76dff300 for sockets 7
[01/07 08:09:29.393 AD0]: Starting select_and_execute on thread ID 76dff300, thread_name AD0
[01/07 08:09:29.394 main]: done opening adapter 0 delivery systems: dvbc dvbcc undefined undefined
[01/07 08:09:29.395 main]: FE 1 mapped to Adapter 0, sys dvbc
[01/07 08:09:29.395 main]: Mutex init 0x5fe790
[01/07 08:09:29.395 main]: trying to open [1] adapter 0 and frontend 1
[01/07 08:09:29.396 main]: opened DVB adapter 1 fe:9 dvr:10
[01/07 08:09:29.397 main]: DVR buffer set to 5775360 bytes
[01/07 08:09:29.398 main]: Set DMX_SET_SOURCE for adapter 1 to 1
[01/07 08:09:29.398 main]: deleting pids on adapter 1, sid -1, pids=NULL
[01/07 08:09:29.398 main]: Detected adapter 1 handle 9 DVB Card Name: Vuplus FE
[01/07 08:09:29.398 main]: Detected delivery system for adapter 1: dvbc [1]
[01/07 08:09:29.398 main]: Detected delivery system for adapter 1: dvbcc [18]
[01/07 08:09:29.399 main]: Mutex init 0x622cb0
[01/07 08:09:29.399 main]: sockets_add: handle 10 (type 5) returning socket index 8 [0.0.0.0:0] read: 0x4223f4
[01/07 08:09:29.399 main]: set_socket_thread: thread 763ff300 for sockets 8
[01/07 08:09:29.399 main]: done opening adapter 1 delivery systems: dvbc dvbcc undefined undefined
[01/07 08:09:29.399 main]: FE 1 mapped to Adapter 0, sys dvbc
[01/07 08:09:29.400 main]: FE 2 mapped to Adapter 1, sys dvbc
[01/07 08:09:29.400 main]: done init_hw 1
[01/07 08:09:29.400 main]: Initializing with 2 devices
[01/07 08:09:29.400 main]: Starting select_and_execute on thread ID 779f4000, thread_name main
[01/07 08:09:29.401 AD1]: Starting select_and_execute on thread ID 763ff300, thread_name AD1
[01/07 08:09:34.733 main]: Mutex init 0x622e48
[01/07 08:09:34.733 main]: sockets_add: handle 11 (type 1) returning socket index 9 [192.168.1.168:43814] read: 0x4223f4
[01/07 08:09:34.733 main]: read HTTP from 11 sid: -1:
[01/07 08:09:34.733 main]: GET /desc.xml HTTP/1.1
Host: 192.168.1.89:8080
User-Agent: TVHeadend/4.3-1800~gdcc50db45
Connection: close


My questions:

1. Am I doing something wrong? I made sure to also have the libraries in proper place, but maybe I am missing something.
2. I know that there are some certificate files, that I downloaded from the CI+ implementation thread. I am unsure as to where to place those. On the other hand I saw in the VTi image I am using there are cert files for the Digi SmartCAM.
3. Taking into account this a dual tuner DVB-C box...what would be the best options to start with as parameters. Tvheadend finds minisatip, but when scanning I get all fails on all muxes.

Many thanks for your help here.
cata
Site Admin
Posts: 768
Joined: Tue May 12, 2015 1:01 am

Re: Build for VU+ Duo2

Post by cata »

Minisatip cannot use directly rhe CI on an enigma STB. You can however follow this tutorial: https://www.opena.tv/openatv-6-2-image- ... -test.html

Thia will work only if you can watch encrypted channels that are decrypted by your CI+ CAM in enigma2.
dorinilut
Posts: 10
Joined: Tue Aug 28, 2018 8:10 am

Re: Build for VU+ Duo2

Post by dorinilut »

I can watch encrypted channels without any issues. Thank you for the pointer. I will try that.

THen my only other question would be what are the best arguments to start minisatip with for a dual DVB-C tuner scenario.
dorinilut
Posts: 10
Joined: Tue Aug 28, 2018 8:10 am

Re: Build for VU+ Duo2

Post by dorinilut »

Quick update and question. It is working with the package from openatv. The only issue are encrypted channels. I can get clear ones...but the encrypted are not being decrypted at the source via CI. Is there something specific I need to add when running minisatip to get the decryption going.
cata
Site Admin
Posts: 768
Joined: Tue May 12, 2015 1:01 am

Re: Build for VU+ Duo2

Post by cata »

Not really, but there is a problem while tuning. In tvh you need to check 'send full play cmd' in the satip adapter settings.
Post Reply