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 #101 blzr

  • PLi® Core member
  • 2,270 posts

+118
Excellent

Posted 14 January 2012 - 21:04

you can try:
bitbake -b ~/openpli/openembedded/recipes/enigma2/enigma2.bb -f -c compile
then
bitbake -b ~/openpli/openembedded/recipes/enigma2/enigma2.bb
and (if need be)
bitbake -b openpli-enigma2-image.bb
I don't know if it's the 'right' way to do it (and surely there is another, easier one ;))
but it should /?/ do the job...
True sarcasm doesn't need green font...

Re: Openpli Quick setup Ubuntu/debian #102 homes23

  • Member
  • 3 posts

0
Neutral

Posted 15 January 2012 - 11:23

Packaged contents of enigma2-meta into /home/homes22/openpli/dm7020hd/build-dm7020hd/tmp/deploy/ipk/dm7020hd/enigma2-meta_2.7+git9338+56de2b9-r29_dm7020hd.ipk
NOTE: package enigma2-2.7+git0+56de2b92d7c2cf78bd93f8ac5651408f1ece74aa-r29: task do_package_write_ipk: Succeeded
NOTE: Running task 2780 of 2798 (ID: 128, /home/homes22/openpli/dm7020hd/openembedded/recipes/enigma2/enigma2.bb, do_package_write)
NOTE: package enigma2-2.7+git0+56de2b92d7c2cf78bd93f8ac5651408f1ece74aa-r29: task do_package_write: Started
NOTE: package enigma2-2.7+git0+56de2b92d7c2cf78bd93f8ac5651408f1ece74aa-r29: task do_package_write: Succeeded
NOTE: Running task 2781 of 2798 (ID: 129, /home/homes22/openpli/dm7020hd/openembedded/recipes/enigma2/enigma2.bb, do_package_stage)
NOTE: package enigma2-2.7+git0+56de2b92d7c2cf78bd93f8ac5651408f1ece74aa-r29: task do_package_stage: Started
NOTE: package enigma2-2.7+git0+56de2b92d7c2cf78bd93f8ac5651408f1ece74aa-r29: task do_package_stage: Succeeded
hi

i have start a build and they stopt on this take wat can i do ????

Re: Openpli Quick setup Ubuntu/debian #103 awx

  • Senior Member
  • 297 posts

+17
Neutral

Posted 15 January 2012 - 11:51

you can try:

bitbake -b ~/openpli/openembedded/recipes/enigma2/enigma2.bb -f -c compile
then
bitbake -b ~/openpli/openembedded/recipes/enigma2/enigma2.bb
and (if need be)
bitbake -b openpli-enigma2-image.bb
I don't know if it's the 'right' way to do it (and surely there is another, easier one ;))
but it should /?/ do the job...

Thanks, that does the trick :)

Re: Openpli Quick setup Ubuntu/debian #104 awx

  • Senior Member
  • 297 posts

+17
Neutral

Posted 20 January 2012 - 10:28


you can try:

bitbake -b ~/openpli/openembedded/recipes/enigma2/enigma2.bb -f -c compile
then
bitbake -b ~/openpli/openembedded/recipes/enigma2/enigma2.bb
and (if need be)
bitbake -b openpli-enigma2-image.bb
I don't know if it's the 'right' way to do it (and surely there is another, easier one ;))
but it should /?/ do the job...

Thanks, that does the trick :)

