Jump to content


Photo

Openpli Quick setup Ubuntu/debian


  • Please log in to reply
572 replies to this topic

#1 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 8 July 2011 - 19:31

Inspired by Paulusz I decided to write this document. Mr Paulusz seems to be gone from this forum. So I took his start document , and filled it up with extra info like asked after all.

For many users it's sometimes difficult to start. The link below Quick Setup document does have a lott off ussefull tricks . Also help for windows users who want to set a virtual linux enviroment.

I'll try to update this document as much as possible. All tips, trucks and error corrections are welcome. This document does have the latest Makefile-2.1 for openpli (wich is still very experimental.)
If you wan't stability go for 2.0. Ubuntu natty users are better off with 2.1 version.


Quick Setup Document


It is not perfect at all but I hope You will find quick answers on some basic stuff in this document .
p.s. I added the latest Makefile-2.1 with this message. The most recent version will be avbl trough this link: Latest Makefile-2.1 or in the Quick Setup Document.
currently the link to 2.1 feeds and upgrades are not avbl yet, read how to do, to work around this logic issue (it's still experimental).

gr christophe

Attached Files



Re: Openpli Quick setup Ubuntu/debian #2 hemertje

  • Forum Moderator
    PLi® Core member
  • 33,467 posts

+118
Excellent

Posted 8 July 2011 - 20:16

please add it to our Wiki

on the Glassfibre 1GB DVB-C...


Re: Openpli Quick setup Ubuntu/debian #3 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 28 July 2011 - 10:05

Currently the website
git://git.openembedded.net/bitbake seems to be down. It gives a connection refused error when cloning the git.

Makefile is now adapted to use git://git.openembedded.org/bitbake
This work's

Re: Openpli Quick setup Ubuntu/debian #4 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 28 July 2011 - 10:11

ok, I'll fix the makefiles

Re: Openpli Quick setup Ubuntu/debian #5 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 23 August 2011 - 07:39

Hello,

I just added an extra building fails solution. Caused by missing or wrong ssh key on website :
anoncvs@cvs.tuxbox.org

Solution comes from joseb.

gr christophe


Re: Openpli Quick setup Ubuntu/debian #6 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 6 September 2011 - 08:36

Make file 2.1 Adapted Follow link to have the 2.1 file with branch = master instead of 2.1
Or download the file below

Attached Files



Re: Openpli Quick setup Ubuntu/debian #7 gismo2004

  • Member
  • 13 posts

+1
Neutral

Posted 6 October 2011 - 14:54

hi all,

i'm new to the openpli project, and i've tried to compile image for et9000, but if i ran make -f Make..... image bitbake tells me, that psyco is not available.

i'm using ubuntu 11.04 on a pentium 4 with 3ghz (i386) so it should be ok from hardware side...

i have followed : http://users.telenet...npliubuntu.html and also installed psyco:

max@Pentium4:/usr/bin$ dpkg -L python-psyco
/.
/usr
/usr/lib
/usr/lib/python2.6
/usr/lib/python2.6/dist-packages
/usr/lib/python2.6/dist-packages/psyco
/usr/lib/python2.6/dist-packages/psyco/_psyco.so
/usr/share
/usr/share/pyshared
/usr/share/pyshared/psyco
/usr/share/pyshared/psyco/__init__.py
/usr/share/pyshared/psyco/core.py
/usr/share/pyshared/psyco/kdictproxy.py
/usr/share/pyshared/psyco/logger.py
/usr/share/pyshared/psyco/profiler.py
/usr/share/pyshared/psyco/support.py
/usr/share/pyshared/psyco/classes.py
/usr/share/pyshared/psyco-1.6.egg-info
/usr/share/pyshared-data
/usr/share/pyshared-data/python-psyco
/usr/share/doc
/usr/share/doc/python-psyco
/usr/share/doc/python-psyco/README.txt
/usr/share/doc/python-psyco/copyright
/usr/share/doc/python-psyco/changelog.Debian.gz


is there a way, to get this to work?




greez

Re: Openpli Quick setup Ubuntu/debian #8 Sjaaky

  • Senior Member
  • 7,443 posts

+41
Good

Posted 6 October 2011 - 16:24

You don't really need psycho. It is just a warning isn't it?

Re: Openpli Quick setup Ubuntu/debian #9 gismo2004

  • Member
  • 13 posts

+1
Neutral

Posted 6 October 2011 - 16:57

yes, your're right, but it is very slow, and i though, that i can increase the compiling-speed with psyco. do you know, if it is possible to use pypy instead of psyco? will bitbake use also pypy?

i have seen, that psyco is not available with python2.7 and it never will be *gg*


or is there a better way to speed up a little bit?


thx for awnsers!


greez

Re: Openpli Quick setup Ubuntu/debian #10 Sjaaky

  • Senior Member
  • 7,443 posts

+41
Good

Posted 6 October 2011 - 19:47

What computer do you use to build the image? On my old p3 800 it takes well over 24 hours. On my more modern i5 750 an openpli-enigma2-image is completed in under 2 hours. You can try to tweak some options in conf/local.conf. My settings on a 4 core machine:
BB_NUMBER_THREADS = "4"
PARALLEL_MAKE="-j4"
BUILD_OPTIMIZATION = "-march=native -O2 -pipe"
BB_SCHEDULER = "speed"
If you own a multicore machine, these settings will certainly help you.

Re: Openpli Quick setup Ubuntu/debian #11 gismo2004

  • Member
  • 13 posts

+1
Neutral

Posted 6 October 2011 - 20:31

unfortunately I'm using an old p4 3GHz pc... that means i have to wait a looong time *gg*


but thx for your help! very good support in here!!!


greez

Re: Openpli Quick setup Ubuntu/debian #12 inranr

  • Member
  • 7 posts

0
Neutral

Posted 9 October 2011 - 11:03

I will try later...
thank for your info...

if I build this image
is it include CCcam emu??? or ready blue button menu?

Re: Openpli Quick setup Ubuntu/debian #13 MiLo

  • PLi® Core member
  • 14,042 posts

+298
Excellent

Posted 9 October 2011 - 11:49

If you build your own image, you can include whatever you want directly into the image. Just change the .bb file for the image, or create a new "my-image.bb" that derives from it, and bitbake my-image instead.
Real musicians never die - they just decompose

Re: Openpli Quick setup Ubuntu/debian #14 inranr

  • Member
  • 7 posts

0
Neutral

Posted 15 October 2011 - 01:46

I have followed the steps above
but there are errors
ERROR: Unable to determine endianness for architecture 'INVALID'| ETA:  --:--:--
ERROR: Please add your architecture to siteinfo.bbclass
ERROR: Unable to determine endianness for architecture 'INVALID'
ERROR: Please add your architecture to siteinfo.bbclass
it hanged, I think
any solution??

Re: Openpli Quick setup Ubuntu/debian #15 MiLo

  • PLi® Core member
  • 14,042 posts

+298
Excellent

Posted 19 October 2011 - 19:09

Looks more like a misconfiguration (error in local.conf, or something like that)
Real musicians never die - they just decompose

Re: Openpli Quick setup Ubuntu/debian #16 ambrosa

  • Senior Member
  • 161 posts

+35
Good

Posted 19 October 2011 - 20:39

Just for fun I've compiled my own ET9X00 image.
Thanks to christophecvr's guide and others, my efforts are successful in my Ubuntu 11.04 64bit Desktop (CPU Intel Core 2 Duo E6600 2.4 GHz , 6 GB RAM) without any problem.

The only problem was to find all "sources" packages: as you know many download links are broken. But I've found it in many places using Google.
I've UPLOADED my full openpli/sources/ directory here (about 900 MB , 18 Oct 2011 including kernel source 3.0.3) http://uploading.com...111018.tar.bz2/
I hope will be helpful to anyone else or simply use it avoiding download every source package.

*** MY QUICK GUIDE ***

STEP 1 : simply accept ssh RSA key (answer 'yes') and quit (this is a one-time step)
ssh anoncvs@cvs.tuxbox.org


STEP 2 : use bash instead of dash (answer 'no') (this is a one-time step)
sudo dpkg-reconfigure dash


STEP 3 : install required Ubuntu packages (this is a one-time step)
sudo apt-get install -y autoconf automake bison bzip2 cvs diffstat flex g++ gawk gcc gettext git-core gzip help2man ncurses-bin ncurses-dev libc6-dev libtool make texinfo patch perl pkg-config subversion tar texi2html wget zlib1g-dev
 
sudo apt-get install -y chrpath libxml2-utils xsltproc libglib2.0-dev python-setuptools


STEP 4 : create openpli dir
mkdir openpli
cd openpli


STEP 5 : download latest Makefile-2.1
wget http://openpli.svn.sourceforge.net/viewvc/openpli/trunk/pli-oe/Makefile-2.1 -O Makefile-2.1


STEP 6 : edit Makefile-2.1 and set MACHINE=et9x00 (row 3)


STEP 7 : prepare OpenEmbedded environment
make -f Makefile-2.1


STEP 8 : speedup compilation setting nr_thread = nr_core + 1 (my CPU E6600 has 2 cores so I use 3 threads)
Change BB_NUMBER_THREADS = "3" and PARALLEL_MAKE = "-j3" below if you have more core (i.e. 1 core = 2 threads, 4 core = 5 threads)
Using "nr_thread = nr_core + 1" is an ancient rule. Probably with most recent CPU things are different.

Edit file build-et9x00/conf/local.conf and add lines:
BB_NUMBER_THREADS = "3"
PARALLEL_MAKE = "-j3"
BUILD_OPTIMIZATION = "-march=native -O2 -pipe"
BB_SCHEDULER = "speed"


STEP 9 (FINAL) : Compile image. About 4-5 hours with my system.
make -f Makefile-2.1 image


Have fun ! :-)
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: Openpli Quick setup Ubuntu/debian #17 ambrosa

  • Senior Member
  • 161 posts

