NSLU2-Linux
view · edit · print · history

OpenEmbedded.StepByStepSetup History

Hide minor edits - Show changes to markup

August 06, 2005, at 12:12 PM by mathieu_xwave --
Changed line 30 from:
 monotone --db=/somepath/oe.db pull monotone.vanille.de org.openembedded
to:
 monotone --db=/somepath/oe.db pull monotone.nslu2-linux.org org.openembedded
July 12, 2005, at 10:08 PM by x-way -- Added monotone
Changed lines 13-14 from:

Now we retrieve the required files from the SubVersion and BitKeeper repositories:

to:

Now we retrieve the required files from the SubVersion and BitKeeper (or Monotone) repositories:

Deleted line 17:
 bk clone bk://nslu2-linux.bkbits.net/openembedded
Changed lines 20-22 from:

Next, create the local configuration:

to:

and

Changed lines 24-25 from:
 mkdir -p build/conf
 touch build/conf/local.conf
to:
 bk clone bk://nslu2-linux.bkbits.net/openembedded
Changed lines 26-29 from:

Put the following in your build/conf/local.conf file:

(:table border=0 width=100% bgcolor=#eeeeff:)

to:

or with Monotone (:table border=0 width=100% bgcolor=#eeffee:)

Changed lines 29-38 from:
 OEROOT = "/home/slug"
 DL_DIR = "${OEROOT}/sources"
 BBFILES = ${OEROOT}/openembedded/packages/*/*.bb
 OEMASK = ""
 PREFERRED_PROVIDERS = " virtual/${TARGET_PREFIX}gcc-initial:gcc-cross-initial"
 PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc:gcc-cross"
 PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}g++:gcc-cross"
 MACHINE = "nslu2"
 DISTRO = "unslung"
 OEINCLUDELOGS = "yes"
to:
 monotone db init --db=/somepath/oe.db
 monotone --db=/somepath/oe.db pull monotone.vanille.de org.openembedded
 monotone --db=/somepath/oe.db co --branch=org.openembedded.nslu2-linux openembedded
Changed lines 34-37 from:

If you are building OpenSlug rather than Unslung, replace unslung with openslug above.

Next, we create a shell script that configures the environment:

to:

Next, create the local configuration:

Changed lines 39-40 from:
 touch setup-env
to:
 mkdir -p build/conf
 touch build/conf/local.conf
Changed lines 43-44 from:

Put the following in the setup-env file:

to:

Put the following in your build/conf/local.conf file:

Added lines 47-71:
 OEROOT = "/home/slug"
 DL_DIR = "${OEROOT}/sources"
 BBFILES = ${OEROOT}/openembedded/packages/*/*.bb
 OEMASK = ""
 PREFERRED_PROVIDERS = " virtual/${TARGET_PREFIX}gcc-initial:gcc-cross-initial"
 PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc:gcc-cross"
 PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}g++:gcc-cross"
 MACHINE = "nslu2"
 DISTRO = "unslung"
 OEINCLUDELOGS = "yes"

(:tableend:)

If you are building OpenSlug rather than Unslung, replace unslung with openslug above.

Next, we create a shell script that configures the environment:

(:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

 touch setup-env

(:tableend:)

Put the following in the setup-env file:

(:table border=0 width=100% bgcolor=#eeeeff:) (:cell:)

June 20, 2005, at 08:18 PM by repvik --
Changed lines 91-92 from:

Note: On Gentoo, one might run into conflicts with BusyBox? which is installed as /bin/bb. Just use bitbake instead of bb

to:

Note: On Gentoo, one might run into conflicts with BusyBox? which is installed as /bin/bb. Just use bitbake instead of bb

June 20, 2005, at 08:16 PM by repvik -- Note: "bb" alias conflict
Changed lines 91-92 from:
to:

Note: On Gentoo, one might run into conflicts with BusyBox? which is installed as /bin/bb. Just use bitbake instead of bb

March 17, 2005, at 04:04 PM by n1xnx --
Changed lines 118-120 from:
This means you have an out of date bitbake, from some time around January 2005 or earlier. Use svn up to update the bitbake tree, or just rm it and repeat the svn co step above. If this doesn't fix it you followed the older instructions and ran setup.py to install bitbake in /usr/local/bin. Reinstall it - the installed files take precedence over the ones in the bitbake svn tree.
to:
This means you have an out of date bitbake, from some time around January 2005 or earlier. Use svn up to update the bitbake tree, or just rm it and repeat the svn co step above. If this doesn't fix it you followed the older instructions and ran setup.py to install bitbake in /usr/local/bin. Reinstall it - the installed files take precedence over the ones in the bitbake svn tree.
  • You may get a message from bitbake indicating that there was nothing to build, with 0 files fetched and 0 cached -- but with no error messages per se. Make sure that your $BBPATH variable specifies the build directory first. The bitbake directory contains its own conf/local.conf file, and if the bitbake directory is in $BBPATH and bitbake finds that one before it finds yours, it won't see your local.conf file at all.
February 17, 2005, at 07:42 PM by dmahurindmaorg --
Changed line 99 from:

Where are the log files for this process?

to:

Check that you have enough memory and swap space. The out of memory error is evidently not passed along.

February 12, 2005, at 02:34 AM by jbowler --
Added lines 104-118:
  • You get a cryptic message from bitbake (bb) after it has parsed all the files and completed the "Building the provder cache" step, something like:

table border=0 width=100% bgcolor=#ffeeee? cell?

 Traceback (most recent call last):
  File "/usr/local/bin/bitbake", line 700, in ?
    bb.event.fire(bb.event.BuildStarted?(buildname, pkgs_to_build, make.cfg))
  File "/usr/local/lib/python2.4/site-packages/bb/event.py", line 49, in fire
    if tmpHandler(event) == Handled:
  File "tmpHandler(e)", line 30, in tmpHandler
 NameError?: global name 'bb' is not defined

tableend?

This means you have an out of date bitbake, from some time around January 2005 or earlier. Use svn up to update the bitbake tree, or just rm it and repeat the svn co step above. If this doesn't fix it you followed the older instructions and ran setup.py to install bitbake in /usr/local/bin. Reinstall it - the installed files take precedence over the ones in the bitbake svn tree.
February 11, 2005, at 05:09 PM by dmahurindmaorg --
Added lines 98-100:
  • "NOTE: package quilt-native-0.39-r0: task do_fetch: failed"

Where are the log files for this process?

December 30, 2004, at 10:46 AM by bobtm --
Changed line 92 from:

The resulting files will end up in $OEROOT/tmp/deploy/images

to:

The resulting files will end up in ${OEROOT}/tmp/deploy/images

Added lines 95-100:

Some problems you may encounter and how to solve them:

  • During the process, the system will download patches and source packs. Sometimes these downloads may fail on all mirrors and the build process will then halt when trying to unpack the file. Use your favorite search engine to look for alternate sources for the file (the file name will be provided by the build process), download it and place it in ${OEROOT}/temp/sources and resume the build process.
  • As of late Dec. 2004, the cpio package has a bug which causes it to try to create a number of directories in the root file system on the build host. If the build is done from an unpriviliged user on a host where some of these directories are missing, the build process will fail complaining that it cannot create these directories. One way of going around this (until the bug is fixed) is to go in as root, create these directories manually before resuming the build process as the unpriviliged user. The directories may be removed after the build process has completed.
December 29, 2004, at 11:23 PM by bobtm --
Added lines 92-93:

The resulting files will end up in $OEROOT/tmp/deploy/images

December 12, 2004, at 10:19 AM by rwhitby --
Deleted line 1:

This guide is out of date and needs to be updated to describe the new BitBake commands.

Changed line 13 from:

Now we retrieve the required files from SubVersion and BitKeeper repositories:

to:

Now we retrieve the required files from the SubVersion and BitKeeper repositories:

Added line 72:
 alias bb=bitbake
Changed line 89 from:
  bitbake unslung-image
to:
  bb unslung-image
December 12, 2004, at 10:17 AM by rwhitby --
Added line 10:
 mkdir /home/slug
Deleted line 11:
 mkdir bk
Changed line 14 from:

Now we retrieve the required files from BitKeeper repository:

to:

Now we retrieve the required files from SubVersion and BitKeeper repositories:

Changed lines 18-20 from:
 cd bk
 bk clone bk://nslu2-linux.bkbits.net/oe
 bk clone bk://nslu2-linux.bkbits.net/packages
to:
 svn co svn://svn.berlios.de/bitbake/trunk/bitbake
 bk clone bk://nslu2-linux.bkbits.net/openembedded
Changed line 35 from:
 OEROOT = "/home/slug/bk"
to:
 OEROOT = "/home/slug"
Changed line 37 from:
 OEFILES = ${OEROOT}/packages/*/*.oe
to:
 BBFILES = ${OEROOT}/openembedded/packages/*/*.bb
Changed lines 60-65 from:
 OEROOT="/home/slug/bk/"
 OESYS=$OEROOT/oe/
 PKGDIR=$OEROOT/packages/
 OEBUILD=$OEROOT/build/
 OEPATH=$OEBUILD:$PKGDIR:$OESYS
 PATH=$OESYS/bin/:$PATH
to:
 OEROOT="/home/slug"
 OESYS=$OEROOT/bitbake
 PKGDIR=$OEROOT/openembedded
 OEBUILD=$OEROOT/build
 BBPATH=$OEBUILD:$PKGDIR:$OESYS
 PATH=$OESYS/bin:$PATH
Changed line 68 from:
 export PATH LD_LIBRARY_PATH OEPATH
to:
 export PATH LD_LIBRARY_PATH BBPATH
Changed line 89 from:
  oemake unslung-image
to:
  bitbake unslung-image
December 11, 2004, at 03:10 PM by peteru --
Added line 2:

This guide is out of date and needs to be updated to describe the new BitBake commands.

November 02, 2004, at 10:45 AM by peteru --
Added lines 71-72:
 unset CC
 unset CXX
October 31, 2004, at 06:42 AM by peteru --
Deleted line 19:
 bk clone bk://nslu2-linux.bkbits.net/nslu2-package-symlinks
Changed lines 39-41 from:
 PREFERRED_PROVIDERS = "virtual/qte:qte-for-opie virtual/libqpe:libqpe-opie"
 PREFERRED_PROVIDERS += " virtual/libsdl:libsdl-qpe"
 PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc-initial:gcc-cross-initial"
to:
 PREFERRED_PROVIDERS = " virtual/${TARGET_PREFIX}gcc-initial:gcc-cross-initial"
October 31, 2004, at 06:20 AM by peteru --
Added lines 7-8:
Added line 11:
Added lines 15-16:
Changed line 21 from:
to:
Added lines 26-27:
Added line 30:
Added lines 34-35:
Added line 48:
Added lines 54-55:
Added line 57:
Added lines 61-62:
Added line 75:
Added lines 79-80:
Added line 82:
Added lines 88-89:
Added line 91:
October 31, 2004, at 06:00 AM by peteru --
Changed lines 1-70 from:

Describe StepByStepSetup here.

to:

Detailed guide to setting up your OpenEmbedded environment.

This page assumes that you have a machine that satisfies all the tool pre-requisites. GettingStarted has a good overview of what you will need. Items in bold may need to be modified to suit your own configuration.

Let's start in the parent directory of your new workspace, we'll create the working directory:

 cd /home/slug
 mkdir bk

Now we retrieve the required files from BitKeeper repository:

 cd bk
 bk clone bk://nslu2-linux.bkbits.net/oe
 bk clone bk://nslu2-linux.bkbits.net/packages
 bk clone bk://nslu2-linux.bkbits.net/nslu2-package-symlinks

Next, create the local configuration:

 mkdir -p build/conf
 touch build/conf/local.conf

Put the following in your build/conf/local.conf file:

 OEROOT = "/home/slug/bk"
 DL_DIR = "${OEROOT}/sources"
 OEFILES = ${OEROOT}/packages/*/*.oe
 OEMASK = ""
 PREFERRED_PROVIDERS = "virtual/qte:qte-for-opie virtual/libqpe:libqpe-opie"
 PREFERRED_PROVIDERS += " virtual/libsdl:libsdl-qpe"
 PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc-initial:gcc-cross-initial"
 PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc:gcc-cross"
 PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}g++:gcc-cross"
 MACHINE = "nslu2"
 DISTRO = "unslung"
 OEINCLUDELOGS = "yes"

If you are building OpenSlug rather than Unslung, replace unslung with openslug above.

Next, we create a shell script that configures the environment:

 touch setup-env

Put the following in the setup-env file:

 OEROOT="/home/slug/bk/"
 OESYS=$OEROOT/oe/
 PKGDIR=$OEROOT/packages/
 OEBUILD=$OEROOT/build/
 OEPATH=$OEBUILD:$PKGDIR:$OESYS
 PATH=$OESYS/bin/:$PATH
 cd $OEBUILD
 LD_LIBRARY_PATH=
 export PATH LD_LIBRARY_PATH OEPATH
 export LANG=C
 unset LC_CTYPE
 echo "Environment set up for OpenEmbedded development."

Now, you need to ensure that your current shell has all of the settings we just put into setup-env, so do this:

 source setup-env

You will need to perform the above step in each and every shell used to execute OE commands.

You are now ready to build:

  oemake unslung-image

If you are building OpenSlug rather than Unslung, replace unslung with openslug above.

view · edit · print · history · Last edited by mathieu_xwave.
Based on work by x-way, repvik, n1xnx, dmahurindmaorg, jbowler, bobtm, rwhitby, and peteru.
Originally by peteru.
Page last modified on August 06, 2005, at 12:12 PM