correction, this only force compiles if there is no new git patch available, otherwise it gets the new source :(

Re: Openpli Quick setup Ubuntu/debian #105 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 20 January 2012 - 10:49

git clone the e2 repository, and build from the srctree bb file (which lives in the e2 repository itself)
(bitbake -b <path to repository>\enigma2.bb)

Re: Openpli Quick setup Ubuntu/debian #106 awx

  • Senior Member
  • 297 posts

+17
Neutral

Posted 20 January 2012 - 11:07

git clone the e2 repository, and build from the srctree bb file (which lives in the e2 repository itself)
(bitbake -b <path to repository>\enigma2.bb)

I will try this thanks

Re: Openpli Quick setup Ubuntu/debian #107 gonesl

  • Member
  • 26 posts

0
Neutral

Posted 21 January 2012 - 18:49

Hello.

I'm facing problems while trying to follow this post building for dm8000:


...
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



As everyone, I can not download sources. In many cases I can get it by hand, but I don't know what to do in this situation:

NOTE: package opkg-utils-native-0.1.8+svnr4747-r6: task Fetch failed: Unable to fetch URL svn://svn.openmoko.org/svn/trunk/src/host/;module=opkg-utils;proto=http from any source.: Failed
ERROR: Function 'Fetch failed: Unable to fetch URL svn://svn.openmoko.org/svn/trunk/src/host/;module=opkg-utils;proto=http from any source.' failed
ERROR: Task 25 (virtual:native:/home/gonesl/openpli/openembedded/recipes/opkg-utils/opkg-utils_svn.bb, do_fetch) failed with exit code '1'

Please, help.

Re: Openpli Quick setup Ubuntu/debian #108 blzr

  • PLi® Core member
  • 2,270 posts

+118
Excellent

Posted 21 January 2012 - 21:49

try this
//and don't forget md5 file...

Attached Files


True sarcasm doesn't need green font...

Re: Openpli Quick setup Ubuntu/debian #109 gonesl

  • Member
  • 26 posts

0
Neutral

Posted 22 January 2012 - 13:46

Looks like it works. Currently compiling. Thanks for help!

Re: Openpli Quick setup Ubuntu/debian #110 gonesl

  • Member
  • 26 posts

0
Neutral

Posted 23 January 2012 - 18:05

Sorry for double post, but I have question - where in build environment can I modify enigma2 files? I'm thinkg about the ones placed in /usr/lib/enigma2/python directory.

Re: Openpli Quick setup Ubuntu/debian #111 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 25 January 2012 - 22:12

You need to change trough patching the specific .bb file. but first clean the already build one then patch the bb file. You can depent on wich program eventually patch the source located in sources directory. And run bitbake -b ../openembedded/recipes/.../...bb -f build

If You patch the source and retar it, do not forget to make .md5 sumfile again.

Edited by christophecvr, 25 January 2012 - 22:14.


Re: Openpli Quick setup Ubuntu/debian #112 gonesl

  • Member
  • 26 posts

0
Neutral

Posted 26 January 2012 - 22:16

I have another question - how can I modify "global" CFLAGS? I want to build every package with -ggdb, for example.

Re: Openpli Quick setup Ubuntu/debian #113 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 26 January 2012 - 22:24

-g is the default (because it doesn't modify the binary, and debug symbols are stripped after the build)
Only thing you might want to change is use -O0 instead of -O2, if you want to step through code.
And avoid stripping of course.

To achieve that, you'd best build the e2 binary using the srctree recipe:

git clone <e2 repos url>
bitbake -b <path_to_e2_srctree>/enigma2.bb -c compile

and copy the binary from enigma2/main/
You might want to add something like

EXTRA_OEMAKE = 'CXXFLAGS+="-O0 -g"'

to enigma2.bb

Edited by pieterg, 26 January 2012 - 22:25.


Re: Openpli Quick setup Ubuntu/debian #114 gonesl

  • Member
  • 26 posts

0
Neutral

Posted 27 January 2012 - 14:36

Is this possible to disable stripping globally? I wanted to create environment for development builds.

Re: Openpli Quick setup Ubuntu/debian #115 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 27 January 2012 - 17:19

I think you can tell bitbake to skip stripping.
There are options like
PACKAGE_STRIP
INHIBIT_PACKAGE_STRIP
export STRIP="/bin/true"

but in the end, it all depends on the makefile of the package you're building.

And, an unstripped image would be several hundreds of megabytes, so I think you only want to have debug symbols in the piece of code you're actually developing.

Re: Openpli Quick setup Ubuntu/debian #116 gonesl

  • Member
  • 26 posts

0
Neutral

Posted 27 January 2012 - 17:51

I'm trying to debug enigma2 and it's plugins. That's true, that I dont need symbols for everything.

Re: Openpli Quick setup Ubuntu/debian #117 gonesl

  • Member
  • 26 posts

0
Neutral

Posted 27 January 2012 - 22:24

Sorry for dobule post, but I have to bump:

I'm not sure, but there is probably generated package enigma2-dbg. Can I read symbols from this file and debug it through this?
My target is to debug tuxtxt.

Re: Openpli Quick setup Ubuntu/debian #118 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 27 January 2012 - 23:37

yes you can.
But my advise is to build a debug binary with bitbake -b <...> -c compile
You don't want to debug the standard e2 binary which is in the image, you want to debug new code you're adding, and you'll need frequent recompiles.

Edited by pieterg, 27 January 2012 - 23:37.


Re: Openpli Quick setup Ubuntu/debian #119 gonesl

  • Member
  • 26 posts

0
Neutral

Posted 28 January 2012 - 14:24

What's interesting,
EXTRA_OEMAKE = 'CXXFLAGS+="-O0 -g"
casues compilation errors:

| In file included from ../../lib/base/eerror.h:7,
|				  from ../../lib/base/object.h:10,
|				  from ../../lib/actions/action.h:4,
|				  from action.cpp:1:
| ../../include/libsig_comp.h:4:27: error: sigc++/sigc++.h: No such file or directory
| ../../include/libsig_comp.h:5:25: error: sigc++/bind.h: No such file or directory
| In file included from ../../lib/base/object.h:10,
|				  from ../../lib/actions/action.h:4,

...and mass of other noise.
I'm not sure it is correct way of setting it, beucase of:

| + oenote make -j5 CXXFLAGS+=-ggdb
| + echo NOTE: 'make -j5 CXXFLAGS+=-ggdb'
| NOTE: make -j5 CXXFLAGS+=-ggdb
| + make -j5 CXXFLAGS+=-ggdb


Re: Openpli Quick setup Ubuntu/debian #120 sfasf

  • Member
  • 26 posts

0
Neutral

Posted 19 February 2012 - 02:07

tried to follow these build howtos but i'm getting stucked with this error:


devuser@ub800se:~/openpli$ make -f ~/openpli/Makefile-2.1 image
cd /home/devuser/openpli/openembedded && git pull origin master && git submodule update
From git://openpli.git.sourceforge.net/gitroot/openpli/openembedded
 * branch		    master	 -> FETCH_HEAD
Already up-to-date.
cd /home/devuser/openpli/build-dm800se; . ./env.source; bitbake openpli-enigma2-image
ERROR: Error evaluating '${@bb.fetch.get_srcrev(d)}'##############										 | ETA:  00:03:29
Traceback (most recent call last):
  File "/home/devuser/openpli/bitbake/lib/bb/data_smart.py", line 117, in expandWithRefs
    s = __expand_python_regexp__.sub(varparse.python_sub, s)
  File "/home/devuser/openpli/bitbake/lib/bb/data_smart.py", line 76, in python_sub
    value = utils.better_eval(codeobj, DataContext(self.d))
  File "/home/devuser/openpli/bitbake/lib/bb/utils.py", line 387, in better_eval
    return eval(source, _context, locals)
  File "SRCPV", line 1, in <module>
  File "/home/devuser/openpli/bitbake/lib/bb/fetch/__init__.py", line 391, in get_srcrev
    ud.setup_localpath(d)
FetchError: Fetch command export HOME="/home/devuser"; export PATH="/home/devuser/openpli/local//bin:/home/devuser/openpli/openembedded//bin:/home/devuser/openpli/bitbake//bin:/home/devuser/openpli/build-dm800se//bin:/home/devuser/openpli/build-dm800se/tmp/sysroots/i686-linux/usr/mipsel/bin:/home/devuser/openpli/build-dm800se/tmp/sysroots/i686-linux/usr/sbin:/home/devuser/openpli/build-dm800se/tmp/sysroots/i686-linux/usr/bin:/home/devuser/openpli/build-dm800se/tmp/sysroots/i686-linux/sbin:/home/devuser/openpli/build-dm800se/tmp/sysroots/i686-linux//bin:/home/devuser/openpli/bitbake/bin:/home/devuser/openpli/build-dm800se/tmp/cross/mipsel/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"; git ls-remote git://openpli.git.sourceforge.net/gitroot/openpli/plugin-xmltvimport master failed with signal 128, output:
openpli.git.sourceforge.net[0: 216.34.181.91]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)


what's wrong and how can i solve this? any ideas? connection seems to be ok. using Ubuntu-10.10-server as tutorial suggests. 32bit sys..


7 user(s) are reading this topic

0 members, 7 guests, 0 anonymous users