Setting up OE

Firstly read and digest http://www.openembedded.org/wiki/GettingStarted (or alternatively try QuickStart)

By following the instructions you should end up with four directories

A fifth directory (tmp) is created upon using bitbake for the first time

To start building for a particular machine and distribution the following must be defined either in conf/auto.conf or openembedded/conf/local.conf

For example, if the five directories are in /home/foo/balloon, then /home/foo/balloon/conf/auto.conf could be:

OpenEmbedded by default places downloaded files in the openembedded tmp directory. Sometimes (getting less often now) you need to delete the whole tmp directory. Fortunately you can avoid downloading all the files again if you ensure they placed somewhere else by using the DL_DIR directive.

For bitbake to work two environment vars must be set so bitbake knows where to find the packages (I think useful to save in a setup-env file or similar)

Then try building a package

For example:

Updating OE

To update your packages with the latest changes

Standalone usage

Bitbake

In essence Bitbake does the hard stuff whereas OpenEmbedded is the meta data (packages and conf files)

Details about bitbake can be found here http://bitbake.berlios.de/manual/

Useful bitbake options:

Encountered problems

As of Feb 2007 there is a yet to identified problem with some machine configurations that leads to the error 'Unable to open conf/bitbake.conf'. If you encounter this error in response to any bitbake command it is likely your .conf files are not being read, either due to typo (hopefully) or a more specific problem with the python scripts and interaction with the set environment of the PC. If the latter config problem the quickest solution to preserve sanity appears to be 'find a different machine'.

If bitbake package-index fails with ipkg-make-index not found then do a 'bitbake ipkg-utils', feel free to stop it once it gets to building X11 and rerun bitbake package-index.

Balloonboard: OpenEmbedded (last edited 2009-02-22 21:00:16 by localhost)