Jump to content


Photo

Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit


  • Please log in to reply
2062 replies to this topic

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #41 buyukbang

  • Senior Member
  • 185 posts

+11
Neutral

Posted 4 December 2011 - 18:02

@betacentauri,

I'm using x32 ubuntu 11.10, but as far as I see ambrosa succeed to compile in x64.

@ambrosa,

For the keystore issue try making teminal window that you started enigma on focus. When sending keystrokes to terminal windows it works fine for me. But of course there should be something wrong to fix in our setups since nobody9 said he cannot create this problem on his setup.

It all started with a BigBang...


http://buyukbang.blogspot.com


Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #42 ambrosa

  • Senior Member
  • 161 posts

+35
Good

Posted 4 December 2011 - 18:32

@ambrosa,

For the keystore issue try making teminal window that you started enigma on focus. When sending keystrokes to terminal windows it works fine for me. But of course there should be something wrong to fix in our setups since nobody9 said he cannot create this problem on his setup.

Tnx. It works.

This is the log if I focus terminal window
timeoutCounter: 17
timeoutCounter: 16
timeoutCounter: 15
action ->  WizardActions down
self.selection: YPbPr
input selection moved: YPbPr
inputSelect: YPbPr
getModeList for port YPbPr
modeList: []
self.selection: YPbPr
input selection moved: YPbPr
inputSelect: YPbPr
getModeList for port YPbPr
modeList: []
self.selection: YPbPr
input selection moved: YPbPr
inputSelect: YPbPr
getModeList for port YPbPr
modeList: []
current: ('YPbPr', 'YPbPr')
input selection moved: YPbPr
inputSelect: YPbPr
getModeList for port YPbPr
modeList: []
down
^[[BFLUSH
timeoutCounter: 19
timeoutCounter: 18
timeoutCounter: 17

BTW: I run E2 directly in my system, NOT in a virtual machine (VMWare or VirtualBox)

Edited by ambrosa, 4 December 2011 - 18:33.

STB: Clarke Tech ET9100
Mass storage: internal SATA-II HDD 1TB WD10EACS GreenPower 5400rpm
Mass storage: external USB pen drive 2GB
Firmware: OpenPLi kernel 3.x.x
Tuner A: AVL2108 (DVB-S2) HotBird 13E
Tuner B: AVL2108 (DVB-S2) HotBird 13E
Tuner C: AverMedia A867 (DVB-T HD) (AF9035 + MXL5007T)
TV: plasma PANASONIC GT30 fullHD
Audio: PCM through HDMI (no Dolby decoder)

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #43 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 4 December 2011 - 20:21

I found the problem: There was an old automake package (with old aclocal) installed.

After I installed a newer one the compilation worked without problems!

Thanks everybody for helping!
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #44 nobody9

  • Senior Member
  • 187 posts

+76
Good

Posted 5 December 2011 - 19:59

@buyukbang,

i test today the enigma2 Version on "https://github.com/c...igma/Enigma2PC" with some modifications.

I get video and audio in the VM. I don´t get any OSD on screen. So i think the best tink we combine both version and ask Cougar for help.

regards,

nobody9

Attached Files



Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #45 buyukbang

  • Senior Member
  • 185 posts

+11
Neutral

Posted 6 December 2011 - 00:15

Great job. On a vmware this seems as an important progress. Combining OSD and video picture could be tricky part?

I think starting point should be PLi PC since Cougar's enigma has three big disadvantages in my opinion:

1- Enigma2PC is based on the openembedded based image. You used OpenPLi ! No need to say, PLi has great enhancements that none of the images has.
2- Enigma2PC using a static old enigma2 git copy, so it continuously needs propagations of the E2 code changes. The best part of your work is that, you used patches on original openPLi git.
3- He made his work depended on hardware (nvidia

I'm seriously considering to replace my STB with a mini HTPC + tuner if OpenPLi can run with picture + OSD, since PC will give much more (XBMC, jdonwloader, internet browsers, etc) then an STB for the same amount of bucks.

@buyukbang,

i test today the enigma2 Version on "https://github.com/c...igma/Enigma2PC" with some modifications.

I get video and audio in the VM. I don´t get any OSD on screen. So i think the best tink we combine both version and ask Cougar for help.

regards,

nobody9


It all started with a BigBang...


http://buyukbang.blogspot.com


Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #46 buyukbang

  • Senior Member
  • 185 posts

+11
Neutral

Posted 9 December 2011 - 15:09

@nobody9,

Is there anyway to share CI like sharing tuner with vtuner?

BTW, any progress on the project ?

It all started with a BigBang...


http://buyukbang.blogspot.com


Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #47 nobody9

  • Senior Member
  • 187 posts

+76
Good

Posted 9 December 2011 - 17:56

@nobody9,

Is there anyway to share CI like sharing tuner with vtuner?

BTW, any progress on the project ?

i don´t know anything to share a CI.

The status at the momment:

I portet enigmaPC(Cougar's) to today´s OpenPLI.

With xine_vdpau i get osd, video (SD and HD) and sound,
with xine_xshm i get video (SD and HD) and sound ,
with xine_sdl i get only video (SD and HD) in size 720x576 they don´t scale and sound .
I must analyze the xine_vdpau driver.

The OldPatch:
With the keystore issue, i found out when you running as root and get access to /dev/event/inputX then Enigma2 make crazy things with key inputs.

nobody9

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #48 buyukbang

  • Senior Member
  • 185 posts

+11
Neutral

Posted 9 December 2011 - 18:22

Thanks for the update. Very happy to hear you migrated cougar's patches to your work. I think this is an important step. Waiting your updates excitedly.



@nobody9,

Is there anyway to share CI like sharing tuner with vtuner?

BTW, any progress on the project ?

i don´t know anything to share a CI.

The status at the momment:

I portet enigmaPC(Cougar's) to today´s OpenPLI.

With xine_vdpau i get osd, video (SD and HD) and sound,
with xine_xshm i get video (SD and HD) and sound ,
with xine_sdl i get only video (SD and HD) in size 720x576 they don´t scale and sound .
I must analyze the xine_vdpau driver.

The OldPatch:
With the keystore issue, i found out when you running as root and get access to /dev/event/inputX then Enigma2 make crazy things with key inputs.

nobody9


It all started with a BigBang...


http://buyukbang.blogspot.com


Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #49 nobody9

  • Senior Member
  • 187 posts

+76
Good

Posted 10 December 2011 - 06:54

Thanks for the update. Very happy to hear you migrated cougar's patches to your work. I think this is an important step. Waiting your updates excitedly.

Attached the patches and the scripts for openpliPC tested on Ubuntu 10.10 32/64 Bit.

First start ./build_libs.sh it donwload, build and install all needed libraries and programs.
After it start ./build_enigma2.sh it get the openpli enigma2 source code, patchit, compile and Install.
Enigma2 will be installed in /usr/local, also the script copy´s example configs to /usr/local/etc/enigma2.
the hole /proc/stb directory are located at /usr/local/etc/tuxbox/stb.

Start enigma2:

sudo /usr/local/bin/enigma2

With xine_vdpau i get osd, video (SD and HD) and sound,
with xine_xshm i get video (SD and HD) and sound ,
with xine_sdl i get only video (SD and HD) in size 720x576 they don´t scale and sound .

thanks to:

Cougar for porting Enigma2 to Enigma2PC
kanber_kav implement a Mediplayer in Enigma2PC over xinelib without gstreamer and implement subtitles.
buyukbang for testing.

The performence on my MacBookPro13(Dualcore 2.4 GHz) with Ubuntu 10.10 64bit it´s very fast.

regards,

nobody9

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #50 nobody9

  • Senior Member
  • 187 posts

+76
Good

Posted 10 December 2011 - 07:10

I forgotten to thanks the Pli Team for the greate Enigma2 Openpli.

nobody9

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #51 kanber_kav

  • Member
  • 7 posts

0
Neutral

Posted 10 December 2011 - 14:33

I am Here. Thanks @nobody9

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #52 nobody9

  • Senior Member
  • 187 posts

+76
Good

Posted 10 December 2011 - 17:30

@kanber_kav,
nice to see you here, i hope you can help.

@all
attached a new build_enigma2.sh set git to a fixed revison, then after the last checkin the patch will break.

I am Here. Thanks @nobody9



Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #53 ambrosa

  • Senior Member
  • 161 posts

+35
Good

Posted 11 December 2011 - 08:49

Hi.

I've found a problem in build_libs.sh
It fails to install required package "vdpau-driver" : in my system (Xubuntu 11.10 64 bit with Nvidia card) the package is named "vdpau-va-driver"
Failing to install "vdpau-driver" , apt-get also doesn't install following packages "libcdio-dev libvcdinfo-dev" because they are on the same row.
I don't know if "vdpau-va-driver" is Ubuntu 11.10 specific and with older Ubuntu package is named "vdpau-driver" or is named "vdpau-va-driver" because I've a Nvidia card.
If someone can explain me, I can add a test condition to build_libs.sh

I've made some changes to build_libs.sh
1) required packages are installed one-by-one with a 'for' cycle, so if one it fails doesn't break following packages
2) cosmetich output about what script is doing
3) erasing, if they exists, older build dir and libs to (re-)start a fresh build.


#!/bin/sh
#To build enigma2 on Ubuntu 10.10 32/64bit
#Install these packages:
#
echo "-----------------------------------------"
echo "*** INSTALL REQUIRED PACKAGES ***"
echo "-----------------------------------------"
REQPKG="autoconf automake build-essential gettext subversion mercurial git autopoint \
	libdvdnav-dev libfreetype6-dev libfribidi-dev \
	libgif-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev \
	libjpeg62-dev libpng12-dev libsdl1.2-dev libsigc++-1.2-dev \
	libtool libxml2-dev libxslt1-dev python-dev swig libssl-dev libssl0.9.8 \
	libvdpau-dev vdpau-va-driver \
	libcdio-dev libvcdinfo-dev \
	libavcodec-dev libpostproc-dev libnl2-dev \
	"
 
for p in $REQPKG; do
	echo ">>> Installing $p"
	sudo apt-get -y install $p
done
 
#sudo apt-get install python-setuptools
 
#Build and install libdvbsi++:
PKG="libdvbsi++"
echo "-----------------------------------------"
echo "Build and install $PKG"
echo "-----------------------------------------"
if [ -d $PKG ]; then
	echo "Erasing older build dir"
	rm -Rf $PKG
	rm -f $PKG*
fi
git clone git://git.opendreambox.org/git/obi/$PKG.git
cd $PKG
dpkg-buildpackage -uc -us
cd ..
sudo dpkg -i $PKG*.deb
 
#Build and install libxmlccwrap:
PKG="libxmlccwrap"
echo "-----------------------------------------"
echo "Build and install $PKG"
echo "-----------------------------------------"
if [ -d $PKG ]; then
	echo "Erasing older build dir"
	rm -Rf $PKG
	rm -f $PKG*
fi
git clone git://git.opendreambox.org/git/obi/$PKG.git
cd $PKG
dpkg-buildpackage -uc -us
cd ..
sudo dpkg -i $PKG*.deb
 
#Build and install libdreamdvd:
PKG="libdreamdvd"
echo "-----------------------------------------"
echo "Build and install $PKG"
echo "-----------------------------------------"
if [ -d $PKG ]; then
	echo "Erasing older build dir"
	rm -Rf $PKG
	rm -f $PKG*
fi
git clone git://schwerkraft.elitedvb.net/libdreamdvd/$PKG.git
cd $PKG
dpkg-buildpackage -uc -us
cd ..
sudo dpkg -i $PKG*.deb
 
#Build and install libdvbcsa:
PKG="libdvbcsa"
echo "-----------------------------------------"
echo "Build and install $PKG"
echo "-----------------------------------------"
if [ -d $PKG ]; then
	echo "Erasing older build dir"
	rm -Rf $PKG
	rm -f $PKG*
fi
svn co svn://svn.videolan.org/$PKG/trunk $PKG
cd $PKG
autoreconf -i
./configure --prefix=/usr --enable-sse2
make
sudo make install
cd ..
 
#git clone git://git.berlios.de/pythonwifi
#cd pythonwifi
#sudo python setup.py install
#cd ..
 
#Build and install xine-lib:
PKG="xine-lib"
echo "-----------------------------------------"
echo "Build and install $PKG"
echo "-----------------------------------------"
if [ -d $PKG ]; then
	echo "Erasing older build dir"
	rm -Rf $PKG
	rm -f $PKG*
fi
git clone git://projects.vdr-developer.org/$PKG.git
cd $PKG
git checkout df-osd-handling+alter-vdpau-h264-decoder
patch -p1 < ../patches/xinelib_20111210.patch
./autogen.sh --disable-xinerama --disable-musepack --prefix=/usr
make
sudo make install
cd ..
 
#Build dvbsoftwareca kernel module:
#cd dvbsoftwareca
#make   # You must have installed dvb-core (for example from s2-liplianin).
#insmod dvbsoftwareca.ko  # It will create ca0 device for adapter0
 
echo "*********************<END>*********************"
 
 

Attached Files


Edited by ambrosa, 11 December 2011 - 08:50.

STB: Clarke Tech ET9100
Mass storage: internal SATA-II HDD 1TB WD10EACS GreenPower 5400rpm
Mass storage: external USB pen drive 2GB
Firmware: OpenPLi kernel 3.x.x
Tuner A: AVL2108 (DVB-S2) HotBird 13E
Tuner B: AVL2108 (DVB-S2) HotBird 13E
Tuner C: AverMedia A867 (DVB-T HD) (AF9035 + MXL5007T)
TV: plasma PANASONIC GT30 fullHD
Audio: PCM through HDMI (no Dolby decoder)

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #54 ambrosa

  • Senior Member
  • 161 posts

+35
Good

Posted 11 December 2011 - 09:14

Some cosmethic changes to build_enigma2.sh

Enigma2 compile fine in Xubuntu 11.10 64bit (Nvidia card) and run very fast but ... I cannot use it.

I'm involved to refine DVB-T driver source code and for me openpliPC should be a great help (I can test DVB-T code changes directly in my PC) but ...... openpliPC don't recognize them.
I've 4 DVB-T USB stick and obvioulsy I use this stick with my ET9100 without any problem.
And these sticks works fine in Ubuntu (w_scan and vlc works fine)

vtuner missing ??

Posted Image

#!/bin/sh
#Build and install enigma2:
 
echo "--------------------------------------"
echo "downloading OpenPli sources, please wait..."
echo "--------------------------------------"
git clone git://openpli.git.sourceforge.net/gitroot/openpli/enigma2
cd enigma2
git checkout 6842847a4d52f1323701764811a6095504215ebb
 
echo "--------------------------------------"
echo "configuring OpenPli sources"
echo "--------------------------------------"
patch -p1 < ../patches/openpliPC_20111210.patch
autoreconf -i
./configure --prefix=/usr/local --with-xlib --with-debug
 
echo "--------------------------------------"
echo "build OpenPli, please wait..."
echo "--------------------------------------"
make
 
echo "--------------------------------------"
echo "installing OpenPli in /usr/local/"
echo "--------------------------------------"
sudo make install
cd ..
 
echo "--------------------------------------"
echo "final changes"
echo "--------------------------------------"
sudo strip /usr/local/bin/enigma2
#remove compiled py-files
sudo find /usr/local/lib/enigma2/python/ -name '*.pyo' -exec rm {} \;
sudo find /usr/local/lib/enigma2/python/ -name '*.pyc' -exec rm {} \;
#copy needed files
sudo mkdir -p /usr/local/etc/enigma2
sudo mkdir -p /usr/local/etc/tuxbox
sudo cp share/fonts/* /usr/local/share/fonts
sudo cp -rf etc/* /usr/local/etc
 
echo "**********************<END>**********************"

STB: Clarke Tech ET9100
Mass storage: internal SATA-II HDD 1TB WD10EACS GreenPower 5400rpm
Mass storage: external USB pen drive 2GB
Firmware: OpenPLi kernel 3.x.x
Tuner A: AVL2108 (DVB-S2) HotBird 13E
Tuner B: AVL2108 (DVB-S2) HotBird 13E
Tuner C: AverMedia A867 (DVB-T HD) (AF9035 + MXL5007T)
TV: plasma PANASONIC GT30 fullHD
Audio: PCM through HDMI (no Dolby decoder)

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #55 kanber_kav

  • Member
  • 7 posts

0
Neutral

Posted 11 December 2011 - 13:35

/usr/local/etc/tuxbox
nim_sockets change

Dvb-s2
NIM Socket 0:
	    Type: DVB-S2
	    Name: VTUNER
	    Has_Outputs: no
	    Frontend_Device: 0


Dvb-t

NIM Socket 0:
	    Type: DVB-T
	    Name: VTUNER
	    Has_Outputs: no
	    Frontend_Device: 0
		


Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #56 kanber_kav

  • Member
  • 7 posts

0
Neutral

Posted 11 December 2011 - 15:52

Pan/scan ..etc work
patch
avswitch.cpp
/enigma2/lib/driver

#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <string.h>
#include <lib/base/init.h>
#include <lib/base/init_num.h>
#include <lib/base/eerror.h>
#include <lib/base/ebase.h>
#include <lib/driver/avswitch.h>
#include <lib/gdi/xineLib.h>
eAVSwitch *eAVSwitch::instance = 0;
 
eAVSwitch::eAVSwitch()
{
ASSERT(!instance);
instance = this;
m_video_mode = 0;
}
int eAVSwitch::getVCRSlowBlanking()
{
return 0;
}
eAVSwitch::~eAVSwitch() {}
eAVSwitch *eAVSwitch::getInstance()
{
return instance;
}
bool eAVSwitch::haveScartSwitch()
{
return false;
}
bool eAVSwitch::isActive()
{
return m_active;
}
void eAVSwitch::setInput(int val)
{}
void eAVSwitch::setColorFormat(int format)
{}
void eAVSwitch::setAspectRatio(int ratio)
{	cXineLib *xineLib = cXineLib::getInstance();
	  cXineLib::getInstance()->setAspectRatio(ratio);
}
void eAVSwitch::setPolicy43(int mode)
  {cXineLib *xineLib = cXineLib::getInstance();
   cXineLib::getInstance()->setPolicy43(mode);
  }
 
void eAVSwitch::setPolicy169(int mode)
  {cXineLib *xineLib = cXineLib::getInstance();
  cXineLib::getInstance()->setPolicy169(mode);
}
 
void eAVSwitch::setZoom(int zoom43_x, int zoom43_y, int zoom169_x, int zoom169_y)
{cXineLib *xineLib = cXineLib::getInstance();
  cXineLib::getInstance()->setZoom(zoom43_x, zoom43_y, zoom169_x, zoom169_y);
}
 
void eAVSwitch::updateScreen()
{cXineLib *xineLib = cXineLib::getInstance();
  cXineLib::getInstance()->adjust_policy();
}
// 50/60 Hz
void eAVSwitch::setVideomode(int mode)
{
//printf("----------------------- eAVSwitch::setVideomode %d\n", mode);
if (mode == m_video_mode)
  return;
m_video_mode = mode;
}
void eAVSwitch::setWSS(int val) // 0 = auto, 1 = auto(4:3_off)
{}
 
void eAVSwitch::setDeinterlace(int global, int sd, int hd)
{cXineLib *xineLib = cXineLib::getInstance();
  cXineLib::getInstance()->setDeinterlace(global, sd, hd);
}
 
void eAVSwitch::setSDfeatures(int sharpness, int noise)
{cXineLib *xineLib = cXineLib::getInstance();
  cXineLib::getInstance()->setSDfeatures(sharpness, noise);
}
//FIXME: correct "run/startlevel"
eAutoInitP0<eAVSwitch> init_avswitch(eAutoInitNumbers::rc, "AVSwitch Driver");

Edited by kanber_kav, 11 December 2011 - 15:53.


Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #57 nobody9

  • Senior Member
  • 187 posts

+76
Good

Posted 11 December 2011 - 15:58

@all
attached new scripts and patches works with todays git.

@ambrosa
thanks for the cosmethic changes of the scripts i add it.

@kanber_kav
i will add it in the next version.

Some cosmethic changes to build_enigma2.sh

Attached Files


Edited by nobody9, 11 December 2011 - 16:00.


Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #58 nobody9

  • Senior Member
  • 187 posts

+76
Good

Posted 11 December 2011 - 17:43

@all,
the files are published on github:

https://github.com/n...9/openpliPC.git

regards,
nobody9

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #59 subixonfire

  • Member
  • 8 posts

0
Neutral

Posted 11 December 2011 - 20:22

Is this playing video/audio to anyone...

XINE try START !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
xine: cannot find input plugin for MRL [enigma:/]
Unable to open stream !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
input_dvb: sending event
xine_event_handler(): event->type: -2147483648
xine_event_handler(): event->type: 501
xine_event_handler(): event->type: 502
xine_play
xine_play: no demux available
Unable to play stream !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
XINE STARTED !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
DEMUX_START - ttx
VIDEO_SLOWMOTION(0)
VIDEO_FAST_FORWARD(0)
set_speed 1000000
VIDEO_CONTINUE
AUDIO_CONTINUE
Start live TV!
setIoPrio realtime level 7 ok
FILEPUSH THREAD START
Start live TV END

I have a error like this...

ubuntu 11.10 32, avermedia a867 usb dvb-t (https://github.com/a...67_kernel_3.0.0)

Thanx for all the work you have done...

ps: github link https://github.com/n...9/openpliPC.git dosent work

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #60 nobody9

  • Senior Member
  • 187 posts

+76
Good

Posted 11 December 2011 - 20:31

@all,
the files are published on github:
https://github.com/n...9/openpliPC.git


@all
the correct link
https://github.com/nobody9/openpliPC

@subixonfire
have you run build_libs.sh, it looks that the wrong xinelib installed.

XINE try START !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
xine: cannot find input plugin for MRL [enigma:/]
Unable to open stream !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!




3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users