Jump to content


Photo

Openpli Quick setup Ubuntu/debian


  • Please log in to reply
572 replies to this topic

Re: Openpli Quick setup Ubuntu/debian #321 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 16 January 2014 - 13:16

ok document adapted its' now

 

git clone git://git.code.sf.net/p/openpli/openpli-oe-core

 

Also the help script to make life easy on ubuntu as adapted

 

I now just run an build from scratch to check if al is fine

 

for vuduo2 and dm8000


Edited by christophecvr, 16 January 2014 - 13:18.


Re: Openpli Quick setup Ubuntu/debian #322 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 16 January 2014 - 15:34

Ter info My build from scratch for vuduo2 and dm8000 inclusif feeds build (with some personal extra add's)

 

Is succesfull from first try.

 

Total time for the two boxes inclusif feeds build 02 Hours and 20 minutes. I well had the majority off sources avbl.



Re: Openpli Quick setup Ubuntu/debian #323 Beeker

  • PLi® Contributor
  • 1,604 posts

+203
Excellent

Posted 17 January 2014 - 21:25

The base document is updated for pli4  explanation pli 3.0 removed.

 

Quick document

 

@Christophecvr

Since Apache2 2.4.7(i use ubuntu 14.04) the path for apache2 must be changed from:

var/www/feeds/openpli-4/xxxx

into:

var/www/html/feeds/openpli-4/xxxx

Ok i know ubuntu 14.04 isn't released yet and a lot of distro's using a older version of apache2 yet, but keep in mind to remember for saving a lot of time to found out what's going wrong in the future.

 

Maybe you can take that in the document.
 


Dreambox dm920, Uclan Ustym4Kpro, Gigablue UHD TRIO 4K and Dreambox dm8000. Wavefrontier T55 13.0|19.2|23.5|28.2 + Ziggo.


Re: Openpli Quick setup Ubuntu/debian #324 tension

  • Senior Member
  • 119 posts

+4
Neutral

Posted 18 January 2014 - 23:58

I had problems today with a fresh openpli build. With gcc-4.6.3 and ubuntu 12.04 no way to compile some native packages. I had to force the march flag in site.conf to fit my host build system.

 

BUILD_OPTIMIZATION = "-march=corei7 -O2 -pipe"
:~$ grep -m1 -A3 "vendor_id" /proc/cpuinfo
vendor_id	: GenuineIntel
cpu family	: 6
model		: 60
model name	: Intel(R) Core(TM) i7-4700HQ CPU @ 2.40GHz

Maybe of interest for someone..... http://wiki.gentoo.o...iki/Safe_CFLAGS



Re: Openpli Quick setup Ubuntu/debian #325 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 19 January 2014 - 00:22

I have setup new OpenPli 4 build environment. Now I want to compile enigma2 (checked out in a separate directory). I took the same or almost same commands as for OpenPli3 but I get error messages:
 

/openpli4/openpli-oe-core/build$ source env.source; MACHINE=et9x00 bitbake -c compile -b ../enigma2_pids/enigma2.bb
WARNING: Buildfile specified, dependencies will not be handled. If this is not what you want, do not use -b / --buildfile.
WARNING: Variable populate_packages contains tabs, please remove these (/openpli4/openpli-oe-core/enigma2_pids/enigma2.bb)
NOTE: Error during finalise of /openpli4/openpli-oe-core/enigma2_pids/enigma2.bb
ERROR: Command execution failed: Traceback (most recent call last):
  File "/openpli4/openpli-oe-core/bitbake/lib/bb/command.py", line 99, in runAsyncCommand
    commandmethod(self.cmds_async, self, options)
  File "/openpli4/openpli-oe-core/bitbake/lib/bb/command.py", line 274, in buildFile
    command.cooker.buildFile(bfile, task)
  File "/openpli4/openpli-oe-core/bitbake/lib/bb/cooker.py", line 1065, in buildFile
    self.caches_array)
  File "/openpli4/openpli-oe-core/bitbake/lib/bb/cache.py", line 405, in parse
    datastores = cls.load_bbfile(filename, appends, configdata)
  File "/openpli4/openpli-oe-core/bitbake/lib/bb/cache.py", line 673, in load_bbfile
    bb_data = parse.handle(bbfile, bb_data)
  File "/openpli4/openpli-oe-core/bitbake/lib/bb/parse/__init__.py", line 99, in handle
    return h['handle'](fn, data, include)
  File "/openpli4/openpli-oe-core/bitbake/lib/bb/parse/parse_py/BBHandler.py", line 169, in handle
    return ast.multi_finalize(fn, d)
  File "/openpli4/openpli-oe-core/bitbake/lib/bb/parse/ast.py", line 384, in multi_finalize
    finalize(fn, d)
  File "/openpli4/openpli-oe-core/bitbake/lib/bb/parse/ast.py", line 332, in finalize
    bb.parse.siggen.finalise(fn, d, variant)
  File "/openpli4/openpli-oe-core/bitbake/lib/bb/siggen.py", line 135, in finalise
    taskdeps = self._build_data(fn, d)
  File "/openpli4/openpli-oe-core/bitbake/lib/bb/siggen.py", line 88, in _build_data
    tasklist, gendeps, lookupcache = bb.data.generate_dependencies(d)
  File "/openpli4/openpli-oe-core/bitbake/lib/bb/data.py", line 381, in generate_dependencies
    deps[dep], values[dep] = build_dependencies(dep, keys, shelldeps, varflagsexcl, d)
  File "/openpli4/openpli-oe-core/bitbake/lib/bb/data.py", line 356, in build_dependencies
    raise bb.data_smart.ExpansionError(key, None, e)
