|
OpenEmbeddedAngstromBuild 16 - 15 Apr 2008 - Main.NicolasFerre
|
| |
| META TOPICPARENT | name="OpenEmbeddedAngstrom" |
OpenEmbedded / Angstrom : build from sources | | |
| |
< < |
| META FILEATTACHMENT | attachment="oe_angstrom_at91.diff.gz" attr="" comment="linux4sam_1.0_20071003" date="1191404065" name="oe_angstrom_at91.diff.gz" path="oe_angstrom_at91.diff.gz" size="197089" stream="oe_angstrom_at91.diff.gz" user="Main.NicolasFerre" version="2" |
| > > |
| META FILEATTACHMENT | attachment="oe_angstrom_at91.diff.gz" attr="" comment="linux4sam_1.2_20080415" date="1208265186" name="oe_angstrom_at91.diff.gz" path="oe_angstrom_at91.diff.gz" size="197087" stream="oe_angstrom_at91.diff.gz" user="Main.NicolasFerre" version="3" |
| | |
| META FILEATTACHMENT | attachment="local.conf" attr="" comment="" date="1191252456" name="local.conf" path="local.conf" size="6724" stream="local.conf" user="Main.RfoLnx4sam" version="2" |
| META FILEATTACHMENT | attachment="env-oe.sh" attr="" comment="" date="1191248990" name="env-oe.sh" path="env-oe.sh" size="127" stream="env-oe.sh" user="Main.RfoLnx4sam" version="1" |
| META TOPICMOVED | by="NicolasFerre" date="1189505740" from="Linux4SAM.OpenEmbeddAngstromBuild" to="Linux4SAM.OpenEmbeddedAngstromBuild" |
|
|
|
OpenEmbeddedAngstromBuild 15 - 08 Jan 2008 - Main.NicolasFerre
|
| |
| META TOPICPARENT | name="OpenEmbeddedAngstrom" |
OpenEmbedded / Angstrom : build from sources | | | | |
> > | For the moment, this building is dedicated to produce a root filesystem : the Linux kernel you should use is the one built from the LinuxKernel page. However, the powerfull bitbake tool will be fed with proper Linux recipes in the future. | | | To build the binary found in the OpenEmbeddedAngstromGet page, you will have to go through the following steps.
Pre-requires |
|
|
OpenEmbeddedAngstromBuild 14 - 14 Nov 2007 - Main.NicolasFerre
|
| |
| META TOPICPARENT | name="OpenEmbeddedAngstrom" |
OpenEmbedded / Angstrom : build from sources | | | Getting OpenEmbedded
Once in your OpenEmbeddedDirectory, download a snapshot of the OpenEmbedded monotone database going to http://www.openembedded.org/snapshots/.
| |
< < | To choose the proper one: | > > | To choose the proper one: | | |
- just take the
OE.mtn.bz2 file and, once the database uncompressed, run a mtn --db=/stuff/OE.mtn db migrate
- or, take the
OE-this-is-for-mtn-0.3x.mtn.bz2 that is in keeping with the version of your monotone program (checked with mtn --version).
|
|
|
OpenEmbeddedAngstromBuild 12 - 12 Oct 2007 - Main.NicolasFerre
|
| |
| META TOPICPARENT | name="OpenEmbeddedAngstrom" |
OpenEmbedded / Angstrom : build from sources | | | The local configuration file is derived from the example file org.openembedded.dev/conf/local.conf.sample . The local configuration is located in build/conf/local.conf . Here is the local.conf used to build Linux4SAM root file system. | |
< < | Read comments in it as it will bring you valuables informations and allow you to adapt it to your own environment and building host (directory structure for example). | > > | Read comments in it as it will bring you valuable information and allow you to adapt it to your own environment and building host (directory structure for example). | | | In addition, some environment variables have to be set before running a build process. We setup those variables via a little script env-oe.sh : |
|
|
OpenEmbeddedAngstromBuild 10 - 10 Oct 2007 - Main.NicolasFerre
|
| |
| META TOPICPARENT | name="OpenEmbeddedAngstrom" |
| | |
- take a recent version of the monotone SCM as packages are usually available at http://monotone.ca/
Building environment | |
< < | | > > | | | | A step-by-step comprehensive installation is explained in the OpenEmbedded Getting Started page. The following lines have to be considered as an add-on that is AT91 specific or that can facilitate your setup. | |
< < | | > > | | | | Have a look at the OpenEmbeddedDirectory to figure out what your working environment tree will look like.
Getting BitBake | | |
Getting OpenEmbedded | |
< < | | > > | | | | Once in your OpenEmbeddedDirectory, download a snapshot of the OpenEmbedded monotone database going to http://www.openembedded.org/snapshots/.
To choose the proper one:
- just take the
OE.mtn.bz2 file and, once the database uncompressed, run a mtn --db=/stuff/OE.mtn db migrate
| | |
md5sum -c OE.mtn.bz2.md5sum
| |
< < | | > > | | | | Build Process with OpenEmbedded | |
< < | | > > | | | | OpenEmbedded upstream snapshot
We start with an OpenEmbedded snapshot from the official "upstream" OpenEmbedded project. This snapshot contains the BitBake recipes for thousands of packages. | | |
source ./env-oe.sh
| |
< < | Start building | > > | | | | | |
> > | Start building | | | Begin with a little set of packages :
bitbake angstrom-minimal-image | | | bitbake angstrom-console-image-demo
bitbake angstrom-x11-image-demo
| |
> > | | | | Tips & tricks |
|
|
OpenEmbeddedAngstromBuild 9 - 03 Oct 2007 - Main.NicolasFerre
|
| |
| META TOPICPARENT | name="OpenEmbeddedAngstrom" |
| | |
| |
< < |
| META FILEATTACHMENT | attachment="oe_angstrom_at91.diff.gz" attr="" comment="linux4sam_1.0_20070913" date="1191242062" name="oe_angstrom_at91.diff.gz" path="oe_angstrom_at91.diff.gz" size="196758" stream="oe_angstrom_at91.diff.gz" user="Main.RfoLnx4sam" version="1" |
| > > |
| META FILEATTACHMENT | attachment="oe_angstrom_at91.diff.gz" attr="" comment="linux4sam_1.0_20071003" date="1191404065" name="oe_angstrom_at91.diff.gz" path="oe_angstrom_at91.diff.gz" size="197089" stream="oe_angstrom_at91.diff.gz" user="Main.NicolasFerre" version="2" |
| | |
| META FILEATTACHMENT | attachment="local.conf" attr="" comment="" date="1191252456" name="local.conf" path="local.conf" size="6724" stream="local.conf" user="Main.RfoLnx4sam" version="2" |
| META FILEATTACHMENT | attachment="env-oe.sh" attr="" comment="" date="1191248990" name="env-oe.sh" path="env-oe.sh" size="127" stream="env-oe.sh" user="Main.RfoLnx4sam" version="1" |
| META TOPICMOVED | by="NicolasFerre" date="1189505740" from="Linux4SAM.OpenEmbeddAngstromBuild" to="Linux4SAM.OpenEmbeddedAngstromBuild" |
|
|
|
OpenEmbeddedAngstromBuild 6 - 01 Oct 2007 - Main.RfoLnx4sam
|
| |
| META TOPICPARENT | name="OpenEmbeddedAngstrom" |
OpenEmbedded / Angstrom : build from sources | | | A step-by-step comprehensive installation is explained in the OpenEmbedded Getting Started page. The following lines have to be considered as an add-on that is AT91 specific or that can facilitate your setup. | |
> > | Have a look at the OpenEmbeddedDirectory to figure out what your working environment tree will look like. | | | Getting BitBake | |
< < | Take it through the BitBake build tool website through SVN or as a stable archive tarball. follow the advice: simply install it in your OpenEmbeddedDirectory. | > > | Take it through the BitBake build tool website through SVN or as a stable archive tarball. follow the advice: simply install it in your OpenEmbeddedDirectory and make a generic link :
ln -s bitbake-1.8.8 bitbake
| | | Getting OpenEmbedded | | | OpenEmbedded upstream snapshot | |
< < | We start from an OpenEmbedded snapshot from the official "upstream" OpenEmbedded project. This snapshot contains the BitBake recipes for thousands of packages. | > > | We start with an OpenEmbedded snapshot from the official "upstream" OpenEmbedded project. This snapshot contains the BitBake recipes for thousands of packages. | | | Here is the OpenEmbedded release we build our solution with : aa44d626baaae40ee498aea453176a8aea90d9fc | | | note however that the goal of this patch is to merge the most of it bits into the mainstream OE tree.
| |
< < |
| > > |
| | |
Then download and install this patch : | | | cd ..
| |
> > | Setup local configuration and environment variables
The local configuration file is derived from the example file org.openembedded.dev/conf/local.conf.sample . The local configuration is located in build/conf/local.conf . Here is the local.conf used to build Linux4SAM root file system.
Read comments in it as it will bring you valuables informations and allow you to adapt it to your own environment and building host (directory structure for example).
In addition, some environment variables have to be set before running a build process. We setup those variables via a little script env-oe.sh :
#!/bin/sh
OE_DIR=/stuff
export PATH=${OE_DIR}/bitbake/bin:$PATH
export BBPATH=${OE_DIR}/build:${OE_DIR}/org.openembedded.dev
Then, source this script :
source ./env-oe.sh
Start building
Begin with a little set of packages :
bitbake angstrom-minimal-image
even a minimal image will require a big amount of time because of the cross-toolchain building process.
The console and graphical images are built using the following recipes respectively :
bitbake angstrom-console-image-demo
bitbake angstrom-x11-image-demo
| | | Tips & tricks
OpenEmbedded | | | http://wiki.openmoko.org/wiki/Application_Development_Crash_Course#Your_First_Application | |
> > |
| META FILEATTACHMENT | attachment="oe_angstrom_at91.diff.gz" attr="" comment="linux4sam_1.0_20070913" date="1191242062" name="oe_angstrom_at91.diff.gz" path="oe_angstrom_at91.diff.gz" size="196758" stream="oe_angstrom_at91.diff.gz" user="Main.RfoLnx4sam" version="1" |
| META FILEATTACHMENT | attachment="local.conf" attr="" comment="" date="1191252456" name="local.conf" path="local.conf" size="6724" stream="local.conf" user="Main.RfoLnx4sam" version="2" |
| META FILEATTACHMENT | attachment="env-oe.sh" attr="" comment="" date="1191248990" name="env-oe.sh" path="env-oe.sh" size="127" stream="env-oe.sh" user="Main.RfoLnx4sam" version="1" |
| | |
| META TOPICMOVED | by="NicolasFerre" date="1189505740" from="Linux4SAM.OpenEmbeddAngstromBuild" to="Linux4SAM.OpenEmbeddedAngstromBuild" |
|
|
|
OpenEmbeddedAngstromBuild 5 - 28 Sep 2007 - Main.RfoLnx4sam
|
| |
| META TOPICPARENT | name="OpenEmbeddedAngstrom" |
OpenEmbedded / Angstrom : build from sources | | | We start from an OpenEmbedded snapshot from the official "upstream" OpenEmbedded project. This snapshot contains the BitBake recipes for thousands of packages. | |
< < | OE release : aa44d626baaae40ee498aea453176a8aea90d9fc | > > | Here is the OpenEmbedded release we build our solution with : aa44d626baaae40ee498aea453176a8aea90d9fc | | | | |
> > | So you have to checkout this revision of the OE tree :
mtn --db=/stuff/OE.mtn checkout -r aa44d626baaae40ee498aea453176a8aea90d9fc --branch=org.openembedded.dev
| | | | |
< < | mtn --db=../oe_snapshot/OE.mtn checkout -r aa44d626baaae40ee498aea453176a8aea90d9fc --branch=org.openembedded.dev | | | | |
> > |
AT91 OpenEmbedded / Angstrom overlay tree or patch
In addition to the upstream recipes, we also have a set of our own recipes or modifications of the original ones. So, the following patch applies to the tree that you just checkouted. | | | | |
< < | In addition to the upstream recipes, we also have a set of our own recipes. | > > | note however that the goal of this patch is to merge the most of it bits into the mainstream OE tree. | | | | |
< < | The overlay tree works in the following way: It gives us the ability to add rules below a separate directory tree. This means we don't have to edit or add rules to the upstream snapshot, and we always have a clear distinction about what is upstream, and what is our additions to it. | > > |
| | | | |
> > | Then download and install this patch :
cd org.openembedded.dev
zcat ../oe_angstrom_at91.diff.gz | patch -p1
cd ..
| | | Tips & tricks |
|
|
|
|
 Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors. Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries. Atmel® and others, are registered trademarks or trademarks of Atmel Corporation or its subsidiaries. ARM® and others are registered trademarks or trademarks of ARM Ltd. Other terms and product names may be trademarks of others. Ideas, requests, contributions ? Connect to LinksToCommunities page.
|
|