Jump to content


Photo

Building own OpenPli4


  • Please log in to reply
69 replies to this topic

#1 ims

  • PLi® Core member
  • 13,624 posts

+212
Excellent

Posted 7 September 2013 - 08:21

Did try somebody build OE4 for more machine ?

Does support OE4 building more machine types in same cloned oe or for each machine must to have cloned own oe?

 

for me - when is builded image for first machine - second machine crashing on "glib-2.0_2.36.4.bb" always


Kdo nic nedělá, nic nezkazí!

Re: Building own OpenPli4 #2 Erik Slagter

  • PLi® Core member
  • 46,960 posts

+541
Excellent

Posted 7 September 2013 - 08:24

That's interesting, because I was told it was supposed to work this way ;)

 

What does it say? I had something vague with gcc yesterday, but that vanished once I cleaned out the tmp directory.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Building own OpenPli4 #3 MiLo

  • PLi® Core member
  • 14,045 posts

+298
Excellent

Posted 7 September 2013 - 08:32

Our buildserver builds them ALL in one directory. So it should work. It's what it was designed for. (In fact, I've been using that feature at home on OpenPLi 3 too)
Real musicians never die - they just decompose

Re: Building own OpenPli4 #4 MiLo

  • PLi® Core member
  • 14,045 posts

+298
Excellent

Posted 7 September 2013 - 08:33

I did push a very large update yesterday. I tested a few clean builds on my machine, they ran fine.
Real musicians never die - they just decompose

Re: Building own OpenPli4 #5 Erik Slagter

  • PLi® Core member
  • 46,960 posts

+541
Excellent

Posted 7 September 2013 - 08:34

BTW does the dm8000 build work (yes, offtopic  ;))? (I.e. when I flash it, the dm8000 is operational), anyone tested?


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Building own OpenPli4 #6 ims

  • PLi® Core member
  • 13,624 posts

+212
Excellent

Posted 7 September 2013 - 08:47

tried more times... always same. May it, that when is used INHERIT += "rm_work", then error is not ? I am using building without INHERIT += "rm_work" in .conf

 

What i made:

create env:

1) create openpli4
2) cd openpli4
3) git clone -b upstream git://git.code.sf.net/p/openpli/openpli-oe-core .
4) make

 

then building:
MACHINE=dm800se make image

after it:

cd build;source env.source; MACHINE=dm800se bitbake openpli-enigma2-feed

 

next machine:

cd ~/openpli4

MACHINE=xp1000 make image

cd build;source env.source; MACHINE=xp1000 bitbake openpli-enigma2-feed

 

...

 

there in log for XP1000 is visible ...home/martin/openpli4/build/tmp/sysroots/dm800se/usr/lib ... = previous builded machine

Attached Files


Edited by ims, 7 September 2013 - 09:13.

Kdo nic nedělá, nic nezkazí!

Re: Building own OpenPli4 #7 ims

  • PLi® Core member
  • 13,624 posts

+212
Excellent

Posted 7 September 2013 - 09:07

I did push a very large update yesterday. I tested a few clean builds on my machine, they ran fine.

btw, when I builded first machine, there in mips32el-oe-linux/libmikmod/3.2.0-r1 was some problem with docs.patch


Kdo nic nedělá, nic nezkazí!

Re: Building own OpenPli4 #8 ims

  • PLi® Core member
  • 13,624 posts

+212
Excellent

Posted 7 September 2013 - 16:37

It seems, that may not be removed line:  INHERIT += "rm_work" . Then building for more machine works well.


Kdo nic nedělá, nic nezkazí!

Re: Building own OpenPli4 #9 MiLo

  • PLi® Core member
  • 14,045 posts

+298
Excellent

Posted 7 September 2013 - 16:42

Huh?

I have "rm_work" active on each and every OE build system I use... And they build for quite a few platforms...

Just be careful that it isn't activated twice, that will lead to some strange behaviour. And never manually delete the "tmp" dir, that will lead to unexpected results too.
Real musicians never die - they just decompose

Re: Building own OpenPli4 #10 Erik Slagter

  • PLi® Core member
  • 46,960 posts

+541
Excellent

Posted 7 September 2013 - 16:45

Just be careful that it isn't activated twice, that will lead to some strange behaviour. And never manually delete the "tmp" dir, that will lead to unexpected results too.

I often have to, because vague errors force me to do a complete fresh build.

 

How would you suggest to achieve the same goal then?


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Building own OpenPli4 #11 MiLo

  • PLi® Core member
  • 14,045 posts

+298
Excellent

Posted 7 September 2013 - 16:48

To "reset", remove both tmp and sstate-cache dirs. That works fine.

I've had some very weird failures further along, when deleting parts of the build/tmp dir that I thought were no longer needed, but caused build failures much later on.
Real musicians never die - they just decompose

