Minisatip Server on VU DUO2 with reel netceiver support

Support forum for minisatip
cata
Site Admin
Posts: 768
Joined: Tue May 12, 2015 1:01 am

Re: Minisatip Server on VU DUO2 with reel netceiver support

Post by cata »

ucsi and dvben50221 are dependencies for DVBCA, you can just disable it from configure or makefile.

Make sure libmcli (from the cross complier dirs) is compiled for mips and not x86...
vento
Posts: 41
Joined: Wed Mar 09, 2016 4:52 pm

Re: Minisatip Server on VU DUO2 with reel netceiver support

Post by vento »

Hi Cata,
well im now trying to compile all libraries needed by minisatip for Netceiver support first (LIBMCLI) for MIPS (VU). As I told you crosscompilation works but not the netceiver support. So what i did: downloaded the sources of the vdr-mcli-plugin, the toolchain as well (UBUNTU 14.04):

Code: Select all

reel@BM2LTSR66MSvex:/opt/vdr-plugin-mcli-master/mcast/client$ make CROSS=$TOOLCHAIN/bin/mipsel-tuxbox-linux-gnu-
cc -c  -fPIC -Wall -I../common -DCLIENT -DLIBRARY -D_REENTRANT -D_GNU_SOURCE -DAPI_SOCK  -I../dvbloop `xml2-config --cflags` -O3 -o mld_common.o mld_common.c
mld_common.c:1:1: error: expected identifier or ‘(’ before ‘.’ token
 ../common/mld_common.c
 ^
make: *** [mld_common.o] Fehler 1
reel@BM2LTSR66MSvex:/opt/vdr-plugin-mcli-master/mcast/client$ make CROSS=$TOOLCHAIN/bin/mipsel-tuxbox-linux-gnu-
cc -c  -fPIC -Wall -I../common -DCLIENT -DLIBRARY -D_REENTRANT -D_GNU_SOURCE -DAPI_SOCK  -I../dvbloop `xml2-config --cflags` -O3 -o mld_common.o mld_common.c
mld_common.c:1:1: error: expected identifier or ‘(’ before ‘.’ token
 ../common/mld_common.c
 ^
make: *** [mld_common.o] Fehler 1
Is this an issue of LIBXML? As far as i know libxml exists also for MIPSEL Architecture, just copied the files to the directorys of the toolchain (BIN, INCLUDE, LIB and Shared)

Also tried to compile LIBMCLI for minisatip directly on the VU, but BUSYBOX does not have all functions. Could install make, but it fails asking for the Crosscompiler. Searched for a package for VU but didnt find somethig that would fit.

Code: Select all

root@vusolo2:/opt/vdr-plugin-mcli/mcast/client# make
make: cc: Command not found
make: cc: Command not found
make: cc: Command not found
make: cc: Command not found
make libmcli
make[1]: Entering directory '/opt/vdr-plugin-mcli/mcast/client'
make[1]: cc: Command not found
make[1]: cc: Command not found
make[1]: cc: Command not found
make[1]: cc: Command not found
cc -c  -fPIC -Wall -I../common -DCLIENT -DLIBRARY -D_REENTRANT -D_GNU_SOURCE -DAPI_SOCK  -I../dvbloop  -O3 -o mld_common.o mld_common.c
make[1]: cc: Command not found
Makefile:204: recipe for target 'mld_common.o' failed
make[1]: *** [mld_common.o] Error 127
make[1]: Leaving directory '/opt/vdr-plugin-mcli/mcast/client'
Makefile:104: recipe for target 'all' failed
make: *** [all] Error 2
Kindly
cata
Site Admin
Posts: 768
Joined: Tue May 12, 2015 1:01 am

Re: Minisatip Server on VU DUO2 with reel netceiver support

Post by cata »

Hi,

cc means is compiled with the host CC not with the toolchain...

Most likely you need to provide the toolchain in the configure command for libxml
Thanks
vento
Posts: 41
Joined: Wed Mar 09, 2016 4:52 pm

Re: Minisatip Server on VU DUO2 with reel netceiver support

Post by vento »

Hi Cata,
well .config is now running without problems, but i had to deactivate CI Support. I have got a libmcli.so compiled for mips from here http://www.reelbox4you.tv/wbb2/thread.p ... post114000 and the libxml2.so from the VU box. Copied them into the lib directory of the toolchain. Crosscompilation is working. Now when I issue the comand makefile im getting this message:
root@BM2LTSR66MSvex:/opt/minisatip# make
/opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gcc -ggdb -fPIC -I. -I//mcast/client -I//mcast/common -I/opt/cross/mipsel-tuxbox-linux-gnu/inclu de -DDISABLE_DVBCA -o minisatip minisatip.o socketworks.o stream.o adapter.o uti ls.o aes.o csa.o dvbapi.o tables.o satipc.o netceiver.o dvb.o -lpthread -lrt -l mcli -lxml2 -lcrypto -ldvbcsa -ldvbcsa
/opt/cross/mipsel-tuxbox-linux-gnu/bin/../lib/gcc/mipsel-tuxbox-linux-gnu/4.8.1/ ../../../../mipsel-tuxbox-linux-gnu/bin/ld: warning: libz.so.1, needed by /opt/c ross/mipsel-tuxbox-linux-gnu/bin/../lib/gcc/mipsel-tuxbox-linux-gnu/4.8.1/../../ ../../mipsel-tuxbox-linux-gnu/lib/libmcli.so, not found (try using -rpath or -rp ath-link)
/opt/cross/mipsel-tuxbox-linux-gnu/bin/../lib/gcc/mipsel-tuxbox-linux-gnu/4.8.1/ ../../../../mipsel-tuxbox-linux-gnu/lib/libmcli.so: undefined reference to `infl ateEnd'
/opt/cross/mipsel-tuxbox-linux-gnu/bin/../lib/gcc/mipsel-tuxbox-linux-gnu/4.8.1/ ../../../../mipsel-tuxbox-linux-gnu/lib/libxml2.so: undefined reference to `gzdi rect@ZLIB_1.2.2.3'
/opt/cross/mipsel-tuxbox-linux-gnu/bin/../lib/gcc/mipsel-tuxbox-linux-gnu/4.8.1/ ../../../../mipsel-tuxbox-linux-gnu/lib/libxml2.so: undefined reference to `gzcl ose'
/opt/cross/mipsel-tuxbox-linux-gnu/bin/../lib/gcc/mipsel-tuxbox-linux-gnu/4.8.1/ ../../../../mipsel-tuxbox-linux-gnu/lib/libmcli.so: undefined reference to `defl ate'
/opt/cross/mipsel-tuxbox-linux-gnu/bin/../lib/gcc/mipsel-tuxbox-linux-gnu/4.8.1/ ../../../../mipsel-tuxbox-linux-gnu/lib/libmcli.so: undefined reference to `infl ateInit2_'
/opt/cross/mipsel-tuxbox-linux-gnu/bin/../lib/gcc/mipsel-tuxbox-linux-gnu/4.8.1/ ../../../../mipsel-tuxbox-linux-gnu/lib/libmcli.so: undefined reference to `infl ate'
/opt/cross/mipsel-tuxbox-linux-gnu/bin/../lib/gcc/mipsel-tuxbox-linux-gnu/4.8.1/ ../../../../mipsel-tuxbox-linux-gnu/lib/libxml2.so: undefined reference to `gzwr ite'
/opt/cross/mipsel-tuxbox-linux-gnu/bin/../lib/gcc/mipsel-tuxbox-linux-gnu/4.8.1/ ../../../../mipsel-tuxbox-linux-gnu/lib/libmcli.so: undefined reference to `crc3 2'
/opt/cross/mipsel-tuxbox-linux-gnu/bin/../lib/gcc/mipsel-tuxbox-linux-gnu/4.8.1/ ../../../../mipsel-tuxbox-linux-gnu/lib/libmcli.so: undefined reference to `defl ateEnd'
/opt/cross/mipsel-tuxbox-linux-gnu/bin/../lib/gcc/mipsel-tuxbox-linux-gnu/4.8.1/ ../../../../mipsel-tuxbox-linux-gnu/lib/libxml2.so: undefined reference to `gzdo pen'
/opt/cross/mipsel-tuxbox-linux-gnu/bin/../lib/gcc/mipsel-tuxbox-linux-gnu/4.8.1/ ../../../../mipsel-tuxbox-linux-gnu/lib/libmcli.so: undefined reference to `defl ateInit2_'
/opt/cross/mipsel-tuxbox-linux-gnu/bin/../lib/gcc/mipsel-tuxbox-linux-gnu/4.8.1/ ../../../../mipsel-tuxbox-linux-gnu/lib/libxml2.so: undefined reference to `gzop en64@ZLIB_1.2.3.3'
/opt/cross/mipsel-tuxbox-linux-gnu/bin/../lib/gcc/mipsel-tuxbox-linux-gnu/4.8.1/ ../../../../mipsel-tuxbox-linux-gnu/lib/libxml2.so: undefined reference to `gzre ad'
collect2: error: ld returned 1 exit status
make: *** [minisatip] Fehler 1

:( will keep trying!
cata
Site Admin
Posts: 768
Joined: Tue May 12, 2015 1:01 am

Re: Minisatip Server on VU DUO2 with reel netceiver support

Post by cata »

You are missing probably libz compiled for mips...
vento
Posts: 41
Joined: Wed Mar 09, 2016 4:52 pm

Re: Minisatip Server on VU DUO2 with reel netceiver support

Post by vento »

hi cata just tried to use this LIBZ https://packages.debian.org/jessie/zlib1g which should be compiled for MIPSEL still getting this error

Thanks
Vento

PS: Hi Cata could solve the problem, finally a minisatip with Netceiver support was compiled. May i upload the binaries after :D further testing?

UPDATE:

Code: Select all

root@BM2LTSR66MSvex:/opt/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
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: opt/cross/mipsel-tuxbox-linux-gnu/lib
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... yes
checking netceiver.h presence... yes
checking for netceiver.h... yes
configure: creating ./config.status
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:                        enabled
SatIP Client:                             enabled
Static:                                   disabled

root@BM2LTSR66MSvex:/opt/minisatip# make
/opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gcc -ggdb -fPIC  -I. -I//mcast/client -I//mcast/common -I/opt/cross/mipsel-tuxbox-linux-gnu/include -o minisatip minisatip.o socketworks.o stream.o adapter.o utils.o aes.o csa.o dvbapi.o ca.o tables.o satipc.o netceiver.o dvb.o -lpthread -lrt  -lmcli -lxml2 -lcrypto -ldvbcsa -ldvbcsa -ldvben50221 -ldvbapi -lucsi
root@BM2LTSR66MSvex:/opt/minisatip# file minisatip
minisatip: ELF 32-bit LSB  executable, MIPS, MIPS32 version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 3.2.48, not stripped
just moved the file minisatip to the VUPLUS SOLO2 Started it :

Code: Select all

root@vusolo2:~# minisatip
root@vusolo2:~# minisatip -f -l
[08/06 18:34:11.641 main]: minisatip version 0.5.50, compiled with s2api version: 0504
[08/06 18:34:11.642 main]: Built with dvbcsa
[08/06 18:34:11.642 main]: Built without CI
[08/06 18:34:11.642 main]: Built with dvbapi
[08/06 18:34:11.642 main]: Built with AES (OpenSSL)
[08/06 18:34:11.642 main]: Built with tables processing
[08/06 18:34:11.642 main]: Built with satip client
[08/06 18:34:11.642 main]: Built with linux dvb client
[08/06 18:34:11.642 main]: Built with backtrace
[08/06 18:34:11.643 main]: Built without netceiver
[08/06 18:34:11.645 main]: New UDP socket 3 bound to 0.0.0.0:1900
[08/06 18:34:11.646 main]: setting multicast for 239.255.255.250
[08/06 18:34:11.646 main]: New UDP socket 4 bound to 239.255.255.250:1900
[08/06 18:34:11.647 main]: tcp_listen: failed: bind() on address: ANY, port 554 : error Address already in use
[08/06 18:34:11.647 main]: RTSP: Could not listen on port 554
root@vusolo2:~#
But now it says it is not built with netceiver support? :roll:
Thanks
Vento
cata
Site Admin
Posts: 768
Joined: Tue May 12, 2015 1:01 am

Re: Minisatip Server on VU DUO2 with reel netceiver support

Post by cata »

Try to do a make clean....then make again and post the output.

Probably it's still disabled because of previous attempts.
cata
Site Admin
Posts: 768
Joined: Tue May 12, 2015 1:01 am

Re: Minisatip Server on VU DUO2 with reel netceiver support

Post by cata »

About posting the binary if u succeed, please open a new topic and I will make it sticky.

Thanks
vento
Posts: 41
Joined: Wed Mar 09, 2016 4:52 pm

Re: Minisatip Server on VU DUO2 with reel netceiver support

Post by vento »

Hi Cata,
minisatip server is running on vusolo2,
started with minisatip -f -l,
verify the files here (one with netceiver support the oder with netceiver and CI support)
https://www.vuplus-support.org/wbb4/ind ... ost1328573
Getting a nice picture und DVB Viewer, but not certain if the picture is coming from the netceiver or from the internal tuner, how can i verify that?
PS: signal ist definitvely from the internal Tuner with that start command, need Probably to install VLAN on busybox (VU) an then start ist with the right options.
Netceiver runs on vlan2 and vlan is not installed on the vu. Also have to handle parameter -o, i have oscam running on that box but not certain wich port since no port ist defined for dvabapi in oscam. Paytv works fine with the internal tuners.

Seem to be on the right way.

Kindly Vento
cata
Site Admin
Posts: 768
Joined: Tue May 12, 2015 1:01 am

Re: Minisatip Server on VU DUO2 with reel netceiver support

Post by cata »

Hi Vento,

If you upload the log we can figure out if it comes from reel.

Try minisatip with -l -l -l and send me the lig.

Thanks
Post Reply