ExpansionError: Failure expanding variable populate_packages: IndentationError: unindent does not match any outer indentation level (<string>, line 4)


Summary: There were 2 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

What's wrong?
How can I compile e2?


Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Openpli Quick setup Ubuntu/debian #326 blzr

  • PLi® Core member
  • 2,270 posts

+118
Excellent

Posted 19 January 2014 - 01:18


WARNING: Variable populate_packages contains tabs, please remove these (/openpli4/openpli-oe-core/enigma2_pids/enigma2.bb)
...
ExpansionError: Failure expanding variable populate_packages: IndentationError: unindent does not match any outer indentation level (<string>, line 4)
What's wrong?


try replace tabs with spaces in this 'python populate_packages_prepend' block at the bottom of the recipe - should help...
True sarcasm doesn't need green font...

Re: Openpli Quick setup Ubuntu/debian #327 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 19 January 2014 - 08:51

Indeed that was the problem. Thanks!

 

But really strange that tabs are not supported here.

@Pli: Can you look at that? I have created a patch which solves the problem, but uses spaces, which you don't like ;).

Attached Files


Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Openpli Quick setup Ubuntu/debian #328 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 19 January 2014 - 12:05

Are we talking OpenPLi4 here?

Because the spaces/tabs requirement are in the current OpenEmbedded-core (and bitbake) versions. It won't compile if it isn't correct. Recipes in the OpenPLi3 branch may still have these, but that branch is discontinued.

(Just for clarity: It is an OpenEmbedded requirement, not related to OpenPLi4)

Edited by MiLo, 19 January 2014 - 12:06.

Real musicians never die - they just decompose

Re: Openpli Quick setup Ubuntu/debian #329 blzr

  • PLi® Core member
  • 2,270 posts

+118
Excellent

Posted 19 January 2014 - 12:13

it's about the recipe in enigma2 git in this case
True sarcasm doesn't need green font...

Re: Openpli Quick setup Ubuntu/debian #330 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 19 January 2014 - 13:04

Yes, it's the receipt in e2 git. And yes, I use the openpli 4 build env (master branch). I know it's a openembedded/bitbake requirement.
But it would be good when you can change the enigma2.bb file so that everybody can compile it in openpli4 environment without an error.
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Openpli Quick setup Ubuntu/debian #331 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 19 January 2014 - 13:08