Re: Building own OpenPli4 #12 Erik Slagter

  • PLi® Core member
  • 46,960 posts

+541
Excellent

Posted 7 September 2013 - 16:53

Okay, I always do remove tmp AND remove sstate-cache.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Building own OpenPli4 #13 ims

  • PLi® Core member
  • 13,624 posts

+212
Excellent

Posted 7 September 2013 - 17:21

There in OE3 can be removed INHERIT += "rm_work" .  Sources are not removed and it is better for looking etc (but it spend so much hdd, ok) ... Each machine's build has own mips32el-oe-linux. There under 4 it is common=> rm_work must be used, when is more machines.

It is not happy for building clear image for only one machine, when tmp and sstate-cache are "common" too. Where is bonus for this oe4 structure ?

 

I am using usualy cleansstate only. When is changed some in .cpp in enigma2, then I am using cleansstate for enigma2-plugins before building too.

 

How understand this (by MiLo): ?

"And never manually delete the "tmp" dir, that will lead to unexpected results too." and "To "reset", remove both tmp and sstate-cache dirs. That works fine."


Kdo nic nedělá, nic nezkazí!

Re: Building own OpenPli4 #14 ims

  • PLi® Core member
  • 13,624 posts

+212
Excellent

Posted 7 September 2013 - 17:51

Q: how it will be for feeds from my build ?

 

all_feed.conf ...  build/tmp/deploy/ipk/all

machine_feed.conf ... build/tmp/deploy/ipk/machine

mips32el_feed.conf ... build/tmp/deploy/ipk/mips32el

 

"all" and "mips32el" are really common for all machines ?


Kdo nic nedělá, nic nezkazí!

Re: Building own OpenPli4 #15 MiLo

  • PLi® Core member
  • 14,045 posts

+298
Excellent

Posted 7 September 2013 - 19:10

The "4" structure was intended to build everything into the same directory. Since all boxes have the same CPU and are much alike, OE doesn't need to build everything over and over again for each machine, but it'll just build the differences.

As for feeds, by default, the build will use your machine name and pack it into the feed config files. If you install apache, and create a symlink from
/var/www/feeds/openpli-4 to ${HOME}/openpli-oe-core/build/tmp/deploy/ipk (or so), you're done (if your hostname can be resolved).
Real musicians never die - they just decompose

Re: Building own OpenPli4 #16 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 7 September 2013 - 19:28

A trivial fix is also the following (>>openpli 3.0 <<) ;)

 

Generating /opt/openpli/openpli4/build/env.source

Generating /opt/openpli/openpli4/build/conf/openpli.conf

Generating /opt/openpli/openpli4/build/conf/bblayers.conf

Generating /opt/openpli/openpli4/build/conf/local.conf



Openembedded for the OpenPLi 3.0 environment has been initialized

properly. Now you can start building your image, by doing either:



 MACHINE=... make image



        or:



 cd /opt/openpli/openpli4/build

 source env.source

 MACHINE=... bitbake openpli-enigma2-image

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: Building own OpenPli4 #17 ims

  • PLi® Core member
  • 13,624 posts

+212
Excellent

Posted 7 September 2013 - 19:50

For "3" I am using there in distro-feed-configs.bb DISTRO_FEED_URI = "http://my_pc_ip/${MACHINE_ARCH}" and Apache and links.

 

Similar will be for "4", only different links and name in URI (DISTRO_FEED_URI = "http://my_pc_ip/4${MACHINE_ARCH}"


Kdo nic nedělá, nic nezkazí!

Re: Building own OpenPli4 #18 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 8 September 2013 - 00:16

Hello,

 

 

Can you please help me, i am trying to build OpenPLi 4 but compile fails. Any idea to overcome this issue;

 

ERROR: Task XXX (virtual:native:/opt/openpli/openpli4/openembedded-core/meta/recipes-devtools/bison/bison_2.7.1.bb, do_configure) failed with exit code '1'

 

Attached File  log.do_configure.32251.log   70.59KB   8 downloads

 

Build machine is Ubuntu 12.04 x64.

 


Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: Building own OpenPli4 #19 ims

  • PLi® Core member
  • 13,624 posts

+212
Excellent

Posted 8 September 2013 - 00:39

Flex is required   ... it seems, is not installed flex in ubuntu ?


Kdo nic nedělá, nic nezkazí!

Re: Building own OpenPli4 #20 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 8 September 2013 - 08:10

Flex is required ... it seems, is not installed flex in ubuntu ?


Flex is already installed.

$ flex --version
flex 2.5.35

This machine is hosted on OpenVZ, is it possible that OpenVZ to cause problem?

Edited by athoik, 8 September 2013 - 08:13.

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users