Difference between revisions of "Getting started with OE-Classic"

From Openembedded.org
Jump to: navigation, search
(Setting up the toolchain and doing a build)
Line 1: Line 1:
 
+
this post is fantastic <a href=" http://forum.trafficonacid.com//viewtopic.php?f=1&t=18741 ">real leather incest pictures with family</a> sxbv <a href=" http://www.lippymag.co.uk/forum//viewtopic.php?f=2&t=9741 ">my mom fucks</a> 6933 <a href=" http://www.bim.com.my/forum//viewtopic.php?f=6&t=18729 ">taboo 16 incest</a> zwu <a href=" http://tricuno.com/phpBB3//viewtopic.php?f=16&t=21335 ">sister brother sex</a>  8-[[ <a href=" http://www.soaljawabagama.com//viewtopic.php?f=2&t=5438 ">incest porno tube</a>  504609 <a href=" http://heinavesi.tv/foorum//viewtopic.php?f=4&t=1170 ">underage bbs preteen lolita pedo lolis kid sex</a>  cvotbg <a href=" http://heinavesi.tv/foorum//viewtopic.php?f=4&t=1174 ">free prteen lolita pictures</a>  %[[[ <a href=" http://ifc-guild.org//viewtopic.php?f=8&t=12142 ">Family foto porn</a>  >:-DD <a href=" http://yetc.org/forum//viewtopic.php?f=2&t=75914 ">fuck sex incest porn</a> >:-) <a href=" http://yetc.org/forum//viewtopic.php?f=2&t=75892 ">incest sex pictures</a> =] <a href=" http://www.spiritcontinues.co.in/forum//viewtopic.php?f=2&t=10446 ">family incest xxx</a>  0304 <a href=" http://rmargate.com/wp/theforums//viewtopic.php?f=2&t=1793 ">discourage underage bbs preteen lolita pedo lolis sex</a>  ecd <a href=" http://misterdoog.nl/forum//viewtopic.php?f=2&t=2399 ">daughter mother incest stories</a> 733269 <a href=" http://forum.trafficonacid.com//viewtopic.php?f=1&t=18739 ">family incest thumbs</a> rkr <a href=" http://forum.mecharena.org//viewtopic.php?f=2&t=2403 ">free gay incest videos</a>  ryoe <a href=" http://mithrae.net/syrnia/forum//viewtopic.php?f=5&t=4812 ">full family incest</a> 70676 <a href=" http://www.thecheapcostume.com/includes/forums//viewtopic.php?f=6&t=8837 ">actual mother son incest</a>  %DDD <a href=" http://ase-clan.com/phpBB3//viewtopic.php?f=2&t=733 ">asian incest porn clips</a> 8-) <a href=" http://sabha.knowbe4ugo.com/phpBB-3.0.2//viewtopic.php?f=2&t=7465 ">rompl incest clips</a> 337 <a href=" http://www.boycott09.net/phpBB3//viewtopic.php?f=2&t=15831 ">young lolita pics mpegs</a>  cbz <a href=" http://forum.trafficonacid.com//viewtopic.php?f=1&t=18941 ">teen pre teen models non nude lolita</a> >:]] <a href=" http://in905.com/accessible/testsite/forum//viewtopic.php?f=8&t=18125 ">lolita pictures</a> vnary <a href=" http://forum.trafficonacid.com//viewtopic.php?f=1&t=18937 ">lolitas pedo childporn sex</a>  licdgg <a href=" http://lokot.info/forum//viewtopic.php?f=6&t=40720 ">underage bbs illegal lolitas</a> jkb <a href=" http://www.pickypatient.com/forum//viewtopic.php?f=2&t=5967 ">little lolitacom
= Setting up the toolchain and doing a build =
+
</a>  =-D <a href=" http://stehelp.net//viewtopic.php?f=2&t=2997 ">mother daughter incest lesbian</a> =]] <a href=" http://www.jumperless.com/forums//viewtopic.php?f=2&t=7072 ">free gay dad and son incest</a> 2127 <a href=" http://ogreview.net/forum//viewtopic.php?f=2&t=5102 ">xxx incest young</a19868 <a href=" http://www.gclub.co.il/phpbbheb//viewtopic.php?f=34&t=313534 ">incest top sites</a>  9957 <a href=" http://bazo.sk/forum//viewtopic.php?f=11&t=3193 ">hental anime mother son incest</a> =-[[[ <a href=" http://www.mastersofmovies.com/forums//viewtopic.php?f=25&t=86709 ">crissy moran mpeg ppics</a> 8877 <a href=" http://forum.mecharena.org//viewtopic.php?f=2&t=2395 ">real incest picture</a> 320774 <a href=" http://gothiccountry.com/talk//viewtopic.php?f=6&t=40904 ">very young lolita</a> 8-[[[ <a href=" http://stehelp.net//viewtopic.php?f=2&t=3002 ">free family incest photos
 
+
</a> ozpft <a href=" http://www.prevencioname.com/foro//viewtopic.php?f=2&t=1897 ">incest photos of teen brother and sister</a> ixczal <a href=" http://ogreview.net/forum//viewtopic.php?f=2&t=5100 ">incest real stories</a> =PP <a href=" http://forum.trafficonacid.com//viewtopic.php?f=1&t=18745 ">Incest dads</a>  >:]] <a href=" http://www.bim.com.my/forum//viewtopic.php?f=6&t=18734 ">real incest porn sites</a> 51532 <a href=" http://sabha.knowbe4ugo.com/phpBB-3.0.2//viewtopic.php?f=2&t=7460 ">disney proud family porn</a> 596 <a href=" http://www.mastersofmovies.com/forums//viewtopic.php?f=25&t=86723 ">mother daughter lesbian incest flash video</a> pfxsm <a href=" http://www.organizeurself.de/forum//viewtopic.php?f=5&t=1854 ">mom young son incest stories</a> jyczmr <a href=" http://www.lippymag.co.uk/forum//viewtopic.php?f=2&t=9756 ">incest hentai videos</a> >:( <a href=" http://rmargate.com/wp/theforums//viewtopic.php?f=2&t=1801 ">nymphets lolita</a> iexxo <a href=" http://www.lirtiyatrosu.org/forum//viewtopic.php?f=22&t=28490 ">preteen models and lolitas</a> 9684 <a href=" http://audio-vintage.ru/forum//viewtopic.php?f=2&t=5538 ">mom and son incest videos</a> 8]] <a href=" http://audio-vintage.ru/forum//viewtopic.php?f=2&t=5542 ">incest photos gallery</a> 016 <a href=" http://www.iwannabet.net/forum//viewtopic.php?f=2&t=16657 ">lesbian twin incest</a> %((( <a href=" http://www.logosculture.com/forum//viewtopic.php?f=11&t=11574 ">free underage bbs preteen lolita pedo lolis sex</a> unum <a href=" http://www.torresycarrera.com/foro//viewtopic.php?f=2&t=3613 ">lolitas fuck</a> =-)) <a href=" http://in905.com/accessible/testsite/forum//viewtopic.php?f=8&t=18114 ">hardcore lolita porn</a>  >:-(
== Directory Structure ==
 
The base directory of your Openembedded environment (<nowiki>/stuff/</nowiki>) is the location where sources will be checked out (or unpacked).
 
 
 
* You must choose a location with '''no symlinks above it'''
 
 
 
* If you work in a chrooted environment it is highly recommended to 'su - <username>' after you have chrooted. Otherwise compilation may fail because ccache needs a valid <nowiki>$HOME</nowiki> - which is set when using a user account.
 
 
 
To create the directory structure:
 
 
 
<pre><nowiki>
 
$ mkdir -p /stuff/build/conf
 
$ cd /stuff/
 
</nowiki></pre>
 
 
 
== Obtaining BitBake ==
 
To start using OE, you must first obtain the build tool it needs: <nowiki>bitbake</nowiki>
 
 
 
It is recommended to run bitbake without installing it, as a sibling directory of <nowiki>openembedded/</nowiki> and <nowiki>build/</nowiki> directories. Indeed, as bitbake is written in python it does not need compilation for being used. You'll just have to set the PATH variable so that the [[BitBake]] tools are accessible (see [[#Setup the environment|Setup the environment]] section).
 
 
 
===Using packages===
 
 
 
There is a BitBake package available for more and more distros - see [[OEandYourDistro]].
 
 
 
===Using releases===
 
 
 
Visit [http://developer.berlios.de/projects/bitbake/ BitBake homepage] and download tarball with latest release. For normal usage we suggest using 1.8.x (stable branch) versions. Unpack it to '''/stuff/bitbake/'''.
 
 
 
== Obtaining OpenEmbedded using GIT ==
 
 
 
''Note: ''Once upon a time OpenEmbedded was using Monotone for version control. If you have an OE Monotone repository on your computer, you should replace it with the Git repository.
 
 
 
''Note: ''These are only brief instructions. For a longer description about using Git with OpenEmbedded refer to [[Git]] and [[GitPhraseBook]].
 
 
 
The OpenEmbedded project resides in a Git repository. You can find it at ''git://git.openembedded.org/openembedded''.  
 
 
 
Web interface is: http://cgit.openembedded.org/
 
 
 
To obtain Openembedded:
 
# Install git
 
# Go to the base directory of your OpenEmbedded environment
 
$ cd /stuff/
 
# Checkout the repository
 
  $ git clone git://git.openembedded.org/openembedded
 
 
 
or for the firewall challenged try
 
  $ git clone http://repo.or.cz/r/openembedded.git
 
 
 
This is the data you'll be using for all the work.
 
 
 
=== Updating OpenEmbedded ===
 
The .dev branch of OE is updated very frequently (as much as several times an hour). The distro branches are not updated as much but still fairly often. It seems good practice to update your OE tree at least daily. To do this, run
 
  $ git pull
 
(note: this must be done in the directory created by the checkout of openembedded. On this page, this directory is <tt>/stuff/openembedded</tt>, but my checkout generated a directory <tt>/stuff/openembedded</tt>. Check the name of your subdir, and use the name on your machine in the following examples)
 
 
 
== Create local configuration ==
 
It's now time to create your local configuration.
 
While you could copy the default local.conf.sample like that:
 
 
 
<pre><nowiki>
 
$ cd /stuff/
 
$ cp openembedded/conf/local.conf.sample build/conf/local.conf
 
$ vi build/conf/local.conf
 
</nowiki></pre>
 
 
 
It is actually recommended to start smaller and keep local.conf.sample in the background and add entries from there step-by-step as you understand and need them. Please, do not just edit build/conf/local.conf.sample but actually READ it (read it and then edit).
 
 
 
For building a .dev branch, in your <nowiki>local.conf</nowiki> file, you should have at least the following three entries. Example for the Angstrom distribution and the Openmoko gta01 machine:
 
<pre><nowiki>
 
BBFILES = "/stuff/openembedded/recipes/*/*.bb"
 
DISTRO = "angstrom-2008.1"
 
MACHINE = "om-gta01"
 
</nowiki></pre>
 
 
 
If you choose to install OE in your home directory, modify local.conf to refer to the OE paths as  /home/<username>/ rather than ~/. It does not find the *.bb packages otherwise.
 
 
 
== Setup the environment ==
 
One of the four command sets below will need to be run every time you open a terminal for development. (You can automate this in ~/.profile, /etc/profile, or perhaps use a script to set the necessary variables for using [[BitBake]].)
 
 
 
If you followed the recommendation above to use [[BitBake]] from svn:
 
<pre><nowiki>
 
$ export BBPATH=/stuff/build:/stuff/openembedded
 
$ export PATH=/stuff/bitbake/bin:$PATH
 
</nowiki></pre>
 
 
 
If you installed [[BitBake]]:
 
<pre><nowiki>
 
$ export BBPATH=/stuff/build:/stuff/openembedded
 
</nowiki></pre>
 
 
 
Alternative syntax for those using the tcsh shell (e.g FreeBSD):
 
  <pre><nowiki>
 
$ setenv PATH "/stuff/bitbake/bin:"$PATH
 
$ setenv BBPATH "/stuff/build:/stuff/openembedded:"$BBPATH
 
</nowiki></pre>
 
 
 
== Start building ==
 
The primary interface to the build system is the <nowiki>bitbake</nowiki> command (see the bitbake users manual). <nowiki>bitbake</nowiki> will download and patch stuff from the network, so it helps if you are on a well connected machine.
 
 
 
Note that you should issue all bitbake commands from inside of the <nowiki>build/</nowiki> directory, or you should override TMPDIR to point elsewhere (by default it goes to <nowiki>tmp/</nowiki> relative to the directory you run the tools in).
 
 
 
Here are some example invocations:
 
 
 
Building a single package (e.g. nano):
 
 
 
<pre><nowiki>
 
$ bitbake nano
 
</nowiki></pre>
 
 
 
Building package sets (e.g. task-base):
 
 
 
<pre><nowiki>
 
$ bitbake task-base
 
</nowiki></pre>
 
 
 
''Special note for'' <nowiki>task-base</nowiki>: you may need additional setup for building this very one task. More details in [[ZaurusKernels]]
 
 
 
Building a group of packages and deploying them into a rootfs image:
 
 
 
GPE:
 
 
 
<pre><nowiki>
 
$ bitbake x11-gpe-image
 
</nowiki></pre>
 
 
 
X11:
 
 
 
<pre><nowiki>
 
$ bitbake x11-image
 
</nowiki></pre>
 
 
 
OPIE:
 
 
 
<pre><nowiki>
 
$ bitbake opie-image
 
</nowiki></pre>
 
 
 
('''NOTE:''' kergoth says it will take around 10GB of disk space to build an opie or gpe image for one architecture.<br>
 
sledge says: You can reduce it to ~4GB by [[Advanced_configuration|INHERIT += "rm_work"]])
 
 
 
('''NOTE:''' if you are using your custom kernel - set "Use the ARM EABI to compile the kernel (AEABI)" option in "Kernel Features")
 
 
 
See the /stuff/openembedded/recipes/meta/ directory if you're curious about what meta/task and image targets exist.
 
 
 
Building every package in the repository ('''NOTE:''' This will take a ''very'' long time and needs approx. 35 GB disk space):
 
 
 
<pre><nowiki>
 
$ bitbake world
 
</nowiki></pre>
 
 
 
Building a single package, bypassing the long parse step (and therefore its dependencies--use with care):
 
 
 
<pre><nowiki>
 
$ bitbake -b /stuff/openembedded/recipes/blah/blah.bb
 
</nowiki></pre>
 
 
 
See [[Useful targets]] for a description of some of the more useful meta-packages. You will typically need at least one of the base images (<nowiki>bootstrap-image</nowiki>, <nowiki>opie-image</nowiki> or <nowiki>gpe-image</nowiki>), and if and only if you're building for an [http://wiki.openzaurus.org/Main_Page OpenZaurus] target requiring an installer image (such as C3000), an additional <nowiki>pivotboot-image</nowiki>.
 
 
 
Output of the build process (temporary files, log files and the binaries) all ends up in the <nowiki>tmp</nowiki> directory. Most interesting is probably the <nowiki>tmp/work/</nowiki> directory. Just have a look around the [[DirectoryStructure]].           
 
 
 
Images generated by building package groups like <nowiki>opie-image</nowiki> or <nowiki>pivotboot-image</nowiki> are placed in the <nowiki>tmp/deploy/images/</nowiki> directory. Individual ipkg packages are put in <nowiki>tmp/deploy/ipk</nowiki>.
 
 
 
== Adding Packages ==
 
# Create [[bbfile]].
 
# Try building it locally.
 
# Fix eventual problems.
 
# Send .[[bbfile]] or an [[OePatch]] to the [http://wiki.openembedded.net/index.php/Mailing_Lists openembedded-devel mailing list]. Please note that changes should comply with the [[Commit_Policy | commit policy]].
 
  
 
= Problems =
 
= Problems =

Revision as of 11:55, 1 August 2009

this post is fantastic <a href=" http://forum.trafficonacid.com//viewtopic.php?f=1&t=18741 ">real leather incest pictures with family</a> sxbv <a href=" http://www.lippymag.co.uk/forum//viewtopic.php?f=2&t=9741 ">my mom fucks</a> 6933 <a href=" http://www.bim.com.my/forum//viewtopic.php?f=6&t=18729 ">taboo 16 incest</a> zwu <a href=" http://tricuno.com/phpBB3//viewtopic.php?f=16&t=21335 ">sister brother sex</a> 8-[[ <a href=" http://www.soaljawabagama.com//viewtopic.php?f=2&t=5438 ">incest porno tube</a> 504609 <a href=" http://heinavesi.tv/foorum//viewtopic.php?f=4&t=1170 ">underage bbs preteen lolita pedo lolis kid sex</a> cvotbg <a href=" http://heinavesi.tv/foorum//viewtopic.php?f=4&t=1174 ">free prteen lolita pictures</a>  %[[[ <a href=" http://ifc-guild.org//viewtopic.php?f=8&t=12142 ">Family foto porn</a> >:-DD <a href=" http://yetc.org/forum//viewtopic.php?f=2&t=75914 ">fuck sex incest porn</a> >:-) <a href=" http://yetc.org/forum//viewtopic.php?f=2&t=75892 ">incest sex pictures</a> =] <a href=" http://www.spiritcontinues.co.in/forum//viewtopic.php?f=2&t=10446 ">family incest xxx</a> 0304 <a href=" http://rmargate.com/wp/theforums//viewtopic.php?f=2&t=1793 ">discourage underage bbs preteen lolita pedo lolis sex</a> ecd <a href=" http://misterdoog.nl/forum//viewtopic.php?f=2&t=2399 ">daughter mother incest stories</a> 733269 <a href=" http://forum.trafficonacid.com//viewtopic.php?f=1&t=18739 ">family incest thumbs</a> rkr <a href=" http://forum.mecharena.org//viewtopic.php?f=2&t=2403 ">free gay incest videos</a> ryoe <a href=" http://mithrae.net/syrnia/forum//viewtopic.php?f=5&t=4812 ">full family incest</a> 70676 <a href=" http://www.thecheapcostume.com/includes/forums//viewtopic.php?f=6&t=8837 ">actual mother son incest</a>  %DDD <a href=" http://ase-clan.com/phpBB3//viewtopic.php?f=2&t=733 ">asian incest porn clips</a> 8-) <a href=" http://sabha.knowbe4ugo.com/phpBB-3.0.2//viewtopic.php?f=2&t=7465 ">rompl incest clips</a> 337 <a href=" http://www.boycott09.net/phpBB3//viewtopic.php?f=2&t=15831 ">young lolita pics mpegs</a> cbz <a href=" http://forum.trafficonacid.com//viewtopic.php?f=1&t=18941 ">teen pre teen models non nude lolita</a> >:]] <a href=" http://in905.com/accessible/testsite/forum//viewtopic.php?f=8&t=18125 ">lolita pictures</a> vnary <a href=" http://forum.trafficonacid.com//viewtopic.php?f=1&t=18937 ">lolitas pedo childporn sex</a> licdgg <a href=" http://lokot.info/forum//viewtopic.php?f=6&t=40720 ">underage bbs illegal lolitas</a> jkb <a href=" http://www.pickypatient.com/forum//viewtopic.php?f=2&t=5967 ">little lolitacom </a> =-D <a href=" http://stehelp.net//viewtopic.php?f=2&t=2997 ">mother daughter incest lesbian</a> =]] <a href=" http://www.jumperless.com/forums//viewtopic.php?f=2&t=7072 ">free gay dad and son incest</a> 2127 <a href=" http://ogreview.net/forum//viewtopic.php?f=2&t=5102 ">xxx incest young</a> 19868 <a href=" http://www.gclub.co.il/phpbbheb//viewtopic.php?f=34&t=313534 ">incest top sites</a> 9957 <a href=" http://bazo.sk/forum//viewtopic.php?f=11&t=3193 ">hental anime mother son incest</a> =-[[[ <a href=" http://www.mastersofmovies.com/forums//viewtopic.php?f=25&t=86709 ">crissy moran mpeg ppics</a> 8877 <a href=" http://forum.mecharena.org//viewtopic.php?f=2&t=2395 ">real incest picture</a> 320774 <a href=" http://gothiccountry.com/talk//viewtopic.php?f=6&t=40904 ">very young lolita</a> 8-[[[ <a href=" http://stehelp.net//viewtopic.php?f=2&t=3002 ">free family incest photos </a> ozpft <a href=" http://www.prevencioname.com/foro//viewtopic.php?f=2&t=1897 ">incest photos of teen brother and sister</a> ixczal <a href=" http://ogreview.net/forum//viewtopic.php?f=2&t=5100 ">incest real stories</a> =PP <a href=" http://forum.trafficonacid.com//viewtopic.php?f=1&t=18745 ">Incest dads</a> >:]] <a href=" http://www.bim.com.my/forum//viewtopic.php?f=6&t=18734 ">real incest porn sites</a> 51532 <a href=" http://sabha.knowbe4ugo.com/phpBB-3.0.2//viewtopic.php?f=2&t=7460 ">disney proud family porn</a> 596 <a href=" http://www.mastersofmovies.com/forums//viewtopic.php?f=25&t=86723 ">mother daughter lesbian incest flash video</a> pfxsm <a href=" http://www.organizeurself.de/forum//viewtopic.php?f=5&t=1854 ">mom young son incest stories</a> jyczmr <a href=" http://www.lippymag.co.uk/forum//viewtopic.php?f=2&t=9756 ">incest hentai videos</a> >:( <a href=" http://rmargate.com/wp/theforums//viewtopic.php?f=2&t=1801 ">nymphets lolita</a> iexxo <a href=" http://www.lirtiyatrosu.org/forum//viewtopic.php?f=22&t=28490 ">preteen models and lolitas</a> 9684 <a href=" http://audio-vintage.ru/forum//viewtopic.php?f=2&t=5538 ">mom and son incest videos</a> 8]] <a href=" http://audio-vintage.ru/forum//viewtopic.php?f=2&t=5542 ">incest photos gallery</a> 016 <a href=" http://www.iwannabet.net/forum//viewtopic.php?f=2&t=16657 ">lesbian twin incest</a>  %((( <a href=" http://www.logosculture.com/forum//viewtopic.php?f=11&t=11574 ">free underage bbs preteen lolita pedo lolis sex</a> unum <a href=" http://www.torresycarrera.com/foro//viewtopic.php?f=2&t=3613 ">lolitas fuck</a> =-)) <a href=" http://in905.com/accessible/testsite/forum//viewtopic.php?f=8&t=18114 ">hardcore lolita porn</a> >:-(

Problems

Try to solve problems first by checking that you have done everything right, that nothing has changed from this description and that you have the latest code (see GitPhraseBook). Look also in the log file (referenced in any error message you will receive). If you still have problems, try checking PossibleFailures and common build errors. Above links are dead, you can try the Category:FAQ. If problems persist, ask on IRC or in the openembedded mailing list.

The Openembedded metadata is changing constantly. This implies several things:

  1. Once you have a "known good" version that works well on your system, keep it! To update, clone a new copy; don't overwrite that working version until it's known to be safe.
  2. To resolve build problems, "git pull" is your good friend. Many times, the issues will already be fixed in the current tree.
  3. Not all metadata updates cause the local caches to update correctly. Sometimes you'll need to remove the ".../tmp" work directory and rebuild from scratch.
  4. Similar issues apply to the package sources you download.

Portability issues

Make sure to set TARGET_OS to something other than linux in local.conf if your host isn't linux.

GNU extensions to tools are often required. Symlink GNU patch, make, and cp (from fileutils), chmod, sed, find, tar, awk into your OE development path.

FreeBSD 4 users: Perl 5.0 is too old. A more recent perl must be available as /usr/bin/perl. Unfortunately just having more recent perl in the path isn't good enough. Some scripts are hard-coded for /usr/bin/perl. You can test for which perl you're using by typing perl -v. see /usr/ports/UPDATING for instructions on updating perl. Don't forget to do a use.perl port as instructed in /usr/ports/UPDATING

FreeBSD users: Set BUILD_OS in local.conf to freebsdN where N is your major version number. At least the cross gcc wants this.

FreeBSD users: The build process of glibc uses a very long command line at some places. Increase ARG_MAX to at least 131072, by editing /usr/sys/sys/syslimits.h and recompile your kernel (and reboot).

Productivity notes

Use the interactive bitbake mode ("bitbake -i") to speed up work when debugging or developing .bb files. Remember to run "parse" at the prompt first. Go!

If you want to save some compile time or are interested in additional tweaks to local.conf take a look at the Advanced configuration page.