+35
Good

Posted 20 October 2011 - 08:49

Tonight I've made another compile from scratch
I've used "time" to have a real timing about compile
time make -f Makefile-2.1 image

report 184 minutes with my system and config as above :-)
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: Openpli Quick setup Ubuntu/debian #18 ambrosa

  • Senior Member
  • 161 posts

+35
Good

Posted 20 October 2011 - 08:52

What computer do you use to build the image? On my old p3 800 it takes well over 24 hours. On my more modern i5 750 an openpli-enigma2-image is completed in under 2 hours. You can try to tweak some options in conf/local.conf. My settings on a 4 core machine:

BB_NUMBER_THREADS = "4"
PARALLEL_MAKE="-j4"
BUILD_OPTIMIZATION = "-march=native -O2 -pipe"
BB_SCHEDULER = "speed"
If you own a multicore machine, these settings will certainly help you.


Have you tried:
BB_NUMBER_THREADS = "5"
PARALLEL_MAKE="-j5"

or

BB_NUMBER_THREADS = "6"
PARALLEL_MAKE="-j6"


More speed or not ?
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: Openpli Quick setup Ubuntu/debian #19 ambrosa

  • Senior Member
  • 161 posts

+35
Good

Posted 23 October 2011 - 15:00

Just for fun I've test my dual core CPU with
BB_NUMBER_THREADS = "4"
PARALLEL_MAKE="-j4"
(nr_core + 2)

As expected compile time is longer (about 15 minutes).
So the "old rule"
number_of_threads = number_of_core + 1
looks to be fine. For me ;)
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: Openpli Quick setup Ubuntu/debian #20 hemertje

  • Forum Moderator
    PLi® Core member
  • 33,467 posts

+118
Excellent

Posted 27 October 2011 - 07:08

I've UPLOADED my full openpli/sources/ directory here (about 900 MB , 18 Oct 2011 including kernel source 3.0.3) http://uploading.com...111018.tar.bz2/
I hope will be helpful to anyone else or simply use it avoiding download every source package.


This server is offline, can you upload it again to another (non-pay) downloadserver.

on the Glassfibre 1GB DVB-C...



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users