![]() |
OpenEmbedded.StepByStepSetup HistoryHide minor edits - Show changes to markup August 06, 2005, at 12:12 PM
by --
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 -- 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 (: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 to:
Put the following in your 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 (:table border=0 width=100% bgcolor=#eeeeff:) (:cell:) June 20, 2005, at 08:18 PM
by --
Changed lines 91-92 from:
Note: On Gentoo, one might run into conflicts with BusyBox? which is installed as /bin/bb. Just use to:
June 20, 2005, at 08:16 PM
by -- Note: "bb" alias conflict
Changed lines 91-92 from:
to:
March 17, 2005, at 04:04 PM
by --
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.
February 17, 2005, at 07:42 PM
by --
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 --
Added lines 104-118:
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
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 --
Added lines 98-100:
Where are the log files for this process? December 30, 2004, at 10:46 AM
by --
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:
December 29, 2004, at 11:23 PM
by --
Added lines 92-93:
The resulting files will end up in $OEROOT/tmp/deploy/images December 12, 2004, at 10:19 AM
by --
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 --
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 --
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 --
Added lines 71-72:
unset CC unset CXX October 31, 2004, at 06:42 AM
by --
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 --
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 --
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 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 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 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. |