The base document is updated for pli4  explanation pli 3.0 removed.

 

Quick document

 

@Christophecvr

Since Apache2 2.4.7(i use ubuntu 14.04) the path for apache2 must be changed from:

var/www/feeds/openpli-4/xxxx

into:

var/www/html/feeds/openpli-4/xxxx

Ok i know ubuntu 14.04 isn't released yet and a lot of distro's using a older version of apache2 yet, but keep in mind to remember for saving a lot of time to found out what's going wrong in the future.

 

Maybe you can take that in the document.
 

Ok I will put I note on it. But a detailed change , will only comme with versions I personally use.

Now I only run the LTS versions (not the beta and or short term's anymore) As it's to much fiddeling around before I have my desktops back to my personal needs. I use gnome3 and I'm absolutely not enchanted with the ubuntu standard desktops they are using now .



Re: Openpli Quick setup Ubuntu/debian #332 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 19 January 2014 - 13:23

@Beeker

 

For this apache difference I added a note to the document.



Re: Openpli Quick setup Ubuntu/debian #333 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 20 January 2014 - 12:41

I also saw that the latest LTS is now 14.04 When I have time I will install that one . And update also the full manual according to this. The 12.04 will remain in as support is offered for that distro up to 2017.



Re: Openpli Quick setup Ubuntu/debian #334 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 20 January 2014 - 13:01

Sorry I misreaded currently the latest LTS is still 12.04 . 14.04 will be the next but is not officially released yet.



Re: Openpli Quick setup Ubuntu/debian #335 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 24 January 2014 - 17:18

In order for further extra's I do have a question. Personally I do sometimes play around in my cloned gite when trouble shooting. My base build are whitout the inherit work I do keep my work dir's.

 

Now when I pull an update I always remove them again then rebase the git to be excat the same as that off open pli. If needed I patch the specific .bb again. For permanent changes I just have my own image.

 

So the comments I run automated are ;

 

into openpli-oe-core  dir.

git stash

git pull --ff-only

git pull --rebase

git submodule sync &&

git submodule update --init &&

Then (only if needed for the time if I want one or other bb file off original git patched I apply it here mostly not)

cd build

source env.source  # into script file the env.source must be "<full path to>/env.source"

MACHINE=dm8000 bitbake my-image

MACHINE=vuduo2 bitbake my-image

 

The my-image is the image, feed builds and my extra add's.

 

Is this all correct ? by me it work's fine



Re: Openpli Quick setup Ubuntu/debian #336 clweb

  • Senior Member
  • 54 posts

+1
Neutral

Posted 23 February 2014 - 18:01

Hello christophecvr,

 

I have used your quick setup document to build an image. It worked fine (Ubuntu 12.04, PLi4).

Now I have a modification to do in enigma2 (AC3+ patch), but I cannot find the source code.

Maybe there are other command to retrieve the source code, make some patch and recompile

an image.

Could you give me some advice ?

 

Thank you.



Re: Openpli Quick setup Ubuntu/debian #337 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 23 February 2014 - 18:16

Hi,

source code is here:
http://sourceforge.n...ci/master/tree/
The git command to get the code stands on the website.
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Openpli Quick setup Ubuntu/debian #338 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 28 February 2014 - 08:31

Hello christophecvr,

 

I have used your quick setup document to build an image. It worked fine (Ubuntu 12.04, PLi4).

Now I have a modification to do in enigma2 (AC3+ patch), but I cannot find the source code.

Maybe there are other command to retrieve the source code, make some patch and recompile

an image.

Could you give me some advice ?

 

Thank you.

I did not know if it worked that patch but it does. There are several ways. But since I compile for two boxes dm8000 and vuduo2 I just created a git patch to openpli4 to work around.

 

I assume You already have a working build. First it's important to have the git full up to date .

cd to you're <pli4 path>

set the patch file included here in that path

cd openpli-oe-core

Now we first go clean you're git (remove previous changes and then update the gite)

git stash

git pull --ff-only origin master
git pull --rebase origin master
git submodule sync
git submodule update --init

After this is done we apply the ac3+ patch to git disregard the white spaces and or squelched white space error

git apply ../dmAc3pluEnigma2openpli4.patch

If patch is ok :

cd build

source env.source

MACHINE=dm8000 bitbake openpli-enigma2-feed  (or you're personal image)

 

Now it's build with ac3+ support for dm8000

Attached Files


Edited by christophecvr, 28 February 2014 - 08:32.


Re: Openpli Quick setup Ubuntu/debian #339 sfasf

  • Member
  • 26 posts

0
Neutral

Posted 18 April 2014 - 18:58

Currently 2 running tasks (2107 of 3333):
0: gst-plugins-base-0.10.36.1+gitAUTOINC+bdb3316347-r2 do_package_write_ipk (pid 14079)
1: gst-plugin-dreambox-dvbmediasink-0.10+gitAUTOINC+7671ff6f07-r10 do_patch (pid 23705)
Trying to run: tmux att -t devshell-23705
no sessions
Trying to run: tmux att -t devshell-23705
no sessions
Trying to run: tmux att -t devshell-23705
no sessions
Trying to run: tmux att -t devshell-23705
no sessions
Trying to run: tmux att -t devshell-23705
no sessions
Trying to run: tmux att -t devshell-23705
no sessions
Trying to run: tmux att -t devshell-23705
no sessions
Trying to run: tmux att -t devshell-23705
no sessions
Trying to run: tmux att -t devshell-23705
WARNING: Tmux started. Please connect in another terminal with `tmux att -t devshell-23705`
ERROR: Unable to spawn terminal auto: Execution of '/openpli/openpli-oe-core/build/tmp/work/mips32el-oe-linux/gst-plugin-dreambox-dvbmediasink/0.10+gitAUTOINC+7671ff6f07-r10/temp/run.do_terminal.23705' failed with exit code 1:
duplicate session: devshell-23705

ERROR: Function failed: patch_do_patch
ERROR: Logfile of failure stored in: /openpli/openpli-oe-core/build/tmp/work/mips32el-oe-linux/gst-plugin-dreambox-dvbmediasink/0.10+gitAUTOINC+7671ff6f07-r10/temp/log.do_patch.23705
ERROR: Task 2275 (/openpli/openpli-oe-core/meta-openpli/recipes-bsp/dreambox/gst-plugin-dreambox-dvbmediasink_0.10.bb, do_patch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2108 tasks of which 15 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
  /openpli/openpli-oe-core/meta-openpli/recipes-bsp/dreambox/gst-plugin-dreambox-dvbmediasink_0.10.bb, do_patch
Summary: There were 16 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
make: *** [image] Error 1

image doesn't compile. any idea why this shit happens?



Re: Openpli Quick setup Ubuntu/debian #340 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 18 April 2014 - 21:50

Yes A very good idea of what happening.

 

First remove the build off gst-dreambox -dvbmadisin....

 

cd to openpli-oe-core/build

christophe@stefan2l:~/openpli40/openpli-oe-core/build$ source env.source

christophe@stefan2l:~/openpli40/openpli-oe-core/build$ MACHINE=dm8000 bitbake -b ../meta-openpli/recipes-bsp/dreambox/gst-plugin-dreambox-dvbmediasink_0.10.bb -f -c cleanall

christophe@stefan2l:~/openpli40/openpli-oe-core/build$ cd ..

christophe@stefan2l:~/openpli40/openpli-oe-core$ and then in this dir

git stash

git pull --ff-only

git pull --rebase

git submodule sync &&

git submodule update --init &&

git apply ../Dts-PasstroughPatch-Removal.patch   (this patch is included here)

git apply ../cvrMydmac3.patch  (only iff you want ac3+ support in you're dm8000 )

 

cd build

source env.source

MACHINE=dm8000 bitbake <you're image or feeds>

 

 

The machine is off course you're dm I gues it was dm8000

Attached Files


Edited by christophecvr, 18 April 2014 - 21:52.



2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users