Minisatip Server on VU DUO2 with reel netceiver support
Re: Minisatip Server on VU DUO2 with reel netceiver support
After compiling do "file minisatip", my guess you are using ubuntu's gcc instead of duo2 cross compiler.
Re: Minisatip Server on VU DUO2 with reel netceiver support
yes you seem to be right, here the output, file minisatip
are there other parameters for crosscompiling
Thanks
Code: Select all
minisatip: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=3def074e4034ee1438c3 8f24914f2d810e405be6, not stripped
Thanks
Re: Minisatip Server on VU DUO2 with reel netceiver support
Yep that is compiled for x86...you need to be compuled for mips.
Try replacing the compiler in CC line in Makefile
Try replacing the compiler in CC line in Makefile
Re: Minisatip Server on VU DUO2 with reel netceiver support
See https://github.com/catalinii/minisatip/ ... /README.md , "How to compile section" for cross compilation...
Thanks
Thanks
Re: Minisatip Server on VU DUO2 with reel netceiver support
Hi Cata,
just tried to get further with crosscompilation MINISATIP from an UBUNTU 14.04 32 Bit or 64 bit for a VUPLUS machine. I have read your help file which probably is only an example.
What I did: searched for OPENWRT. As non Root user and from root folder:
Well when it comes to menuconfig i don’t really know what I have to select under Target system)(selected Broadcom 43xx /57xx) but I guess this is wrong, since VUDUO uses a BCM 7424. Also searched for the mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2 but can’t find any similar option. Well I made Build but can’t find linaro_uClibc-0.9.33.2. Probably due to wrong selections in menuconfig. If Openwrt is the way what should I select in OPENWRT menuconfig?
Another approach was, since I’m stucked in openwrt,
I have tried to override CC from makefile in minisatip
OUTPUT
As you see I’m getting a 32 bit binary. Probably I need to select CC in minisatip ./configure to use the mipsel-tuxbox-linux-gnu-. Just don’t know how to. Sorry about all my questions. Thanks in advance
Vento
just tried to get further with crosscompilation MINISATIP from an UBUNTU 14.04 32 Bit or 64 bit for a VUPLUS machine. I have read your help file which probably is only an example.
Code: Select all
To cross compile, use something like (static compilation):
./configure --host=mips CC=/usr/src/./configure --host=mips --enable-static CC=/usr/src/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-gcc
Code: Select all
sudo apt-get update
sudo apt-get install git-core build-essential libssl-dev libncurses5-dev unzip gawk
sudo apt-get install subversion mercurial
git clone https://git.openwrt.org/openwrt.git
make menuconfig
Another approach was, since I’m stucked in openwrt,
Code: Select all
cd /tmp
sudo mkdir /opt/cross
wget -O Mipsel-Tuxbox-Pli4-gcc481-libc217-openssl101g-libusb109-pcsclite1811.tar.bz2 https://www.dropbox.com/s/3hczxy3u189kgfa/Mipsel-Tuxbox-Pli4-gcc481-libc217-openssl101g-libusb109-pcsclite1811.tar.bz2?dl=1
sudo tar xf Mipsel-Tuxbox-Pli4-gcc481-libc217-openssl101g-libusb109-pcsclite1811.tar.bz2 -C /opt/cross
Code: Select all
export TOOLCHAIN=/opt/cross/mipsel-tuxbox-linux-gnu
export PATH="$TOOLCHAIN/bin:$PATH"
Code: Select all
make CROSS=$TOOLCHAIN/bin/mipsel-tuxbox-linux-gnu-
Code: Select all
reel@BM2LTSR66MSvex:/tmp/minisatip$ sudo make CROSS=$TOOLCHAIN/bin/mipsel-tuxbox-linux-gnu-
[sudo] password for reel:
gcc -ggdb -fPIC -I. -I../vdr-mcli-plugin/mcast/client -I../vdr-mcli-plugin/mcast/common -I/usr/include/libxml2 -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 -lssl -ldvbcsa -ldvbcsa -ldvben50221 -ldvbapi -lucsi
reel@BM2LTSR66MSvex:/tmp/minisatip$ file minisatip
minisatip: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=2027da3c4960f473a275e091152325e7eb114207, not stripped
Vento
Re: Minisatip Server on VU DUO2 with reel netceiver support
Hi Cata I think im advancing, just adapted the paths to my toolchain and in Minisatip folder issued the command :
Then
Well Netceiver was disabled in Makefile. I edited Netceiver to 1, guess it means enabled in Makefile then:
Now im stucked in here
Wish you a nice weekend!
Vento
Code: Select all
./configure --host=mips CC=/media/hd/home/reel/openwrt/sdk/ ./configure --host=mips --enable-static CC=/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-gcc
Code: Select all
reel@BM2LTSR66MSvex:/tmp/minisatip$ sudo ./configure --host=mips CC=/media/hd/home/reel/openwrt/sdk/ ./configure --host=mips --enable-static CC=/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-gcc
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: ./configure
checking for mips-gcc... /media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-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 /media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-gcc accepts -g... yes
checking for /media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-gcc option to accept ISO C89... none needed
checking for main in -lrt... yes
checking how to run the C preprocessor... /media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-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... no
checking openssl/aes.h presence... no
checking for openssl/aes.h... no
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... 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 Makefile
minisatip configuration
Linux DVB: enabled
Common Interface (needs DVBEN50221): enabled
OpenSSL (AES as part of DVBAPI): disabled
Embedded system: disabled
DVBCSA (needs libdvbcsa): enabled
Netceiver support: disabled
Code: Select all
sudo make
/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-gcc -ggdb -fPIC -DDISABLE_DVBAES -o minisatip minisatip.o socketworks.o stream.o adapter.o utils.o csa.o dvbapi.o ca.o tables.o satipc.o netceiver.o dvb.o -lpthread -lrt -lmcli -lxml2 -l:libdvbcsa.a -l:libdvbcsa.a -l:libdvben50221.a -l:libdvbapi.a -l:libucsi.a
mips-openwrt-linux-gcc: warning: environment variable 'STAGING_DIR' not defined
mips-openwrt-linux-gcc: warning: environment variable 'STAGING_DIR' not defined
/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-openwrt-linux-uclibc/bin/ld: minisatip.o: Relocations in generic ELF (EM: 3)
/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-openwrt-linux-uclibc/bin/ld: minisatip.o: Relocations in generic ELF (EM: 3)
/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-openwrt-linux-uclibc/bin/ld: minisatip.o: Relocations in generic ELF (EM: 3)
/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-openwrt-linux-uclibc/bin/ld: minisatip.o: Relocations in generic ELF (EM: 3)
/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-openwrt-linux-uclibc/bin/ld: minisatip.o: Relocations in generic ELF (EM: 3)
/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-openwrt-linux-uclibc/bin/ld: minisatip.o: Relocations in generic ELF (EM: 3)
/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-openwrt-linux-uclibc/bin/ld: minisatip.o: Relocations in generic ELF (EM: 3)
/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-openwrt-linux-uclibc/bin/ld: minisatip.o: Relocations in generic ELF (EM: 3)
/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-openwrt-linux-uclibc/bin/ld: minisatip.o: Relocations in generic ELF (EM: 3)
minisatip.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [minisatip] Fehler 1
Wish you a nice weekend!
Vento
Re: Minisatip Server on VU DUO2 with reel netceiver support
./configure CC=<path to mips gcc> --host=mips
In minisatip directory
In minisatip directory
Re: Minisatip Server on VU DUO2 with reel netceiver support
Hi,
made in minisatip directory
results in a MAKEFILE without Netceiver /DVBAPI: i changed this to 1 in MAKEFILE later.
Then: make or make CROSS=$TOOLCHAIN/bin/mips-openwrt-linux-gcc: results in :
Results in the same error minisatp.o
Kindly
Vento
made in minisatip directory
Code: Select all
./configure CC=/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-gcc --host=mips
Then: make or make CROSS=$TOOLCHAIN/bin/mips-openwrt-linux-gcc: results in :
Code: Select all
root@BM2LTSR66MSvex:/tmp/minisatip# make
/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uCl ibc-0.9.33.2/bin/mips-openwrt-linux-gcc -ggdb -fPIC -DNO_BACKTRACE -o minisati p 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 -lssl -ldvbcs a -ldvbcsa -ldvben50221 -ldvbapi -lucsi
mips-openwrt-linux-gcc: warning: environment variable 'STAGING_DIR' not defined
mips-openwrt-linux-gcc: warning: environment variable 'STAGING_DIR' not defined
/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uCl ibc-0.9.33.2/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-ope nwrt-linux-uclibc/bin/ld: minisatip.o: Relocations in generic ELF (EM: 3)
/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uCl ibc-0.9.33.2/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-ope nwrt-linux-uclibc/bin/ld: minisatip.o: Relocations in generic ELF (EM: 3)
/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uCl ibc-0.9.33.2/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-ope nwrt-linux-uclibc/bin/ld: minisatip.o: Relocations in generic ELF (EM: 3)
/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uCl ibc-0.9.33.2/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-ope nwrt-linux-uclibc/bin/ld: minisatip.o: Relocations in generic ELF (EM: 3)
/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uCl ibc-0.9.33.2/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-ope nwrt-linux-uclibc/bin/ld: minisatip.o: Relocations in generic ELF (EM: 3)
/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uCl ibc-0.9.33.2/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-ope nwrt-linux-uclibc/bin/ld: minisatip.o: Relocations in generic ELF (EM: 3)
/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uCl ibc-0.9.33.2/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-ope nwrt-linux-uclibc/bin/ld: minisatip.o: Relocations in generic ELF (EM: 3)
/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uCl ibc-0.9.33.2/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-ope nwrt-linux-uclibc/bin/ld: minisatip.o: Relocations in generic ELF (EM: 3)
/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uCl ibc-0.9.33.2/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-ope nwrt-linux-uclibc/bin/ld: minisatip.o: Relocations in generic ELF (EM: 3)
minisatip.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [minisatip] Fehler 1
Code: Select all
root@BM2LTSR66MSvex:/tmp/minisatip# make CROSS=$TOOLCHAIN/bin/mips-openwrt-linux -gcc
/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uCl ibc-0.9.33.2/bin/mips-openwrt-linux-gcc -ggdb -fPIC -DDISABLE_DVBAES -DDISABLE _NETCVCLIENT -o minisatip minisatip.o socketworks.o stream.o adapter.o utils.o c sa.o dvbapi.o ca.o tables.o satipc.o dvb.o -lpthread -lrt -ldvbcsa -ldvbcsa -ld vben50221 -ldvbapi -lucsi
mips-openwrt-linux-gcc: warning: environment variable 'STAGING_DIR' not defined
mips-openwrt-linux-gcc: warning: environment variable 'STAGING_DIR' not defined
/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uCl ibc-0.9.33.2/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-ope nwrt-linux-uclibc/bin/ld: minisatip.o: Relocations in generic ELF (EM: 3)
/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uCl ibc-0.9.33.2/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-ope nwrt-linux-uclibc/bin/ld: minisatip.o: Relocations in generic ELF (EM: 3)
/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uCl ibc-0.9.33.2/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-ope nwrt-linux-uclibc/bin/ld: minisatip.o: Relocations in generic ELF (EM: 3)
/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uCl ibc-0.9.33.2/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-ope nwrt-linux-uclibc/bin/ld: minisatip.o: Relocations in generic ELF (EM: 3)
/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uCl ibc-0.9.33.2/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-ope nwrt-linux-uclibc/bin/ld: minisatip.o: Relocations in generic ELF (EM: 3)
/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uCl ibc-0.9.33.2/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-ope nwrt-linux-uclibc/bin/ld: minisatip.o: Relocations in generic ELF (EM: 3)
/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uCl ibc-0.9.33.2/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-ope nwrt-linux-uclibc/bin/ld: minisatip.o: Relocations in generic ELF (EM: 3)
/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uCl ibc-0.9.33.2/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-ope nwrt-linux-uclibc/bin/ld: minisatip.o: Relocations in generic ELF (EM: 3)
/media/hd/home/reel/openwrt/sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uCl ibc-0.9.33.2/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-ope nwrt-linux-uclibc/bin/ld: minisatip.o: Relocations in generic ELF (EM: 3)
minisatip.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [minisatip] Fehler 1
Kindly
Vento
Re: Minisatip Server on VU DUO2 with reel netceiver support
The error happens because some .o files are for different platform.
Try "make clean;make"
Try "make clean;make"
Re: Minisatip Server on VU DUO2 with reel netceiver support
Btw your openwrt binary might not work on VUO.