http://www.openembedded.org/api.php?action=feedcontributions&user=Ant&feedformat=atomOpenembedded.org - User contributions [en]2024-03-28T12:34:40ZUser contributionsMediaWiki 1.29.0http://www.openembedded.org/index.php?title=2017_General_Meeting&diff=94572017 General Meeting2017-05-03T09:51:38Z<p>Ant: /* Planning to attend */</p>
<hr />
<div>== Purpose ==<br />
The new bylaws of the organization require '''at least''' one general meeting per year. This will fulfill that requirement. Also, we plan to discuss topics of interest to the community and the project.<br />
<br />
== Date and Time ==<br />
'''!!!Tentative!!!''' 2017-05-03 @ 8am US-CDT(UTC-06:00)/3pm CET(UTC+01:00)<br />
<br />
Here's a link to the time:<br />
https://www.timeanddate.com/worldclock/fixedtime.html?msg=OpenEmbedded+2017+General+Meeting&iso=20170503T08&p1=24&ah=1<br />
<br />
Countdown link:<br />
https://www.timeanddate.com/countdown/generic?p0=24&iso=20170503T08&msg=OpenEmbedded%202017%20General%20Meeting<br />
<br />
<br />
== Conference Information ==<br />
<br />
Meeting will be held as a teleconference with a IRC channel to allow for background discussion and trouble shooting of audio.<br />
<br />
IRC: #oe-meeting on freenode<br />
<br />
'''Dial-in Conference # 8964521'''<br />
<br />
{| class="wikitable"<br />
!colspan="3"|Dial-in Information<br />
|-<br />
| Country<br />
| Toll Free Number(s)<br />
| Toll Number(s)<br />
|-<br />
|UNITED STATES(USA)<br />
|8006375822<br />
|6477233937<br />
9172102607<br />
|-<br />
|-<br />
|ARGENTINA(ARG)<br />
|8008000140<br />
|01159843238<br />
|-<br />
|AUSTRALIA(AUS)<br />
|1800706813<br />
|0390084306<br />
|-<br />
|AUSTRIA(AUT)<br />
|080088665126<br />
1800455064<br />
|<br />
|-<br />
|BELGIUM(BEL)<br />
|080039126<br />
|027924568<br />
|-<br />
|BRAZIL(BRA)<br />
|08000201594<br />
|<br />
|-<br />
|BULGARIA(BGR)<br />
|008001201150<br />
|<br />
|-<br />
|CANADA(CAN)<br />
|8006375822<br />
|6477233937<br />
|-<br />
|CHILE(CHL)<br />
|12300201190<br />
|225994308<br />
|-<br />
|CHINA NORTH(CHN)<br />
|108007140888<br />
|<br />
|-<br />
|CHINA SOUTH(CHS)<br />
|108001400863<br />
|<br />
|-<br />
|CHINA UNIFIED(CHU)<br />
|8008195002<br />
|4006201003<br />
|-<br />
|CZECH REPUBLIC(CZE)<br />
|800701563<br />
|234147032<br />
|-<br />
|DENMARK(DNK)<br />
|80703176<br />
|36910500<br />
|-<br />
|EGYPT(EGY)<br />
|08000000216<br />
|<br />
|-<br />
|FINLAND(FIN)<br />
|0800114187<br />
0800773408<br />
|0923194205<br />
|-<br />
|FRANCE(FRA)<br />
|0800941758<br />
|<br />
|-<br />
|GERMANY(DEU)<br />
|08001014542<br />
|069710448206<br />
|-<br />
|HONG KONG(HKG)<br />
|800903520<br />
|30508648<br />
|-<br />
|HUNGARY(HUN)<br />
|0680018377<br />
|<br />
|-<br />
|INDIA(IND)<br />
|0008001006237<br />
0008006501628<br />
<br />
18002660806<br />
|<br />
|-<br />
|IRELAND(IRL)<br />
|1800760168<br />
1800944117<br />
|014360203<br />
|-<br />
|ISRAEL(ISR)<br />
|1809245898<br />
|<br />
|-<br />
|ITALY(ITA)<br />
|800785295<br />
|<br />
|-<br />
|JAPAN(JPN)<br />
|00531160557<br />
00531190046<br />
|0345899489<br />
|-<br />
|MALAYSIA(MYS)<br />
|1800814332<br />
|<br />
|-<br />
|MEXICO(MEX)<br />
|0018005148003<br />
|5547772297<br />
|-<br />
|MOROCCO(MAR)<br />
|002110011 8553458162<br />
|<br />
|-<br />
|NETHERLANDS(NLD)<br />
|08002658235<br />
|0207940366<br />
|-<br />
|NEW ZEALAND(NZL)<br />
|0800453014<br />
|049094653<br />
|-<br />
|NORWAY(NOR)<br />
|80056416<br />
|21033210<br />
|-<br />
|PAKISTAN(PAK)<br />
|<br />
|4238108701<br />
|-<br />
|PHILIPPINES(PHL)<br />
|180011100869<br />
|<br />
|-<br />
|POLAND(POL)<br />
|008001114760<br />
800702736<br />
|223060765<br />
|-<br />
|PORTUGAL(PRT)<br />
|800780647<br />
|<br />
|-<br />
|ROMANIA(ROM)<br />
|0800400060<br />
0800400906<br />
|215291724<br />
|-<br />
|RUSSIAN FEDERATION(RUS)<br />
|81080025401012<br />
|4959952645<br />
|-<br />
|SAUDI ARABIA(SAU)<br />
|8008149944<br />
|<br />
|-<br />
|SINGAPORE(SGP)<br />
|8001011714<br />
8001205024<br />
|64944153<br />
|-<br />
|SLOVAKIA(SVK)<br />
|0800606530<br />
|<br />
|-<br />
|SOUTH KOREA(KOR)<br />
|00308140655<br />
|<br />
|-<br />
|SPAIN(ESP)<br />
|900947050<br />
|<br />
|-<br />
|SWEDEN(SWE)<br />
|0201400572<br />
|0114501530<br />
|-<br />
|SWITZERLAND(CHE)<br />
|0800561819<br />
0800705314<br />
|0434569423<br />
|-<br />
|TAIWAN(TWN)<br />
|0809090682<br />
|<br />
|-<br />
|UNITED ARAB EMIRATES(ARE)<br />
|8000176692<br />
|<br />
|-<br />
|UNITED KINGDOM(GBR)<br />
|08006920143<br />
|2070840301<br />
|-<br />
|}<br />
<br />
<br />
== Tentative Agenda ==<br />
# Meeting Schedule<br />
## The board would like to propose a quarterly meeting schedule with alternating online and face-to-face meetings.<br />
# Membership<br />
## Grandfathered all existing members in good standing<br />
## New members<br />
# TSC<br />
## Grandfathered from old organization<br />
# Online voting<br />
# Elections<br />
# Future plans/purpose for the organization<br />
# Technical topics<br />
<br />
== Planning to attend ==<br />
* Sean Hudson (irc:darknighte)<br />
* Denys Dmytriyenko (denix)<br />
* Bruce Ashfield (zeddii*)<br />
* Armin Kuster (armpit)<br />
* Mark Hatle (fray)<br />
* Tom Rini (Tartarus)<br />
* Trevor Woerner (tlwoerner)<br />
* Ross Burton (rburton)<br />
* Stephano Cetola (stephano)<br />
* Richard Purdie (RP)<br />
* Philip Balister (Crofton)<br />
* Martin Jansa (JaMa)<br />
* Andrea Galbusera<br />
* Andrei Gherzan<br />
* Changhyeok Bae (chabe)<br />
* Marco Cavallini (mckoan)<br />
* Nicolas Dechesne (ndec)<br />
* Peter Kjellerstedt (Saur)<br />
* Joshua Lock (joshuagl)<br />
* Randy MacLeod (vmeson)<br />
* Andrea Adami (ant_*)</div>Anthttp://www.openembedded.org/index.php?title=Barcelona,_2012&diff=5131Barcelona, 20122012-11-06T14:45:49Z<p>Ant: </p>
<hr />
<div>==Location ==<br />
<br />
Hotel Fira Palace · Barcelona, Spain<br />
Nov 7, 2012 at 17:00.<br />
<br />
<br />
== Agenda ==<br />
<br />
* Financial report<br />
* Board Elections, Dr. Michael Lauer, Florian Boor, and Philip Balister's terms are ending.<br />
<br />
<br />
== Participants ==<br />
<br />
The sign [P] means he/she is available as proxy.<br />
<br />
* Marco Cavallini (mckoan) [P] (proxying for Frans Meulenbroeks)<br />
* Eric Bénard (ericben) [P]<br />
* Mark Hatle (fray) [P]<br />
* Sean Hudson (darknighte)<br />
* Stefan Schmidt (stefan_schmidt)<br />
* Khem Raj (khem)[P]<br />
* Anders Darander [P]<br />
* Philip Balister<br />
* Paul Eggleton<br />
* Andrea Adami<br />
<br />
== Forms ==<br />
<br />
* Proxy form [[File:Proxy_instructions-oe.pdf]]</div>Anthttp://www.openembedded.org/index.php?title=OEandYourDistro&diff=4645OEandYourDistro2012-02-16T14:29:27Z<p>Ant: Remove xorg-sgml-tools (maybe optional)</p>
<hr />
<div>'''Note''': the information here is liable to be out of date. Please see the [[Required software]] for information on which software is required on the host system.<br />
<br />
= Using OpenEmbedded on Linux systems =<br />
<br />
== deb-based distributions ==<br />
<br />
The easiest way is via [http://blog.leggewie.org/?p=39 apt-get'able Openembedded] which will pull the OE meta-data for you and keep it up-to-date. Plus, it makes sure all necessary software for cross-compilation is installed. Easy as 1-2-3.<br />
<br />
=== Debian ===<br />
<br />
==== Mandatory packages ====<br />
<br />
aptitude install sed wget cvs subversion git-core \<br />
coreutils unzip texi2html texinfo docbook-utils \<br />
gawk python-pysqlite2 diffstat help2man make gcc build-essential g++ \<br />
desktop-file-utils chrpath<br />
<br />
'''Git'''<br />
<br />
On debian you may have to run <br />
<br />
update-alternatives --config git (as root)<br />
<br />
and select /usr/bin/git-scm to provide git instead of /usr/bin/git.transition. This is not necessary in sid<br />
<br />
==== Supplementary packages ====<br />
<br />
<pre><nowiki><br />
apt-get install libxml2-utils xmlto python-psyco apr<br />
</nowiki></pre><br />
<br />
<br />
OPTIONAL: these packages and their dependencies need to be installed in order to build the bitbake documentation (warning: over 160MB of installed packages).<br />
<br />
<pre><nowiki><br />
apt-get install docbook<br />
</nowiki></pre><br />
This package is necessary to build some packages (in particular the esound documentation needs it).<br />
<br />
==== Building in container (LXC/OpenVZ) ====<br />
NOTE: If you are building in container (LXC/OpenVZ) check presence of '''loadkeys''' tool (/bin/loadkeys). If there is no loadkeys, install '''console-tools''' package.<br />
<br />
=== Ubuntu ===<br />
<br />
Ubuntu is based on Debian and instructions above for [[#deb-based distributions|Debian]] apply here as well. Make sure that you have the universe repositories in your apt configuration.<br />
<br />
* Check that /bin/sh (ls -l /bin/sh) is not symbolically linked to dash. "dash" is a POSIX compliant shell that is much smaller than "bash" -- however some broken shell scripts still make use of bash extensions while calling into /bin/sh. To work around this issue call "''sudo dpkg-reconfigure dash''" and select No when it asks you to install dash as /bin/sh.<br />
* You can also install Psyco Python JIT compiler to speed up BitBake. Psyco works on 32-bit x86 platforms only. "''aptitude install python-psyco''<br />
* there are known [[gcc issues in Intrepid and later]] when cross-compiling with OE<br />
<br />
[SOLVED - update 2010-05]<br />
* qemu-arm fails whilst building locales (Ubuntu 10.04 LTS and possibly other releases). This is due to a kernel setting which restricts memory mapping to low addresses. To work around this you can either:<br />
** a) Enter 'echo 128 > /proc/sys/vm/mmap_min_addr' prior to running bitbake.<br />
** b) Set permanent parameter 'sudo sysctl -w vm.mmap_min_addr=128'.<br />
<br />
With current qemu in OE mmap_min_addr tricks are not needed at all.<br />
So now it should work on every system with readable /proc/sys/vm/mmap_min_addr or /proc/sys/vm/mmap_min_addr <= 65536.<br />
<br />
== rpm-based distributions ==<br />
<br />
=== Mandriva Linux ===<br />
<br />
Follow the Debian instructions, only using `urpmi` instead of `apt-get install`. You can find it in the contrib section of any Mandriva mirror or seach for it using the Mandriva Club rpm database [http://rpms.mandrakeclub.com]. You may need libpythonV.V-devel for bitbake setup instead of python-dev.<br />
If you're building a 2.6 kernel, you also need the glibc-static-devel package.<br />
<br />
with Mandriva Linux 2006, you need to issue the following command:<br />
<br />
<pre><nowiki><br />
urpmi python python-devel python-psyco patch m4 sed bison make wget bzip2 \<br />
cvs gawk glibc-devel gcc-c++ subversion sharutils coreutils docbook-utils openjade \<br />
quilt pcre-devel unzip glibc-static-devel<br />
</nowiki></pre><br />
<br />
=== openSUSE ===<br />
<br />
==== openSUSE 11.4/12.1 - 1-click install ====<br />
<br />
You can install all the needed dependencies (except bitbake) with the following 1-click install link: [http://download.oliseo.fr/OE/OE_dep.ymp OE_dep.ymp]<br />
<br />
<br />
==== openSUSE all version - zypper ====<br />
<br />
Use zypper to install the required packages (except bitbake and tools needed to build *-doc packages):<br />
sudo zypper in python python-ply python-progressbar patch m4 make perl diffstat \<br />
wget curl ftp cvs subversion git mercurial tar bzip2 gzip unzip sed bison bc \<br />
glibc-devel pcre-devel libSDL-devel coreutils help2man gawk chrpath glibc-devel-static<br />
<br />
==== Additional packages ====<br />
<br />
===== psyco =====<br />
<br />
In order to speed up the build, you can install python psyco package.<br />
<br />
Please note pysco is only available for 32-bit x86 systems only.<br />
<br />
====== from sourceforge ======<br />
You can use python psyco package (from http://sourceforge.net/projects/psyco/files/) to speed up building. You need to install python-devel:<br />
sudo zypper in python-devel<br />
<br />
and then install psyco via<br />
sudo python setup.py install<br />
in the psyco directory.<br />
<br />
====== from community repo (only 11.3) ======<br />
Alternatively you can install psyco directly from a community repo.<br />
zypper ar -f http://download.opensuse.org/repositories/home:/elchevive/openSUSE_11.3/ 11.3-psyco<br />
zypper in python-psyco<br />
<br />
===== other useful packages =====<br />
<br />
Those packages may be useful as well if you want to build *-doc packages:<br />
<br />
sudo zypper in openjade docbook-xml-website docbook-dsssl-stylesheets docbook-utils sgmltools-lite texinfo<br />
<br />
=== Fedora ===<br />
<br />
==== Fedora Core 2/3 ====<br />
Much of the following is probably already installed, but you can check with the following commands. You may want to use the yum.conf located at http://www.fedorafaq.org/. Note, this has not been tested yes as I am in the process of setting up a development environment.<br />
<br />
<pre><nowiki> yum install python patch m4 sed make docbook* openjade glibc-devel xmlto</nowiki></pre><br />
<br />
* psyco: Download psyco-1.4-src.tar.gz (or later) and extract it. Go to the psycho top-level directory and run: `python setup.py install`.<br />
<br />
* patch: FC3 default version should be enough. Optionally, install SuSe 9.1 package of it.<br />
<br />
==== Fedora Core 4 ====<br />
Almost all required packages for Openembedded are available in Fedora Core 4 and the Fedora Extras for Core 4. You can download them from <http://download.fedora.redhat.com/pub/fedora/linux/core> and <http://download.fedora.redhat.com/pub/fedora/linux/extras>. Check <http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4> for updates on the Core 4 packages.<br />
<br />
Apart from the usual (native) development packages like gcc and binutils, you should check that you have the following RPM's installed: <br />
<br />
* bison<br />
* docbook* packages<br />
* libpcre<br />
* m4<br />
* make<br />
* openjade<br />
* patch<br />
* PyQt<br />
* python<br />
* python-psyco<br />
* sed<br />
* xmlto<br />
* quilt (not required as OE builds it by itself, but install it if you want to use gquilt)<br />
<br />
Use apt, synaptic, up2date or yum to automagically retrieve these packages or download and install them manually (lots of work).<br />
<br />
==== Fedora Core 5/6 ====<br />
<br />
Commands I used to install OE pre-requisites on FC5/6<br />
<br />
This long command will ensure all pre-requisites are installed (patch is 2.5.4, not 2.5.9, but appears to work).<br />
<br />
<pre><nowiki><br />
su -c "yum install python m4 make wget curl ftp cvs subversion tar bzip2 gzip \<br />
unzip python-psyco perl texinfo texi2html diffstat openjade docbook-style-dsssl \<br />
docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel gcc binutils \<br />
pcre pcre-devel git quilt groff linuxdoc-tools patch gcc gcc-c++ python-sqlite2 help2man"<br />
</nowiki></pre><br />
<br />
or download the metapackage http://www.openembedded.org/dl/packages/rpm/openembedded-essential-1.1-1.noarch.rpm (may be out of date).<br />
<br />
then do<br />
<br />
<pre><nowiki><br />
su -c "yum localinstall openembedded-essential-1.1-1.noarch.rpm"<br />
</nowiki></pre><br />
<br />
<br />
There are also rpm and src.rpm packages of bitbake 1.6.2 at http://www.openembedded.org/dl/packages/rpm/ pending a later version in Extras, currently 1.6.0.<br />
<br />
Update - Current FC6 version is patch-2.5.4-29.2.2 as of this writing and works-for-me (see revision history for build instructions if current patch does not work for you).<br />
<br />
I didn't install SGML tools. Please add if you know how<br />
<br />
Update - Since about 2002 sgml-tools has apparently been replaced by linuxdoc-tools for FC.<br />
<br />
==== Fedora 7 ====<br />
<br />
This long command will ensure all pre-requisites are installed (patch is 2.5.4, not 2.5.9, but appears to work).<br />
<br />
<pre><nowiki><br />
su -c "yum install python m4 make wget curl ftp cvs subversion tar bzip2 gzip unzip \<br />
python-psyco perl texinfo texi2html diffstat openjade docbook-style-dsssl \<br />
docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel gcc binutils \<br />
pcre pcre-devel git quilt groff linuxdoc-tools patch linuxdoc-tools gcc gcc-c++ \<br />
help2man perl-ExtUtils-MakeMaker"<br />
</nowiki></pre><br />
<br />
(if this is hard to copy from this HTML page, go to edit mode and copy from editor)<br />
<br />
==== Fedora 11 ====<br />
<br />
Fedora 11, compared to previous versions, brings the need to install "glibc-static" as well:<br />
<br />
<pre><nowiki><br />
su -c "yum install python m4 make wget curl ftp cvs subversion tar bzip2 gzip unzip \<br />
python-psyco perl texinfo texi2html diffstat openjade docbook-style-dsssl \<br />
docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel glibc-static \<br />
gcc binutils pcre pcre-devel git quilt groff linuxdoc-tools patch linuxdoc-tools \<br />
gcc-c++ help2man perl-ExtUtils-MakeMaker"<br />
</nowiki></pre><br />
<br />
(if this is hard to copy from this HTML page, go to edit mode and copy from editor)<br />
<br />
==== Fedora 12 ====<br />
Recommended to use Fedora 12 64 bit when possible<br />
<br />
If you are setting up from scratch<br />
<br />
<pre><nowiki><br />
sudo yum groupinstall 'Development Tools'<br />
</nowiki></pre><br />
<br />
<pre><nowiki><br />
sudo yum install python m4 make wget curl ftp cvs subversion tar bzip2 gzip unzip \<br />
python-psyco perl texinfo texi2html diffstat openjade docbook-style-dsssl \<br />
docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel glibc-static \<br />
gcc binutils pcre pcre-devel git quilt groff linuxdoc-tools patch linuxdoc-tools \<br />
gcc-c++ help2man perl-ExtUtils-MakeMaker tcl-devel gettext ccache chrpath<br />
</nowiki></pre><br />
<br />
note python-pyscho is only available for 32bit linux<br />
<br />
==== Fedora 13 , 14 , 15 and 16 ====<br />
Recommended to use Fedora 13/14/15/16 64 bit when/where possible<br />
<br />
If you are setting up from scratch<br />
<br />
<pre><nowiki><br />
sudo yum groupinstall 'Development Tools'<br />
</nowiki></pre><br />
<br />
Then update all packages<br />
<pre><nowiki><br />
sudo yum update<br />
</nowiki></pre><br />
<br />
Then <br />
<br />
<pre><nowiki><br />
sudo yum install python m4 make wget curl ftp cvs subversion tar bzip2 gzip unzip \<br />
python-psyco perl texinfo texi2html diffstat openjade docbook-style-dsssl \<br />
docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel glibc-static \<br />
gcc binutils pcre pcre-devel git quilt groff linuxdoc-tools patch linuxdoc-tools \<br />
gcc-c++ help2man perl-ExtUtils-MakeMaker tcl-devel gettext ccache chrpath cmake ncurses \<br />
apr<br />
</nowiki></pre><br />
<br />
(some or most of these packages may have been added by the previous step e.g. for <br />
console-image build on f14 only texi2html chrpath wget perl-ExtUtils-MakeMaker glibc-static were required in addition to ' Development Tools')<br />
<br />
note python-pyscho is currently only available for 32bit linux<br />
<br />
Note for fedora 14 as of 17th March 2011 if you have patch-2.6.1.-8.fc14 installed you may need to downgrade<br><br />
to an older version if you are getting patching errors during building.<br><br />
<br><br />
to downgrade<br />
<pre> sudo yum downgrade patch </pre><br />
<br />
=== CentOS 4.4 / Red Hat Enterprise Linux 4 ===<br />
May also work for true EL4 or Scientific Linux - another RHEL rebuild<br />
<br />
Even with several optional and 3rd party yum repos enabled (centosplus, kbsingh, RPMforge/Dag, Dries) a number of required packages are too old or unavailable for CentOS4. [It should be possible to use other package managers including apt/synaptic, up2date, and smart to get the required packages. The following assumes yum.]<br />
<br />
I re-built the following SRPMS (with "$ rpmbuild --rebuild ..."):<br />
* boost-1.33.1-10.fc5.src.rpm<br />
* bitbake-1.6.2-1.src.rpm (Latest tarball from http://developer.berlios.de/projects/bitbake/ + modified spec from bitbake-1.6.0-2.fc7.src.rpm)<br />
<br />
Might also want to try the rpm and src.rpm packages of bitbake 1.6.2 at http://www.openembedded.org/dl/packages/rpm/ - I have not.<br />
<br />
Extra requirements for the builds included rpmdevtools, xmlto, and lynx.<br />
<br />
I put packages in a local repo so I can do "yum install ...", otherwise can do "yum localinstall foo.1.2.3.noarch.rpm ...". It may be necessary to temporarily set "gpgcheck=0" in /etc/yum.conf to avoid complaints about unsigned packages.<br />
<br />
For EL4 texi2html is available from the tetex package, currently tetex-2.0.2-22.EL4.7<br />
<br />
Note that the the metapackage http://www.openembedded.org/dl/packages/rpm/openembedded-essential-1.1-1.noarch.rpm<br />
should work except that it depends on texi2html.<br />
<br />
Instead as root do<br />
<br />
<pre><nowiki><br />
yum install bison coreutils cvs docbook-utils gawk git-core python quilt rpmlib \<br />
sed subversion tetex texinfo unzip wget<br />
</nowiki></pre><br />
<br />
I ended up with the following set of relevant packages after several iterations of building/updating to get "bitbake nano" to complete successfully:<br />
<br />
* python-2.3.4-14.3<br />
* m4-1.4.1-16<br />
* make-3.80-6.EL4<br />
* wget-1.10.2-0.40E<br />
* curl-7.12.1-8.rhel4<br />
* ftp-0.17-22<br />
* cvs-1.11.17-9.RHEL4<br />
* subversion-1.4.3-0.1.el4.rf<br />
* tar-1.14-12.RHEL4<br />
* bzip2-1.0.2-13.EL4.3<br />
* gzip-1.3.3-16.rhel4<br />
* unzip-5.51-7<br />
* python-psyco-1.5-3.el4.kb<br />
* perl-5.8.5-36.RHEL4<br />
* texinfo-4.7-5.el4.2<br />
* tetex-2.0.2-22.EL4.7<br />
* diffstat-1.34-0_6.el4.at<br />
* openjade-1.3.2-16_9.el4.at<br />
* docbook-style-dsssl-1.78-4<br />
* docbook-style-xsl-1.65.1-2<br />
* docbook-dtds-1.0-25<br />
* docbook-utils-0.6.14-4<br />
* sed-4.1.2-5.EL4<br />
* bison-1.875c-2<br />
* bc-1.06-17.1<br />
* glibc-devel-2.3.4-2.25<br />
* gcc-3.4.6-3<br />
* binutils-2.15.92.0.2-21<br />
* pcre-4.5-3.2.RHEL4<br />
* pcre-devel-4.5-3.2.RHEL4<br />
* git-1.4.4.2-2.el4.kb<br />
* bitbake-1.6.2-1<br />
<br />
=== ALT Linux ===<br />
<br />
You can read more about ALT Linux here: http://www.altlinux.com/en/<br />
<br />
You can use synaptic or aptitude to install packages. Or use apt-get as shown below.<br />
<br />
<pre><nowiki><br />
apt-get install git-core python python-dev python-module-psyco python-modules-sqlite3 \<br />
patch m4 sed bison make wget bzip2 cvs gawk gcc-c++ subversion sharutils coreutils \<br />
docbook-utils openjade quilt libpcre-devel unzip glibc-devel glibc-devel-static \<br />
help2man texi2html perl-devel chrpath<br />
</nowiki></pre><br />
<br />
For building bitbake manuals you have to install 'xmlto' package:<br />
<br />
<pre><nowiki><br />
apt-get install xmlto<br />
</nowiki></pre><br />
<br />
NOTES:<br />
* This is tested on ALD 4.0/4.1/5.0.<br />
* gcc-c++ is virtual package and can be provided by gcc4.3-c++ (ALD 5.0) and gcc4.1-c++ (ALD 4.0/4.1). Just select higher version.<br />
* '''As I have no OE installation on ALT Linux more this page can have obsolete information.'''<br />
<br />
=== Ark Linux 2008.1 ===<br />
[http://www.arklinux.org/ Ark Linux] is a modern distribution well suited for Openembedded development. Footprint only 2.1G.<br />
<br />
Required steps:<br />
<br />
1) install required packages<br />
<pre><nowiki><br />
apt-get install devel-core diffstat texi2html cvs subversion git texinfo psyco python-devel \<br />
python-encodings python-sqlite chrpath help2man<br />
</nowiki></pre><br />
<br />
2) upgrade<br />
<pre><nowiki><br />
apt-get update<br />
apt-get dist-upgrade <br />
</nowiki></pre><br />
<br />
3) finally create your OE tree (see [[Getting started]] instructions).<br />
<br />
== other Linux distributions ==<br />
<br />
=== Gentoo instructions ===<br />
<br />
Note that Psyco, the Python JIT compiler, requires python-2.6.6 and works on 32-bit x86 platforms only.<br />
<br />
<pre><nowiki><br />
emerge -n \<br />
psyco \<br />
patch \<br />
make \<br />
sed \<br />
dev-lang/python \<br />
m4 \<br />
bison \<br />
cvs \<br />
openjade \<br />
quilt \<br />
sgmltools-lite \<br />
docbook-xml-dtd \<br />
docbook-dsssl-stylesheets \<br />
xmlto \<br />
docbook-sgml-utils \<br />
libpcre \<br />
boost \<br />
subversion \<br />
texi2html \<br />
pysqlite \<br />
chrpath \<br />
fakeroot \<br />
lzop<br />
</nowiki></pre><br />
<br />
Then follow the instructions in [[Getting started]] for obtaining bitbake and start the build.<br />
<br />
=== Arch Linux (Duke) ===<br />
'''Note''': Arch Linux has switched to using Python 3 by default. BitBake does ''not'' support Python 3.<br />
Please ensure you have Python 2.6.x or 2.7.x installed and set to be the default Python interpreter.<br />
<br />
Most of the packages are available in the repositories.<br />
<br />
<pre><nowiki><br />
sudo pacman -S patch make sed python m4 bison cvs quilt sgmltools-lite docbook-xml \<br />
xmlto pcre boost jade git texinfo texi2html help2man subversion chrpath<br />
</nowiki></pre><br />
<br />
In Arch Linux the install command is in /bin/install. Since most of Linux distribution assume that install is located in /usr/bin/install, you have to create a symlink:<br />
<br />
<pre><nowiki><br />
sudo ln -s /bin/install /usr/bin/install<br />
</nowiki></pre><br />
<br />
You can build BitBake by using this PKGBUILD or install it from the AUR:<br />
<pre><nowiki><br />
pkgname=bitbake<br />
pkgver=1.8.4<br />
pkgrel=1<br />
pkgdesc="A simple tool for task execution derived from Gentoo's portage"<br />
url="http://developer.berlios.de/projects/bitbake/"<br />
arch=('i686')<br />
license=('GPL' 'custom')<br />
depends=('python')<br />
source=(http://download.berlios.de/bitbake/${pkgname}-${pkgver}.tar.gz)<br />
md5sums=('508d9a61c635d469be8facc95151158b')<br />
<br />
build() {<br />
cd ${startdir}/src/${pkgname}-${pkgver}<br />
python setup.py install --root=${startdir}/pkg<br />
<br />
# Install vim extensions<br />
install -D -m644 ${startdir}/src/${pkgname}-${pkgver}/contrib/vim/ftdetect/bitbake.vim \<br />
${startdir}/pkg/usr/share/vim/ftplugin/bitbake.vim<br />
install -D -m644 ${startdir}/src/${pkgname}-${pkgver}/contrib/vim/syntax/bitbake.vim \<br />
${startdir}/pkg/usr/share/vim/syntax/bitbake.vim<br />
<br />
# Handle MIT license<br />
install -D -m644 ${startdir}/src/${pkgname}-${pkgver}/doc/COPYING.MIT \<br />
${startdir}/pkg/usr/share/licenses/${pkgname}/COPYING.MIT<br />
}<br />
</nowiki></pre><br />
<br />
= Using OpenEmbedded on FreeBSD and other NON Linux Systems =<br />
<br />
tbd<br />
<br />
== FreeBSD ==<br />
<br />
* Python == /usr/ports/lang/python<br />
* GNU Patch == /usr/ports/devel/patch<br />
* GNU m4 == /usr/ports/devel/m4<br />
* GNU make == /usr/ports/devel/gmake<br />
* wget == /usr/ports/ftp/wget<br />
* Psyco JIT Compiler == /usr/ports/devel/py-psyco<br />
* GNU sed == /usr/ports/textproc/gsed<br />
* Bison == /usr/ports/devel/bison<br />
* GCC 2.95.3 == /usr/ports/lang/gcc295<br />
* bc == already in FreeBSD<br />
* PyQt == /usr/ports/x11-toolkits/py-qt<br />
* glibc headers (ignore)<br />
* subversion == /usr/ports/devel/subversion<br />
* git == /usr/ports/devel/git<br />
* pcre == /usr/ports/devel/pcre<br />
<br />
Ports has also has these: fileutils, jade, docbook, dsssl-docbook-modular, sgmltools<br />
<br />
== Using OpenEmbedded on Mac OS X ==<br />
<br />
By default OS X uses a filesystem that is '''not''' case sensitive. You need to ensure that at least your tmp directory is on a case sensitive filesystem or you may come across various packages that break, including the Linux kernel! These steps were carried out on a early 32 bit 10.5/Intel Mac - the install order matters for a couple of packages as does having them installed in a more normal location.<br />
<br />
# Register at [https://connect.apple.com ADC] and download and install Xcode<br />
# Compile and install [http://www.gnu.org/software/gettext/ GNU gettext]<br />
# Using CPAN install Locale::gettext<br />
# Compile and install [http://www.gnu.org/software/help2man/ help2man 1.29] - newer versions will not build without hacks<br />
# Compile and install [http://www.gnu.org/software/wget/ wget], [http://www.gnu.org/software/gawk/ gawk], [http://www.gnu.org/software/coreutils/ coreutils] and [http://git-scm.com/ git] - wget appears to not work if you install it in /usr/local so use --prefix=/usr also note OS X provides a different version of mktemp which functions differently, be careful not to overwrite this as OS X might need it<br />
# If you are on a 32 bit Mac you can of course install [http://psyco.sourceforge.net/ psyco]<br />
# Fixup your PATH variable for your build user so that /usr/local/bin (or where ever coreutils etc is installed) comes before the OS X version in /usr/bin<br />
# Install GNU sed 3.0.2, this will give you a version of sed that allows you to build sed 4.1.5 - you will need to overwrite the one provided by OS X with --prefix=/usr and ensure you are using 4.1.5 not 3.0.2 as 3.0.2 does not provide various options you need<br />
# Install getopt from [http://software.frodo.looijaard.name/getopt/download.php here] - modify WITHOUT_GETTEXT=0 to WITHOUT_GETTEXT=1 in the Makefile and add -DWITHOUT_GETTEXT=$(WITHOUT_GETTEXT) to the line beginning with CPPFLAGS=<br />
<br />
Now follow the Getting Started OpenEmbedded wiki guide. Unfortunately there are various issues building on OS X that will most likely prevent the toolchain from building.<br />
<br />
Unfinished - tbd<br />
<br />
= Using OpenEmbedded on Windows/Cygwin Systems =<br />
<br />
<br />
Building Openembedded on Windows is currently unsupported, but [http://oe.linuxtogo.org/wiki/BuildOnCygwin work is in progress] to support buidling of meta-toolchain.bb on Windows/Cygwin hosts.<br />
<br />
[[Category:User]]<br />
<br />
new user</div>Anthttp://www.openembedded.org/index.php?title=Organization&diff=4295Organization2011-06-14T14:25:36Z<p>Ant: /* Current Members */</p>
<hr />
<div>The current organization for OE is a German eV legal entity (similar to KDE: http://ev.kde.org/) and is for the purpose of managing finances, voting, and membership.<br />
<br />
An 'eV' for 'eingetragener Verein', in the German law, translates to a voluntary organization; a group of individuals who voluntarily enter into an agreement to form a body (or organization) to accomplish a purpose. The organization has members.<br />
<br />
The OpenEmbedded eV statues are located here: http://docs.openembedded.org/organization/2008-11-22_statutes-de.pdf<br />
<br />
A bablefish translation is here -- could German speaking folks please clean this up: [[OpenEmbedded eV Statutes]]<br />
<br />
During FOSDEM 2008 in Brussels, Belgium, a group of founding members physically gathered to get the paperwork going.<br />
<br />
= The current board of directors =<br />
<br />
* President ''Dr. Michael Lauer''<br />
* Vice President ''Philip Balister''<br />
* Vice President and Treasurer ''Florian Boor''<br />
* ''Denys Dmytriyenko''<br />
<br />
= Current Members =<br />
(please keep in alphabetical order)<br />
<br />
# Alessandro Gardich<br />
# Anders Darander <br />
# Andrea Adami<br />
# Andreas Oberritter<br />
# Chris Larson<br />
# Cliff Brake<br />
# Daniel Willmann<br />
# Dave Stewart<br />
# Denys Dmytriyenko<br />
# Dirk Hohndel<br />
# Dirk Opfer<br />
# Dmitry EreminSolenikov<br />
# Eric Bénard<br />
# Esben Haabendal<br />
# Florian Boor<br />
# Frans Meulenbroeks<br />
# Graeme Gregory<br />
# Graham Gower<br />
# Henning Heinold<br />
# Holger Freyther<br />
# Jan Lübbe<br />
# Jason Kridner<br />
# Jeff Osier-Mixon <br />
# John Willis<br />
# Joshua Lock<br />
# Ken Gilmer<br />
# Khem Raj<br />
# Koen Kooi<br />
# Leon Woestenberg<br />
# Liam Girdwood<br />
# Marcin Juszkiewicz<br />
# Marco Cavallini<br />
# Mark Brown<br />
# Mark Hatle<br />
# Martin Jansa<br />
# Michael Lauer<br />
# Michael Smith<br />
# Paul Eggleton<br />
# Philip Balister<br />
# Philip Blundell<br />
# Phillip Zabel<br />
# Richard Purdie<br />
# Robert Schuster<br />
# Roman I Khimov<br />
# Saul Wold<br />
# Scott Garman<br />
# Sean Hudson<br />
# Simon Busch<br />
# Stefan Schmidt<br />
# Steve Sakoman<br />
# Tom King<br />
# Tom Rini <br />
# Yu Ke <br />
# Yury Bushmelev<br />
<br />
= OE Developers =<br />
Openembedded Developers are people who have write access to the git repository. Due to the nature of OE, there are many developers, and each one tends to maintain a section of OE. A list of maintainers can be found [http://cgit.openembedded.net/cgit.cgi?url=openembedded/tree/MAINTAINERS here]. See [[OpenEmbedded Developers]] for a list of current developers.<br />
<br />
= Todo =<br />
* process for adding new members<br />
* process for voting<br />
* responsibility of the board<br />
* conflict resolution<br />
<br />
= Pointers for Board Members =<br />
* [[Checklist for the General Assembly]]<br />
<br />
= Online Voting Policy =<br />
* [[Online Voting Policy]]<br />
<br />
= Faq =<br />
; Are contributions tax deductible?<br /><br />
: Yes they are. <br />
; Should I become member of the OE e.V.?<br />
: If you are contributing to OE frequently and/or you are interested in getting involved in administrative or organisational tasks it might be a good idea to join OE e.V.<br />
; How do I become member of the OE e.V.?<br />
: Let an existing member introduce you by sending a short introduction to the 'ev' [http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-members mailinglist]. If you don't know one get in touch with us on the development mailinglist or IRC first. The e.V. is open for anyone to join and its not meant to be an exclusive club of a few developers. <br />
; Is there a membership fee?<br />
: Yes, and no, since you are allowed to defined the amount on your own.<br />
<br />
[[Category:Dev]]</div>Anthttp://www.openembedded.org/index.php?title=Organization&diff=3951Organization2011-02-07T08:38:34Z<p>Ant: Added new E.V. members (Voting closed on 26th of November 2010)</p>
<hr />
<div>The current organization for OE is a German eV legal entity (similar to KDE: http://ev.kde.org/) and is for the purpose of managing finances, voting, and membership.<br />
<br />
An 'eV' for 'eingetragener Verein', in the German law, translates to a voluntary organization; a group of individuals who voluntarily enter into an agreement to form a body (or organization) to accomplish a purpose. The organization has members.<br />
<br />
The OpenEmbedded eV statues are located here: http://docs.openembedded.org/organization/2008-11-22_statutes-de.pdf<br />
<br />
A bablefish translation is here -- could German speaking folks please clean this up: [[OpenEmbedded eV Statutes]]<br />
<br />
During FOSDEM 2008 in Brussels, Belgium, a group of founding members physically gathered to get the paperwork going.<br />
<br />
= The current board of directors =<br />
<br />
* President ''Dr. Michael Lauer''<br />
* Vice President ''Philip Balister''<br />
* Vice President and Treasurer ''Florian Boor''<br />
* Board Member ''Graeme Gregory''<br />
<br />
= Current Members =<br />
(please keep in alphabetical order)<br />
# Alessandro Gardich<br />
# Andrea Adami<br />
# Chris Larson<br />
# Cliff Brake<br />
# Daniel Willmann<br />
# Denys Dmytriyenko<br />
# Dirk Opfer<br />
# Dmitry EreminSolenikov<br />
# Eric Bénard<br />
# Esben Haabendal<br />
# Florian Boor<br />
# Frans Meulenbroeks<br />
# Graeme Gregory<br />
# Graham Gower<br />
# Henning Heinold<br />
# Holger Freyther<br />
# Jan Lübbe<br />
# John Willis<br />
# Joshua Lock<br />
# Ken Gilmer<br />
# Khem Raj<br />
# Koen Kooi<br />
# Leon Woestenberg<br />
# Liam Girdwood<br />
# Marcin Juszkiewicz<br />
# Marco Cavallini<br />
# Mark Brown<br />
# Michael Lauer<br />
# Michael Smith<br />
# Philip Balister<br />
# Philip Blundell<br />
# Phillip Zabel<br />
# Richard Purdie<br />
# Robert Schuster<br />
# Roman I Khimov<br />
# Simon Busch<br />
# Stefan Schmidt<br />
# Tom King<br />
# Tom Rini<br />
<br />
= OE Developers =<br />
Openembedded Developers are people who have write access to the git repository. Due to the nature of OE, there are many developers, and each one tends to maintain a section of OE. A list of maintainers can be found [http://cgit.openembedded.net/cgit.cgi?url=openembedded/tree/MAINTAINERS here]. See [[OpenEmbedded Developers]] for a list of current developers.<br />
<br />
= Todo =<br />
* process for adding new members<br />
* process for voting<br />
* responsibility of the board<br />
* conflict resolution<br />
<br />
= Pointers for Board Members =<br />
* [[Checklist for the General Assembly]]<br />
<br />
= Online Voting Policy =<br />
* [[Online Voting Policy]]<br />
<br />
= Faq =<br />
; Are contributions tax deductible?<br /><br />
: Yes they are. <br />
; Should I become member of the OE e.V.?<br />
: If you are contributing to OE frequently and/or you are interested in getting involved in administrative or organisational tasks it might be a good idea to join OE e.V.<br />
; How do I become member of the OE e.V.?<br />
: Let an existing member introduce you by sending a short introduction to the 'ev' [http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-members mailinglist]. If you don't know one get in touch with us on the development mailinglist or IRC first. The e.V. is open for anyone to join and its not meant to be an exclusive club of a few developers. <br />
; Is there a membership fee?<br />
: Yes, and no, since you are allowed to defined the amount on your own.<br />
<br />
[[Category:Dev]]</div>Anthttp://www.openembedded.org/index.php?title=OEandYourDistro&diff=3225OEandYourDistro2010-11-18T17:35:49Z<p>Ant: /* Ark Linux 2008.1 */</p>
<hr />
<div>See [[Required software]] for the list of the software required by Openembedded.<br />
<br />
= Using OpenEmbedded on Linux systems =<br />
<br />
== deb-based distributions ==<br />
<br />
The easiest way is via [http://blog.leggewie.org/?p=39 apt-get'able Openembedded] which will pull the OE meta-data for you and keep it up-to-date. Plus, it makes sure all necessary software for cross-compilation is installed. Easy as 1-2-3.<br />
<br />
=== Debian ===<br />
<br />
==== Mandatory packages ====<br />
<br />
aptitude install sed wget cvs subversion git-core \<br />
coreutils unzip texi2html texinfo docbook-utils \<br />
gawk python-pysqlite2 diffstat help2man make gcc build-essential g++ \<br />
desktop-file-utils chrpath<br />
<br />
'''Git'''<br />
<br />
On debian you may have to run <br />
<br />
update-alternatives --config git (as root)<br />
<br />
and select /usr/bin/git-scm to provide git instead of /usr/bin/git.transition. This is not necessary in sid<br />
<br />
==== Supplementary packages ====<br />
<br />
<pre><nowiki><br />
apt-get install libxml2-utils xmlto python-psyco apr<br />
</nowiki></pre><br />
<br />
<br />
OPTIONAL: these packages and their dependencies need to be installed in order to build the bitbake documentation (warning: over 160MB of installed packages).<br />
<br />
<pre><nowiki><br />
apt-get install docbook<br />
</nowiki></pre><br />
This package is necessary to build some packages (in particular the esound documentation needs it).<br />
<br />
==== Building in container (LXC/OpenVZ) ====<br />
NOTE: If you are building in container (LXC/OpenVZ) check presence of '''loadkeys''' tool (/bin/loadkeys). If there is no loadkeys, install '''console-tools''' package.<br />
<br />
=== Ubuntu ===<br />
<br />
Ubuntu is based on Debian and instructions above for [[#deb-based distributions|Debian]] apply here as well. Make sure that you have the universe repositories in your apt configuration.<br />
<br />
* Check that /bin/sh (ls -l /bin/sh) is not symbolically linked to dash. "dash" is a POSIX compliant shell that is much smaller than "bash" -- however some broken shell scripts still make use of bash extensions while calling into /bin/sh. To work around this issue call "''sudo dpkg-reconfigure dash''" and select No when it asks you to install dash as /bin/sh.<br />
* You can also install Psyco Python JIT compiler to speed up BitBake. Psyco works on 32-bit x86 platforms only. "''aptitude install python-psyco''<br />
* there are known [[gcc issues in Intrepid and later]] when cross-compiling with OE<br />
<br />
[SOLVED - update 2010-05]<br />
* qemu-arm fails whilst building locales (Ubuntu 10.04 LTS and possibly other releases). This is due to a kernel setting which restricts memory mapping to low addresses. To work around this you can either:<br />
** a) Enter 'echo 128 > /proc/sys/vm/mmap_min_addr' prior to running bitbake.<br />
** b) Set permanent parameter 'sudo sysctl -w vm.mmap_min_addr=128'.<br />
<br />
With current qemu in OE mmap_min_addr tricks are not needed at all.<br />
So now it should work on every system with readable /proc/sys/vm/mmap_min_addr or /proc/sys/vm/mmap_min_addr <= 65536.<br />
<br />
== rpm-based distributions ==<br />
<br />
=== Mandriva Linux ===<br />
<br />
Follow the Debian instructions, only using `urpmi` instead of `apt-get install`. You can find it in the contrib section of any Mandriva mirror or seach for it using the Mandriva Club rpm database [http://rpms.mandrakeclub.com]. You may need libpythonV.V-devel for bitbake setup instead of python-dev.<br />
If you're building a 2.6 kernel, you also need the glibc-static-devel package.<br />
<br />
with Mandriva Linux 2006, you need to issue the following command:<br />
<br />
<pre><nowiki><br />
urpmi python python-devel python-psyco patch m4 sed bison make wget bzip2 \<br />
cvs gawk glibc-devel gcc-c++ subversion sharutils coreutils docbook-utils openjade \<br />
quilt pcre-devel unzip glibc-static-devel<br />
</nowiki></pre><br />
<br />
=== openSUSE ===<br />
<br />
==== openSUSE 11.1/11.2/11.3 ====<br />
<br />
Use zypper to install the required packages:<br />
sudo zypper in subversion git python help2man diffstat wget gcc gcc-c++ libstdc++ glibc-devel texinfo automake patch chrpath<br />
<br />
===== psyco =====<br />
<br />
Please note pysco is only available for 32-bit x86 systems only.<br />
<br />
====== from sourceforge ======<br />
You can use python psyco package (from http://sourceforge.net/projects/psyco/files/) to speed up building. You need to install python-devel:<br />
sudo zypper in python-devel<br />
<br />
and then install psyco via<br />
sudo python setup.py install<br />
in the psyco directory.<br />
<br />
====== from community repo ======<br />
Alternatively you can install psyco directly from a community repo.<br />
zypper ar -f http://download.opensuse.org/repositories/home:/elchevive/openSUSE_11.3/ 11.3-psyco<br />
zypper in python-psyco<br />
<br />
===== other useful packages =====<br />
<br />
These packages may be useful as well: bison and [http://software.opensuse.org/search?baseproject=ALL&p=1&q=gcc33 gcc33] (for faster build using ASSUME_PROVIDED), gtk2-devel (in case your build will fail on missing gdk-pixbuf-csource), bc (for collie kernel), ncurses-devel (if you want to call kernel menuconfig).<br />
<br />
sudo zypper in bison gcc33 gtk2-devel bc ncurses-devel<br />
<br />
=== Fedora ===<br />
<br />
==== Fedora Core 2/3 ====<br />
Much of the following is probably already installed, but you can check with the following commands. You may want to use the yum.conf located at http://www.fedorafaq.org/. Note, this has not been tested yes as I am in the process of setting up a development environment.<br />
<br />
<pre><nowiki> yum install python patch m4 sed make docbook* openjade glibc-devel xmlto</nowiki></pre><br />
<br />
* psyco: Download psyco-1.4-src.tar.gz (or later) and extract it. Go to the psycho top-level directory and run: `python setup.py install`.<br />
<br />
* patch: FC3 default version should be enough. Optionally, install SuSe 9.1 package of it.<br />
<br />
==== Fedora Core 4 ====<br />
Almost all required packages for Openembedded are available in Fedora Core 4 and the Fedora Extras for Core 4. You can download them from <http://download.fedora.redhat.com/pub/fedora/linux/core> and <http://download.fedora.redhat.com/pub/fedora/linux/extras>. Check <http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4> for updates on the Core 4 packages.<br />
<br />
Apart from the usual (native) development packages like gcc and binutils, you should check that you have the following RPM's installed: <br />
<br />
* bison<br />
* docbook* packages<br />
* libpcre<br />
* m4<br />
* make<br />
* openjade<br />
* patch<br />
* PyQt<br />
* python<br />
* python-psyco<br />
* sed<br />
* xmlto<br />
* quilt (not required as OE builds it by itself, but install it if you want to use gquilt)<br />
<br />
Use apt, synaptic, up2date or yum to automagically retrieve these packages or download and install them manually (lots of work).<br />
<br />
==== Fedora Core 5/6 ====<br />
<br />
Commands I used to install OE pre-requisites on FC5/6<br />
<br />
This long command will ensure all pre-requisites are installed (patch is 2.5.4, not 2.5.9, but appears to work).<br />
<br />
<pre><nowiki><br />
su -c "yum install python m4 make wget curl ftp cvs subversion tar bzip2 gzip \<br />
unzip python-psyco perl texinfo texi2html diffstat openjade docbook-style-dsssl \<br />
docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel gcc binutils \<br />
pcre pcre-devel git quilt groff linuxdoc-tools patch gcc gcc-c++ python-sqlite2 help2man"<br />
</nowiki></pre><br />
<br />
or download the metapackage http://www.openembedded.org/dl/packages/rpm/openembedded-essential-1.1-1.noarch.rpm (may be out of date).<br />
<br />
then do<br />
<br />
<pre><nowiki><br />
su -c "yum localinstall openembedded-essential-1.1-1.noarch.rpm"<br />
</nowiki></pre><br />
<br />
<br />
There are also rpm and src.rpm packages of bitbake 1.6.2 at http://www.openembedded.org/dl/packages/rpm/ pending a later version in Extras, currently 1.6.0.<br />
<br />
Update - Current FC6 version is patch-2.5.4-29.2.2 as of this writing and works-for-me (see revision history for build instructions if current patch does not work for you).<br />
<br />
I didn't install SGML tools. Please add if you know how<br />
<br />
Update - Since about 2002 sgml-tools has apparently been replaced by linuxdoc-tools for FC.<br />
<br />
==== Fedora 7 ====<br />
<br />
This long command will ensure all pre-requisites are installed (patch is 2.5.4, not 2.5.9, but appears to work).<br />
<br />
<pre><nowiki><br />
su -c "yum install python m4 make wget curl ftp cvs subversion tar bzip2 gzip unzip \<br />
python-psyco perl texinfo texi2html diffstat openjade docbook-style-dsssl \<br />
docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel gcc binutils \<br />
pcre pcre-devel git quilt groff linuxdoc-tools patch linuxdoc-tools gcc gcc-c++ \<br />
help2man perl-ExtUtils-MakeMaker"<br />
</nowiki></pre><br />
<br />
(if this is hard to copy from this HTML page, go to edit mode and copy from editor)<br />
<br />
==== Fedora 11 ====<br />
<br />
Fedora 11, compared to previous versions, brings the need to install "glibc-static" as well:<br />
<br />
<pre><nowiki><br />
su -c "yum install python m4 make wget curl ftp cvs subversion tar bzip2 gzip unzip \<br />
python-psyco perl texinfo texi2html diffstat openjade docbook-style-dsssl \<br />
docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel glibc-static \<br />
gcc binutils pcre pcre-devel git quilt groff linuxdoc-tools patch linuxdoc-tools \<br />
gcc-c++ help2man perl-ExtUtils-MakeMaker"<br />
</nowiki></pre><br />
<br />
(if this is hard to copy from this HTML page, go to edit mode and copy from editor)<br />
<br />
==== Fedora 12 ====<br />
Recommended to use Fedora 12 64 bit when possible<br />
<br />
If you are setting up from scratch<br />
<br />
<pre><nowiki><br />
sudo yum groupinstall 'Development Tools'<br />
</nowiki></pre><br />
<br />
<pre><nowiki><br />
sudo yum install python m4 make wget curl ftp cvs subversion tar bzip2 gzip unzip \<br />
python-psyco perl texinfo texi2html diffstat openjade docbook-style-dsssl \<br />
docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel glibc-static \<br />
gcc binutils pcre pcre-devel git quilt groff linuxdoc-tools patch linuxdoc-tools \<br />
gcc-c++ help2man perl-ExtUtils-MakeMaker tcl-devel gettext ccache chrpath<br />
</nowiki></pre><br />
<br />
note python-pyscho is only available for 32bit linux<br />
<br />
==== Fedora 13 and 14 ====<br />
Recommended to use Fedora 13/14 64 bit when/where possible<br />
<br />
If you are setting up from scratch<br />
<br />
<pre><nowiki><br />
sudo yum groupinstall 'Development Tools'<br />
</nowiki></pre><br />
<br />
Then update all packages<br />
<pre><nowiki><br />
sudo yum update<br />
</nowiki></pre><br />
<br />
Then <br />
<br />
<pre><nowiki><br />
sudo yum install python m4 make wget curl ftp cvs subversion tar bzip2 gzip unzip \<br />
python-psyco perl texinfo texi2html diffstat openjade docbook-style-dsssl \<br />
docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel glibc-static \<br />
gcc binutils pcre pcre-devel git quilt groff linuxdoc-tools patch linuxdoc-tools \<br />
gcc-c++ help2man perl-ExtUtils-MakeMaker tcl-devel gettext ccache chrpath cmake ncurses \<br />
apr<br />
</nowiki></pre><br />
<br />
(some or most of these packages may have been added by the previous step)<br />
<br />
note python-pyscho is currently only available for 32bit linux<br />
<br />
=== CentOS 4.4 / Red Hat Enterprise Linux 4 ===<br />
May also work for true EL4 or Scientific Linux - another RHEL rebuild<br />
<br />
Even with several optional and 3rd party yum repos enabled (centosplus, kbsingh, RPMforge/Dag, Dries) a number of required packages are too old or unavailable for CentOS4. [It should be possible to use other package managers including apt/synaptic, up2date, and smart to get the required packages. The following assumes yum.]<br />
<br />
I re-built the following SRPMS (with "$ rpmbuild --rebuild ..."):<br />
* boost-1.33.1-10.fc5.src.rpm<br />
* bitbake-1.6.2-1.src.rpm (Latest tarball from http://developer.berlios.de/projects/bitbake/ + modified spec from bitbake-1.6.0-2.fc7.src.rpm)<br />
<br />
Might also want to try the rpm and src.rpm packages of bitbake 1.6.2 at http://www.openembedded.org/dl/packages/rpm/ - I have not.<br />
<br />
Extra requirements for the builds included rpmdevtools, xmlto, and lynx.<br />
<br />
I put packages in a local repo so I can do "yum install ...", otherwise can do "yum localinstall foo.1.2.3.noarch.rpm ...". It may be necessary to temporarily set "gpgcheck=0" in /etc/yum.conf to avoid complaints about unsigned packages.<br />
<br />
For EL4 texi2html is available from the tetex package, currently tetex-2.0.2-22.EL4.7<br />
<br />
Note that the the metapackage http://www.openembedded.org/dl/packages/rpm/openembedded-essential-1.1-1.noarch.rpm<br />
should work except that it depends on texi2html.<br />
<br />
Instead as root do<br />
<br />
<pre><nowiki><br />
yum install bison coreutils cvs docbook-utils gawk git-core python quilt rpmlib \<br />
sed subversion tetex texinfo unzip wget<br />
</nowiki></pre><br />
<br />
I ended up with the following set of relevant packages after several iterations of building/updating to get "bitbake nano" to complete successfully:<br />
<br />
* python-2.3.4-14.3<br />
* m4-1.4.1-16<br />
* make-3.80-6.EL4<br />
* wget-1.10.2-0.40E<br />
* curl-7.12.1-8.rhel4<br />
* ftp-0.17-22<br />
* cvs-1.11.17-9.RHEL4<br />
* subversion-1.4.3-0.1.el4.rf<br />
* tar-1.14-12.RHEL4<br />
* bzip2-1.0.2-13.EL4.3<br />
* gzip-1.3.3-16.rhel4<br />
* unzip-5.51-7<br />
* python-psyco-1.5-3.el4.kb<br />
* perl-5.8.5-36.RHEL4<br />
* texinfo-4.7-5.el4.2<br />
* tetex-2.0.2-22.EL4.7<br />
* diffstat-1.34-0_6.el4.at<br />
* openjade-1.3.2-16_9.el4.at<br />
* docbook-style-dsssl-1.78-4<br />
* docbook-style-xsl-1.65.1-2<br />
* docbook-dtds-1.0-25<br />
* docbook-utils-0.6.14-4<br />
* sed-4.1.2-5.EL4<br />
* bison-1.875c-2<br />
* bc-1.06-17.1<br />
* glibc-devel-2.3.4-2.25<br />
* gcc-3.4.6-3<br />
* binutils-2.15.92.0.2-21<br />
* pcre-4.5-3.2.RHEL4<br />
* pcre-devel-4.5-3.2.RHEL4<br />
* git-1.4.4.2-2.el4.kb<br />
* bitbake-1.6.2-1<br />
<br />
=== ALT Linux ===<br />
<br />
You can read more about ALT Linux here: http://www.altlinux.com/en/<br />
<br />
You can use synaptic or aptitude to install packages. Or use apt-get as shown below.<br />
<br />
<pre><nowiki><br />
apt-get install git-core python python-dev python-module-psyco python-modules-sqlite3 \<br />
patch m4 sed bison make wget bzip2 cvs gawk gcc-c++ subversion sharutils coreutils \<br />
docbook-utils openjade quilt libpcre-devel unzip glibc-devel glibc-devel-static \<br />
help2man texi2html perl-devel chrpath<br />
</nowiki></pre><br />
<br />
For building bitbake manuals you have to install 'xmlto' package:<br />
<br />
<pre><nowiki><br />
apt-get install xmlto<br />
</nowiki></pre><br />
<br />
NOTES:<br />
* This is tested on ALD 4.0/4.1/5.0.<br />
* gcc-c++ is virtual package and can be provided by gcc4.3-c++ (ALD 5.0) and gcc4.1-c++ (ALD 4.0/4.1). Just select higher version.<br />
* '''As I have no OE installation on ALT Linux more this page can have obsolete information.'''<br />
<br />
=== Ark Linux 2008.1 ===<br />
[http://www.arklinux.org/ Ark Linux] is a modern distribution well suited for Openembedded development. Footprint only 2.1G.<br />
<br />
Required steps:<br />
<br />
1) install required packages<br />
<pre><nowiki><br />
apt-get install devel-core diffstat texi2html cvs subversion git texinfo psyco python-devel \<br />
python-encodings python-sqlite chrpath help2man<br />
</nowiki></pre><br />
<br />
2) upgrade<br />
<pre><nowiki><br />
apt-get update<br />
apt-get dist-upgrade <br />
</nowiki></pre><br />
<br />
3) finally create your OE tree (see [[Getting started]] instructions).<br />
<br />
== other Linux distributions ==<br />
<br />
=== Gentoo instructions ===<br />
<br />
Note that Psyco, the Python JIT compiler, works on 32-bit x86 platforms only.<br />
<br />
<pre><nowiki><br />
emerge -n \<br />
psyco \<br />
patch \<br />
make \<br />
sed \<br />
dev-lang/python \<br />
m4 \<br />
bison \<br />
cvs \<br />
openjade \<br />
quilt \<br />
sgmltools-lite \<br />
docbook-xml-dtd \<br />
docbook-dsssl-stylesheets \<br />
xmlto \<br />
docbook-sgml-utils \<br />
libpcre \<br />
boost \<br />
subversion \<br />
texi2html \<br />
pysqlite \<br />
chrpath<br />
</nowiki></pre><br />
<br />
Then follow the instructions in [[Getting started]] for obtaining bitbake and start the build.<br />
<br />
=== Arch Linux (Duke) ===<br />
<br />
Most of the packages are available in the repositories.<br />
<br />
<pre><nowiki><br />
sudo pacman -S patch make sed python m4 bison cvs quilt sgmltools-lite docbook-xml \<br />
xmlto pcre boost jade git texinfo texi2html help2man subversion chrpath<br />
</nowiki></pre><br />
<br />
In Arch Linux the install command is in /bin/install. Since most of Linux distribution assume that install is located in /usr/bin/install, you have to create a symlink:<br />
<br />
<pre><nowiki><br />
sudo ln -s /bin/install /usr/bin/install<br />
</nowiki></pre><br />
<br />
You can build BitBake by using this PKGBUILD or install it from the AUR:<br />
<pre><nowiki><br />
pkgname=bitbake<br />
pkgver=1.8.4<br />
pkgrel=1<br />
pkgdesc="A simple tool for task execution derived from Gentoo's portage"<br />
url="http://developer.berlios.de/projects/bitbake/"<br />
arch=('i686')<br />
license=('GPL' 'custom')<br />
depends=('python')<br />
source=(http://download.berlios.de/bitbake/${pkgname}-${pkgver}.tar.gz)<br />
md5sums=('508d9a61c635d469be8facc95151158b')<br />
<br />
build() {<br />
cd ${startdir}/src/${pkgname}-${pkgver}<br />
python setup.py install --root=${startdir}/pkg<br />
<br />
# Install vim extensions<br />
install -D -m644 ${startdir}/src/${pkgname}-${pkgver}/contrib/vim/ftdetect/bitbake.vim \<br />
${startdir}/pkg/usr/share/vim/ftplugin/bitbake.vim<br />
install -D -m644 ${startdir}/src/${pkgname}-${pkgver}/contrib/vim/syntax/bitbake.vim \<br />
${startdir}/pkg/usr/share/vim/syntax/bitbake.vim<br />
<br />
# Handle MIT license<br />
install -D -m644 ${startdir}/src/${pkgname}-${pkgver}/doc/COPYING.MIT \<br />
${startdir}/pkg/usr/share/licenses/${pkgname}/COPYING.MIT<br />
}<br />
</nowiki></pre><br />
<br />
= Using OpenEmbedded on FreeBSD and other NON Linux Systems =<br />
<br />
tbd<br />
<br />
== FreeBSD ==<br />
<br />
* Python == /usr/ports/lang/python<br />
* GNU Patch == /usr/ports/devel/patch<br />
* GNU m4 == /usr/ports/devel/m4<br />
* GNU make == /usr/ports/devel/gmake<br />
* wget == /usr/ports/ftp/wget<br />
* Psyco JIT Compiler == /usr/ports/devel/py-psyco<br />
* GNU sed == /usr/ports/textproc/gsed<br />
* Bison == /usr/ports/devel/bison<br />
* GCC 2.95.3 == /usr/ports/lang/gcc295<br />
* bc == already in FreeBSD<br />
* PyQt == /usr/ports/x11-toolkits/py-qt<br />
* glibc headers (ignore)<br />
* subversion == /usr/ports/devel/subversion<br />
* git == /usr/ports/devel/git<br />
* pcre == /usr/ports/devel/pcre<br />
<br />
Ports has also has these: fileutils, jade, docbook, dsssl-docbook-modular, sgmltools<br />
<br />
== Using OpenEmbedded on Mac OS X ==<br />
<br />
By default OS X uses a filesystem that is '''not''' case sensitive. You need to ensure that at least your tmp directory is on a case sensitive filesystem or you may come across various packages that break, including the Linux kernel! These steps were carried out on a early 32 bit 10.5/Intel Mac - the install order matters for a couple of packages as does having them installed in a more normal location.<br />
<br />
# Register at [https://connect.apple.com ADC] and download and install Xcode<br />
# Compile and install [http://www.gnu.org/software/gettext/ GNU gettext]<br />
# Using CPAN install Locale::gettext<br />
# Compile and install [http://www.gnu.org/software/help2man/ help2man 1.29] - newer versions will not build without hacks<br />
# Compile and install [http://www.gnu.org/software/wget/ wget], [http://www.gnu.org/software/gawk/ gawk], [http://www.gnu.org/software/coreutils/ coreutils] and [http://git-scm.com/ git] - wget appears to not work if you install it in /usr/local so use --prefix=/usr also note OS X provides a different version of mktemp which functions differently, be careful not to overwrite this as OS X might need it<br />
# If you are on a 32 bit Mac you can of course install [http://psyco.sourceforge.net/ psyco]<br />
# Fixup your PATH variable for your build user so that /usr/local/bin (or where ever coreutils etc is installed) comes before the OS X version in /usr/bin<br />
# Install GNU sed 3.0.2, this will give you a version of sed that allows you to build sed 4.1.5 - you will need to overwrite the one provided by OS X with --prefix=/usr and ensure you are using 4.1.5 not 3.0.2 as 3.0.2 does not provide various options you need<br />
# Install getopt from [http://software.frodo.looijaard.name/getopt/download.php here] - modify WITHOUT_GETTEXT=0 to WITHOUT_GETTEXT=1 in the Makefile and add -DWITHOUT_GETTEXT=$(WITHOUT_GETTEXT) to the line beginning with CPPFLAGS=<br />
<br />
Now follow the Getting Started OpenEmbedded wiki guide. Unfortunately there are various issues building on OS X that will most likely prevent the toolchain from building.<br />
<br />
Unfinished - tbd<br />
<br />
= Using OpenEmbedded on Windows/Cygwin Systems =<br />
<br />
<br />
Building Openembedded on Windows is currently unsupported, but [http://oe.linuxtogo.org/wiki/BuildOnCygwin work is in progress] to support buidling of meta-toolchain.bb on Windows/Cygwin hosts.<br />
<br />
[[Category:User]]</div>Anthttp://www.openembedded.org/index.php?title=Zaurus&diff=2986Zaurus2010-11-02T15:33:38Z<p>Ant: </p>
<hr />
<div>'''Technical information from [http://linuxtogo.org/gowiki/LinuxDevices LinuxDevices]'''<br />
<br />
* [http://linuxtogo.org/gowiki/ZaurusCollie collie]<br />
* [http://linuxtogo.org/gowiki/ZaurusPoodle poodle]<br />
* [http://linuxtogo.org/gowiki/ZaurusC7x0 c7x0] (corgi, shepherd, husky, boxer)<br />
* [http://linuxtogo.org/gowiki/ZaurusAkita akita]<br />
* [http://linuxtogo.org/gowiki/ZaurusSpitz spitz] (borzoi, terrier)<br />
* [http://linuxtogo.org/gowiki/ZaurusTosa tosa]<br />
<br />
'''kexecboot'''<br />
<br />
For the Zaurus a [http://projects.linuxtogo.org/projects/kexecboot/ special kernel+initramfs] has been developed.<br />
This special-purpose kernel is small enough to be flashed on NAND and features a framebuffer graphical menu for the selection of boot media containing the kernel to be kexec'ed in the second phase.<br />
<br />
Multi-partition cards and lots of filesystems are supported.<br />
The kernels to be launched are searched for in /boot of each available partition.<br />
There is a also a configuration file (/boot/boot.cfg) which allows selection of other kernels, custom kernel command lines, and specifies the label and the icon for each instance.<br />
<br />
'''How to install:'''<br />
<br />
Just unpack zaurus-installer-YOURMACHINE.tar.gz on a free (FAT or EXT2/3 formatted) partition: the package contains the kexecboot-kernel and the updater.sh utility. Then proceed as usual for flashing (switch off, pull battery out, insert battery again, before inserting AC plug press OK+Power On. In the Japanese Menu select 4 and finally 3 for SD card or 4 for CF).<br />
<br />
For the SL-5500 (collie) and optionally for other Zaurus too, flashing is possible just using the routines of the original firmware: <br />
reset the unit, Press C and D button during restart.<br />
<br />
'''NOTE:'''<br />
To fully clean your mtd partitions use 'flash_eraseall -j dev/mtd2' and 'flash_eraseall -j /dev/mtd3'. <br />
If you want a rootfs in nand, this must be in the .jffs2 format. Just rename your-image-rootfs.jffs2 to 'initrd.bin' and copy it on the card with updater.sh: the image will be flashed on /dev/mtd2.<br />
You can even have a second image in nand: updater.sh will search for a 'home.bin' file to be flashed on mtd3. <br />
<br />
[[Category:Machine]]<br />
[[Category:User]]<br />
[[Category:FAQ]]</div>Anthttp://www.openembedded.org/index.php?title=Zaurus&diff=2985Zaurus2010-11-02T15:32:48Z<p>Ant: </p>
<hr />
<div>'''Technical information from [http://linuxtogo.org/gowiki/LinuxDevices LinuxDevices]'''<br />
<br />
* [http://linuxtogo.org/gowiki/ZaurusCollie collie]<br />
* [http://linuxtogo.org/gowiki/ZaurusPoodle poodle]<br />
* [http://linuxtogo.org/gowiki/ZaurusC7x0 c7x0] (corgi, shepherd, husky, boxer)<br />
* [http://linuxtogo.org/gowiki/ZaurusAkita akita]<br />
* [http://linuxtogo.org/gowiki/ZaurusSpitz spitz] (borzoi, terrier)<br />
* [http://linuxtogo.org/gowiki/ZaurusTosa tosa]<br />
<br />
'''kexecboot'''<br />
<br />
For the Zaurus a [http://projects.linuxtogo.org/projects/kexecboot/ special kernel+initramfs] has been developed.<br />
This special-purpose kernel is small enough to be flashed on NAND and features a framebuffer graphical menu for the selection of boot media containing the kernel to be kexec'ed in the second phase.<br />
<br />
Multi-partition cards and lots of filesystems are supported.<br />
The kernels to be launched are searched for in /boot of each available partition.<br />
There is a also a configuration file (/boot/boot.cfg) which allows selection of other kernels, custom kernel command lines, and specifies the label and the icon for each instance.<br />
<br />
'''How to install:'''<br />
<br />
Just unpack zaurus-installer-YOURMACHINE.tar.gz on a free (FAT or EXT2/3 formatted) partition: the package contains the kexecboot-kernel and the updater.sh utility. Then proceed as usual for flashing (switch off, pull battery out, insert battery again, before inserting AC plug press OK+Power On. In the Japanese Menu select 4 and finally 3 for SD card or 4 for CF).<br />
<br />
For the SL-5500 (collie) and optionally for other Zaurus too, flashing is possible just using the routines of the original firmware: <br />
reset the unit, Press C and D button during restart.<br />
<br />
'''NOTE:'''<br />
To fully clean your mtd partitions use flash_eraseall -j dev/mtd2 and flash_eraseall -j /dev/mtd3. <br />
If you want a rootfs in nand, this must be in the .jffs2 format. Just rename your-image-rootfs.jffs2 to initrd.bin and copy it on the card with updater.sh: the image will be flashed on /dev/mtd2.<br />
You can even have a second image in nand: updater.sh will search for a home.bin file to be flashed on mtd3. <br />
<br />
[[Category:Machine]]<br />
[[Category:User]]<br />
[[Category:FAQ]]</div>Anthttp://www.openembedded.org/index.php?title=Zaurus&diff=2984Zaurus2010-11-02T15:29:09Z<p>Ant: </p>
<hr />
<div>'''Technical information from [http://linuxtogo.org/gowiki/LinuxDevices LinuxDevices]'''<br />
<br />
* [http://linuxtogo.org/gowiki/ZaurusCollie collie]<br />
* [http://linuxtogo.org/gowiki/ZaurusPoodle poodle]<br />
* [http://linuxtogo.org/gowiki/ZaurusC7x0 c7x0] (corgi, shepherd, husky, boxer)<br />
* [http://linuxtogo.org/gowiki/ZaurusAkita akita]<br />
* [http://linuxtogo.org/gowiki/ZaurusSpitz spitz] (borzoi, terrier)<br />
* [http://linuxtogo.org/gowiki/ZaurusTosa tosa]<br />
<br />
'''kexecboot'''<br />
<br />
For the Zaurus a [http://projects.linuxtogo.org/projects/kexecboot/ special kernel+initramfs] has been developed.<br />
This special-purpose kernel is small enough to be flashed on NAND and features a framebuffer graphical menu for the selection of boot media containing the kernel to be kexec'ed in the second phase.<br />
<br />
Multi-partition cards and lots of filesystems are supported.<br />
The kernels to be launched are searched for in /boot of each available partition.<br />
There is a also a configuration file (/boot/boot.cfg) which allows selection of other kernels, custom kernel command lines, and specifies the label and the icon for each instance.<br />
<br />
'''How to install:'''<br />
<br />
Just unpack zaurus-installer-YOURMACHINE.tar.gz on a free (FAT or EXT2/3 formatted) partition: the package contains the kexecboot-kernel and the updater.sh utility. Then proceed as usual for flashing (switch off, pull battery out, insert battery again, before inserting AC plug press OK+Power On. In the Japanese Menu select 4 and finally 3 for SD card or 4 for CF).<br />
<br />
For the SL-5500 (collie) and optionally for other Zaurus too, flashing is possible just using the routines of the original firmware: <br />
reset the unit, Press C and D button during restart.<br />
<br />
'''NOTE:'''<br />
<br />
If you want a rootfs in nand, this must be in the .jffs2 format. Just rename your-image-rootfs.jffs2 to initrd.bin and copy it on the card with updater.sh: the image will be flashed on /dev/mtd2.<br />
You can even have a second image in nand: updater.sh will search for a home.bin file to be flashed on mtd3. <br />
<br />
[[Category:Machine]]<br />
[[Category:User]]<br />
[[Category:FAQ]]</div>Anthttp://www.openembedded.org/index.php?title=OEandYourDistro&diff=2353OEandYourDistro2010-06-22T09:03:18Z<p>Ant: /* Ubuntu */</p>
<hr />
<div>See [[Required software]] for the list of the software required by Openembedded.<br />
<br />
= Using OpenEmbedded on Linux systems =<br />
<br />
== deb-based distributions ==<br />
<br />
The easiest way is via [http://blog.leggewie.org/?p=39 apt-get'able Openembedded] which will pull the OE meta-data for you and keep it up-to-date. Plus, it makes sure all necessary software for cross-compilation is installed. Easy as 1-2-3.<br />
<br />
=== Debian ===<br />
<br />
==== Mandatory packages ====<br />
<br />
aptitude install sed wget cvs subversion git-core \<br />
coreutils unzip texi2html texinfo libsdl1.2-dev docbook-utils \<br />
gawk python-pysqlite2 diffstat help2man make gcc build-essential g++ \<br />
desktop-file-utils chrpath<br />
<br />
'''Git'''<br />
<br />
On debian you may have to run <br />
<br />
update-alternatives --config git (as root)<br />
<br />
and select /usr/bin/git-scm to provide git instead of /usr/bin/git.transition. This is not necessary in sid<br />
<br />
==== Supplementary packages ====<br />
<br />
<pre><nowiki><br />
apt-get install libxml2-utils xmlto python-psyco<br />
</nowiki></pre><br />
<br />
<br />
OPTIONAL: these packages and their dependencies need to be installed in order to build the bitbake documentation (warning: over 160MB of installed packages).<br />
<br />
<pre><nowiki><br />
apt-get install docbook<br />
</nowiki></pre><br />
This package is necessary to build some packages (in particular the esound documentation needs it).<br />
<br />
=== Ubuntu ===<br />
<br />
Ubuntu is based on Debian and instructions above for [[#deb-based distributions|Debian]] apply here as well. Make sure that you have the universe repositories in your apt configuration.<br />
<br />
* Check that /bin/sh (ls -l /bin/sh) is not symbolically linked to dash. "dash" is a POSIX compliant shell that is much smaller than "bash" -- however some broken shell scripts still make use of bash extensions while calling into /bin/sh. To work around this issue call "''sudo dpkg-reconfigure dash''" and select No when it asks you to install dash as /bin/sh.<br />
* You can also install Psyco Python JIT compiler to speed up BitBake. Psyco works on 32-bit x86 platforms only. "''aptitude install python-psyco''<br />
* there are known [[gcc issues in Intrepid and later]] when cross-compiling with OE<br />
<br />
[SOLVED - update 2010-05]<br />
* qemu-arm fails whilst building locales (Ubuntu 10.04 LTS and possibly other releases). This is due to a kernel setting which restricts memory mapping to low addresses. To work around this you can either:<br />
** a) Enter 'echo 128 > /proc/sys/vm/mmap_min_addr' prior to running bitbake.<br />
** b) Set permanent parameter 'sudo sysctl -w vm.mmap_min_addr=128'.<br />
<br />
With current qemu in OE mmap_min_addr tricks are not needed at all.<br />
So now it should work on every system with readable /proc/sys/vm/mmap_min_addr or /proc/sys/vm/mmap_min_addr <= 65536.<br />
<br />
== rpm-based distributions ==<br />
<br />
=== Mandriva Linux ===<br />
<br />
Follow the Debian instructions, only using `urpmi` instead of `apt-get install`. You can find it in the contrib section of any Mandriva mirror or seach for it using the Mandriva Club rpm database [http://rpms.mandrakeclub.com]. You may need libpythonV.V-devel for bitbake setup instead of python-dev.<br />
If you're building a 2.6 kernel, you also need the glibc-static-devel package.<br />
<br />
with Mandriva Linux 2006, you need to issue the following command:<br />
<br />
<pre><nowiki><br />
urpmi python python-devel python-psyco patch m4 sed bison make wget bzip2 \<br />
cvs gawk glibc-devel gcc-c++ subversion sharutils coreutils docbook-utils openjade \<br />
quilt pcre-devel unzip glibc-static-devel<br />
</nowiki></pre><br />
<br />
=== openSUSE ===<br />
<br />
==== openSUSE 11.1 ====<br />
<br />
Use zypper to install the required packages:<br />
<br />
zypper in subversion git python help2man diffstat wget gcc gcc-c++ libstdc++ glibc-devel texinfo automake patch<br />
<br />
These packages may be useful as well: bison and [http://software.opensuse.org/search?baseproject=ALL&p=1&q=gcc33 gcc33] (for faster build using ASSUME_PROVIDED), gtk2-devel (in case your build will fail on missing gdk-pixbuf-csource), bc (for collie kernel), ncurses-devel (if you want to call kernel menuconfig). python psyco package is optional.<br />
<br />
=== Fedora ===<br />
<br />
==== Fedora Core 2/3 ====<br />
Much of the following is probably already installed, but you can check with the following commands. You may want to use the yum.conf located at http://www.fedorafaq.org/. Note, this has not been tested yes as I am in the process of setting up a development environment.<br />
<br />
<pre><nowiki> yum install python patch m4 sed make docbook* openjade glibc-devel xmlto</nowiki></pre><br />
<br />
* psyco: Download psyco-1.4-src.tar.gz (or later) and extract it. Go to the psycho top-level directory and run: `python setup.py install`.<br />
<br />
* patch: FC3 default version should be enough. Optionally, install SuSe 9.1 package of it.<br />
<br />
==== Fedora Core 4 ====<br />
Almost all required packages for Openembedded are available in Fedora Core 4 and the Fedora Extras for Core 4. You can download them from <http://download.fedora.redhat.com/pub/fedora/linux/core> and <http://download.fedora.redhat.com/pub/fedora/linux/extras>. Check <http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4> for updates on the Core 4 packages.<br />
<br />
Apart from the usual (native) development packages like gcc and binutils, you should check that you have the following RPM's installed: <br />
<br />
* bison<br />
* docbook* packages<br />
* libpcre<br />
* m4<br />
* make<br />
* openjade<br />
* patch<br />
* PyQt<br />
* python<br />
* python-psyco<br />
* sed<br />
* xmlto<br />
* quilt (not required as OE builds it by itself, but install it if you want to use gquilt)<br />
<br />
Use apt, synaptic, up2date or yum to automagically retrieve these packages or download and install them manually (lots of work).<br />
<br />
==== Fedora Core 5/6 ====<br />
<br />
Commands I used to install OE pre-requisites on FC5/6<br />
<br />
This long command will ensure all pre-requisites are installed (patch is 2.5.4, not 2.5.9, but appears to work).<br />
<br />
<pre><nowiki><br />
su -c "yum install python m4 make wget curl ftp cvs subversion tar bzip2 gzip \<br />
unzip python-psyco perl texinfo texi2html diffstat openjade docbook-style-dsssl \<br />
docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel gcc binutils \<br />
pcre pcre-devel git quilt groff linuxdoc-tools patch gcc gcc-c++ python-sqlite2 help2man"<br />
</nowiki></pre><br />
<br />
or download the metapackage http://www.openembedded.org/dl/packages/rpm/openembedded-essential-1.1-1.noarch.rpm (may be out of date).<br />
<br />
then do<br />
<br />
<pre><nowiki><br />
su -c "yum localinstall openembedded-essential-1.1-1.noarch.rpm"<br />
</nowiki></pre><br />
<br />
<br />
There are also rpm and src.rpm packages of bitbake 1.6.2 at http://www.openembedded.org/dl/packages/rpm/ pending a later version in Extras, currently 1.6.0.<br />
<br />
Update - Current FC6 version is patch-2.5.4-29.2.2 as of this writing and works-for-me (see revision history for build instructions if current patch does not work for you).<br />
<br />
I didn't install SGML tools. Please add if you know how<br />
<br />
Update - Since about 2002 sgml-tools has apparently been replaced by linuxdoc-tools for FC.<br />
<br />
==== Fedora 7 ====<br />
<br />
This long command will ensure all pre-requisites are installed (patch is 2.5.4, not 2.5.9, but appears to work).<br />
<br />
<pre><nowiki><br />
su -c "yum install python m4 make wget curl ftp cvs subversion tar bzip2 gzip unzip \<br />
python-psyco perl texinfo texi2html diffstat openjade docbook-style-dsssl \<br />
docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel gcc binutils \<br />
pcre pcre-devel git quilt groff linuxdoc-tools patch linuxdoc-tools gcc gcc-c++ \<br />
help2man perl-ExtUtils-MakeMaker"<br />
</nowiki></pre><br />
<br />
(if this is hard to copy from this HTML page, go to edit mode and copy from editor)<br />
<br />
==== Fedora 11 ====<br />
<br />
Fedora 11, compared to previous versions, brings the need to install "glibc-static" as well:<br />
<br />
<pre><nowiki><br />
su -c "yum install python m4 make wget curl ftp cvs subversion tar bzip2 gzip unzip \<br />
python-psyco perl texinfo texi2html diffstat openjade docbook-style-dsssl \<br />
docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel glibc-static \<br />
gcc binutils pcre pcre-devel git quilt groff linuxdoc-tools patch linuxdoc-tools \<br />
gcc-c++ help2man perl-ExtUtils-MakeMaker"<br />
</nowiki></pre><br />
<br />
(if this is hard to copy from this HTML page, go to edit mode and copy from editor)<br />
<br />
=== CentOS 4.4 / Red Hat Enterprise Linux 4 ===<br />
May also work for true EL4 or Scientific Linux - another RHEL rebuild<br />
<br />
Even with several optional and 3rd party yum repos enabled (centosplus, kbsingh, RPMforge/Dag, Dries) a number of required packages are too old or unavailable for CentOS4. [It should be possible to use other package managers including apt/synaptic, up2date, and smart to get the required packages. The following assumes yum.]<br />
<br />
I re-built the following SRPMS (with "$ rpmbuild --rebuild ..."):<br />
* boost-1.33.1-10.fc5.src.rpm<br />
* bitbake-1.6.2-1.src.rpm (Latest tarball from http://developer.berlios.de/projects/bitbake/ + modified spec from bitbake-1.6.0-2.fc7.src.rpm)<br />
<br />
Might also want to try the rpm and src.rpm packages of bitbake 1.6.2 at http://www.openembedded.org/dl/packages/rpm/ - I have not.<br />
<br />
Extra requirements for the builds included rpmdevtools, xmlto, and lynx.<br />
<br />
I put packages in a local repo so I can do "yum install ...", otherwise can do "yum localinstall foo.1.2.3.noarch.rpm ...". It may be necessary to temporarily set "gpgcheck=0" in /etc/yum.conf to avoid complaints about unsigned packages.<br />
<br />
For EL4 texi2html is available from the tetex package, currently tetex-2.0.2-22.EL4.7<br />
<br />
Note that the the metapackage http://www.openembedded.org/dl/packages/rpm/openembedded-essential-1.1-1.noarch.rpm<br />
should work except that it depends on texi2html.<br />
<br />
Instead as root do<br />
<br />
<pre><nowiki><br />
yum install bison coreutils cvs docbook-utils gawk git-core python quilt rpmlib \<br />
sed subversion tetex texinfo unzip wget<br />
</nowiki></pre><br />
<br />
I ended up with the following set of relevant packages after several iterations of building/updating to get "bitbake nano" to complete successfully:<br />
<br />
* python-2.3.4-14.3<br />
* m4-1.4.1-16<br />
* make-3.80-6.EL4<br />
* wget-1.10.2-0.40E<br />
* curl-7.12.1-8.rhel4<br />
* ftp-0.17-22<br />
* cvs-1.11.17-9.RHEL4<br />
* subversion-1.4.3-0.1.el4.rf<br />
* tar-1.14-12.RHEL4<br />
* bzip2-1.0.2-13.EL4.3<br />
* gzip-1.3.3-16.rhel4<br />
* unzip-5.51-7<br />
* python-psyco-1.5-3.el4.kb<br />
* perl-5.8.5-36.RHEL4<br />
* texinfo-4.7-5.el4.2<br />
* tetex-2.0.2-22.EL4.7<br />
* diffstat-1.34-0_6.el4.at<br />
* openjade-1.3.2-16_9.el4.at<br />
* docbook-style-dsssl-1.78-4<br />
* docbook-style-xsl-1.65.1-2<br />
* docbook-dtds-1.0-25<br />
* docbook-utils-0.6.14-4<br />
* sed-4.1.2-5.EL4<br />
* bison-1.875c-2<br />
* bc-1.06-17.1<br />
* glibc-devel-2.3.4-2.25<br />
* gcc-3.4.6-3<br />
* binutils-2.15.92.0.2-21<br />
* pcre-4.5-3.2.RHEL4<br />
* pcre-devel-4.5-3.2.RHEL4<br />
* git-1.4.4.2-2.el4.kb<br />
* bitbake-1.6.2-1<br />
<br />
=== ALT Linux ===<br />
<br />
You can read more about ALT Linux here: http://www.altlinux.com/en/<br />
<br />
You can use synaptic or aptitude to install packages. Or use apt-get as shown below.<br />
<br />
<pre><nowiki><br />
apt-get install git-core python python-dev python-module-psyco python-modules-sqlite3 \<br />
patch m4 sed bison make wget bzip2 cvs gawk gcc-c++ subversion sharutils coreutils \<br />
docbook-utils openjade quilt libpcre-devel unzip glibc-devel glibc-devel-static \<br />
help2man texi2html perl-devel chrpath<br />
</nowiki></pre><br />
<br />
For building bitbake manuals you have to install 'xmlto' package:<br />
<br />
<pre><nowiki><br />
apt-get install xmlto<br />
</nowiki></pre><br />
<br />
NOTES:<br />
* This is tested on ALD 4.0/4.1/5.0.<br />
* gcc-c++ is virtual package and can be provided by gcc4.3-c++ (ALD 5.0) and gcc4.1-c++ (ALD 4.0/4.1). Just select higher version.<br />
<br />
=== Ark Linux 2008.1 ===<br />
[http://www.arklinux.org/ Ark Linux] is a modern distribution well suited for Openembedded development. Footprint only 2.1G.<br />
<br />
Required steps:<br />
<br />
1) install required packages<br />
<pre><nowiki><br />
apt-get install devel-core diffstat texi2html cvs subversion git texinfo psyco python-devel \<br />
python-encodings python-sqlite help2man bitbake<br />
</nowiki></pre><br />
<br />
2) upgrade<br />
<pre><nowiki><br />
apt-get update<br />
apt-get dist-upgrade <br />
<br />
The following packages will be REPLACED:<br />
texi2html (by texlive-texi2html)<br />
The following NEW packages will be installed:<br />
texlive-texi2html<br />
</nowiki></pre><br />
<br />
3) finally create your OE tree (see [[Getting started]] instructions). bitbake is already included, so you can skip that step.<br />
<br />
== other Linux distributions ==<br />
<br />
=== Gentoo instructions ===<br />
<br />
Note that Psyco, the Python JIT compiler, works on 32-bit x86 platforms only.<br />
<br />
<pre><nowiki><br />
emerge -n \<br />
psyco \<br />
patch \<br />
make \<br />
sed \<br />
dev-lang/python \<br />
m4 \<br />
bison \<br />
cvs \<br />
openjade \<br />
quilt \<br />
sgmltools-lite \<br />
docbook-xml-dtd \<br />
docbook-dsssl-stylesheets \<br />
xmlto \<br />
docbook-sgml-utils \<br />
libpcre \<br />
boost \<br />
subversion \<br />
texi2html \<br />
pysqlite \<br />
chrpath<br />
</nowiki></pre><br />
<br />
Then follow the instructions in [[Getting started]] for obtaining bitbake and start the build.<br />
<br />
=== Arch Linux (Duke) ===<br />
<br />
Most of the packages are available in the repositories.<br />
<br />
<pre><nowiki><br />
sudo pacman -S patch make sed python m4 bison cvs quilt sgmltools-lite docbook-xml \<br />
xmlto pcre boost jade git texinfo texi2html help2man subversion chrpath<br />
</nowiki></pre><br />
<br />
In Arch Linux the install command is in /bin/install. Since most of Linux distribution assume that install is located in /usr/bin/install, you have to create a symlink:<br />
<br />
<pre><nowiki><br />
sudo ln -s /bin/install /usr/bin/install<br />
</nowiki></pre><br />
<br />
You can build BitBake by using this PKGBUILD or install it from the AUR:<br />
<pre><nowiki><br />
pkgname=bitbake<br />
pkgver=1.8.4<br />
pkgrel=1<br />
pkgdesc="A simple tool for task execution derived from Gentoo's portage"<br />
url="http://developer.berlios.de/projects/bitbake/"<br />
arch=('i686')<br />
license=('GPL' 'custom')<br />
depends=('python')<br />
source=(http://download.berlios.de/bitbake/${pkgname}-${pkgver}.tar.gz)<br />
md5sums=('508d9a61c635d469be8facc95151158b')<br />
<br />
build() {<br />
cd ${startdir}/src/${pkgname}-${pkgver}<br />
python setup.py install --root=${startdir}/pkg<br />
<br />
# Install vim extensions<br />
install -D -m644 ${startdir}/src/${pkgname}-${pkgver}/contrib/vim/ftdetect/bitbake.vim \<br />
${startdir}/pkg/usr/share/vim/ftplugin/bitbake.vim<br />
install -D -m644 ${startdir}/src/${pkgname}-${pkgver}/contrib/vim/syntax/bitbake.vim \<br />
${startdir}/pkg/usr/share/vim/syntax/bitbake.vim<br />
<br />
# Handle MIT license<br />
install -D -m644 ${startdir}/src/${pkgname}-${pkgver}/doc/COPYING.MIT \<br />
${startdir}/pkg/usr/share/licenses/${pkgname}/COPYING.MIT<br />
}<br />
</nowiki></pre><br />
<br />
= Using OpenEmbedded on FreeBSD and other NON Linux Systems =<br />
<br />
tbd<br />
<br />
== FreeBSD ==<br />
<br />
* Python == /usr/ports/lang/python<br />
* GNU Patch == /usr/ports/devel/patch<br />
* GNU m4 == /usr/ports/devel/m4<br />
* GNU make == /usr/ports/devel/gmake<br />
* wget == /usr/ports/ftp/wget<br />
* Psyco JIT Compiler == /usr/ports/devel/py-psyco<br />
* GNU sed == /usr/ports/textproc/gsed<br />
* Bison == /usr/ports/devel/bison<br />
* GCC 2.95.3 == /usr/ports/lang/gcc295<br />
* bc == already in FreeBSD<br />
* PyQt == /usr/ports/x11-toolkits/py-qt<br />
* glibc headers (ignore)<br />
* subversion == /usr/ports/devel/subversion<br />
* git == /usr/ports/devel/git<br />
* pcre == /usr/ports/devel/pcre<br />
<br />
Ports has also has these: fileutils, jade, docbook, dsssl-docbook-modular, sgmltools<br />
<br />
== Using OpenEmbedded on Mac OS X ==<br />
<br />
By default OS X uses a filesystem that is '''not''' case sensitive. You need to ensure that at least your tmp directory is on a case sensitive filesystem or you may come across various packages that break, including the Linux kernel! These steps were carried out on a early 32 bit 10.5/Intel Mac - the install order matters for a couple of packages as does having them installed in a more normal location.<br />
<br />
# Register at [https://connect.apple.com ADC] and download and install Xcode<br />
# Compile and install [http://www.gnu.org/software/gettext/ GNU gettext]<br />
# Using CPAN install Locale::gettext<br />
# Compile and install [http://www.gnu.org/software/help2man/ help2man 1.29] - newer versions will not build without hacks<br />
# Compile and install [http://www.gnu.org/software/wget/ wget], [http://www.gnu.org/software/gawk/ gawk], [http://www.gnu.org/software/coreutils/ coreutils] and [http://git-scm.com/ git] - wget appears to not work if you install it in /usr/local so use --prefix=/usr also note OS X provides a different version of mktemp which functions differently, be careful not to overwrite this as OS X might need it<br />
# If you are on a 32 bit Mac you can of course install [http://psyco.sourceforge.net/ psyco]<br />
# Fixup your PATH variable for your build user so that /usr/local/bin (or where ever coreutils etc is installed) comes before the OS X version in /usr/bin<br />
# Install GNU sed 3.0.2, this will give you a version of sed that allows you to build sed 4.1.5 - you will need to overwrite the one provided by OS X with --prefix=/usr and ensure you are using 4.1.5 not 3.0.2 as 3.0.2 does not provide various options you need<br />
# Install getopt from [http://software.frodo.looijaard.name/getopt/download.php here] - modify WITHOUT_GETTEXT=0 to WITHOUT_GETTEXT=1 in the Makefile and add -DWITHOUT_GETTEXT=$(WITHOUT_GETTEXT) to the line beginning with CPPFLAGS=<br />
<br />
Now follow the Getting Started OpenEmbedded wiki guide. Unfortunately there are various issues building on OS X that will most likely prevent the toolchain from building.<br />
<br />
Unfinished - tbd<br />
<br />
= Using OpenEmbedded on Windows/Cygwin Systems =<br />
<br />
<br />
Building Openembedded on Windows is currently unsupported, but [http://oe.linuxtogo.org/wiki/BuildOnCygwin work is in progress] to support buidling of meta-toolchain.bb on Windows/Cygwin hosts.<br />
<br />
[[Category:User]]</div>Anthttp://www.openembedded.org/index.php?title=OEandYourDistro&diff=2352OEandYourDistro2010-06-22T09:02:43Z<p>Ant: /* Ubuntu */</p>
<hr />
<div>See [[Required software]] for the list of the software required by Openembedded.<br />
<br />
= Using OpenEmbedded on Linux systems =<br />
<br />
== deb-based distributions ==<br />
<br />
The easiest way is via [http://blog.leggewie.org/?p=39 apt-get'able Openembedded] which will pull the OE meta-data for you and keep it up-to-date. Plus, it makes sure all necessary software for cross-compilation is installed. Easy as 1-2-3.<br />
<br />
=== Debian ===<br />
<br />
==== Mandatory packages ====<br />
<br />
aptitude install sed wget cvs subversion git-core \<br />
coreutils unzip texi2html texinfo libsdl1.2-dev docbook-utils \<br />
gawk python-pysqlite2 diffstat help2man make gcc build-essential g++ \<br />
desktop-file-utils chrpath<br />
<br />
'''Git'''<br />
<br />
On debian you may have to run <br />
<br />
update-alternatives --config git (as root)<br />
<br />
and select /usr/bin/git-scm to provide git instead of /usr/bin/git.transition. This is not necessary in sid<br />
<br />
==== Supplementary packages ====<br />
<br />
<pre><nowiki><br />
apt-get install libxml2-utils xmlto python-psyco<br />
</nowiki></pre><br />
<br />
<br />
OPTIONAL: these packages and their dependencies need to be installed in order to build the bitbake documentation (warning: over 160MB of installed packages).<br />
<br />
<pre><nowiki><br />
apt-get install docbook<br />
</nowiki></pre><br />
This package is necessary to build some packages (in particular the esound documentation needs it).<br />
<br />
=== Ubuntu ===<br />
<br />
Ubuntu is based on Debian and instructions above for [[#deb-based distributions|Debian]] apply here as well. Make sure that you have the universe repositories in your apt configuration.<br />
<br />
* Check that /bin/sh (ls -l /bin/sh) is not symbolically linked to dash. "dash" is a POSIX compliant shell that is much smaller than "bash" -- however some broken shell scripts still make use of bash extensions while calling into /bin/sh. To work around this issue call "''sudo dpkg-reconfigure dash''" and select No when it asks you to install dash as /bin/sh.<br />
* You can also install Psyco Python JIT compiler to speed up BitBake. Psyco works on 32-bit x86 platforms only. "''aptitude install python-psyco''<br />
* there are known [[gcc issues in Intrepid and later]] when cross-compiling with OE<br />
<br />
[SOLVED - update 2010-05]<br />
* qemu-arm fails whilst building locales (Ubuntu 10.04 LTS and possibly other releases). This is due to a kernel setting which restricts memory mapping to low addresses. To work around this you can either:<br />
** a) Enter 'echo 128 > /proc/sys/vm/mmap_min_addr' prior to running bitbake.<br />
** b) Set permanent parameter 'sudo sysctl -w vm.mmap_min_addr=128'.<br />
<br />
With current qemu in OE mmap_min_addr tricks are not needed at all.<br />
So now it should work on every system with with readable /proc/sys/vm/mmap_min_addr or /proc/sys/vm/mmap_min_addr <= 65536.<br />
<br />
== rpm-based distributions ==<br />
<br />
=== Mandriva Linux ===<br />
<br />
Follow the Debian instructions, only using `urpmi` instead of `apt-get install`. You can find it in the contrib section of any Mandriva mirror or seach for it using the Mandriva Club rpm database [http://rpms.mandrakeclub.com]. You may need libpythonV.V-devel for bitbake setup instead of python-dev.<br />
If you're building a 2.6 kernel, you also need the glibc-static-devel package.<br />
<br />
with Mandriva Linux 2006, you need to issue the following command:<br />
<br />
<pre><nowiki><br />
urpmi python python-devel python-psyco patch m4 sed bison make wget bzip2 \<br />
cvs gawk glibc-devel gcc-c++ subversion sharutils coreutils docbook-utils openjade \<br />
quilt pcre-devel unzip glibc-static-devel<br />
</nowiki></pre><br />
<br />
=== openSUSE ===<br />
<br />
==== openSUSE 11.1 ====<br />
<br />
Use zypper to install the required packages:<br />
<br />
zypper in subversion git python help2man diffstat wget gcc gcc-c++ libstdc++ glibc-devel texinfo automake patch<br />
<br />
These packages may be useful as well: bison and [http://software.opensuse.org/search?baseproject=ALL&p=1&q=gcc33 gcc33] (for faster build using ASSUME_PROVIDED), gtk2-devel (in case your build will fail on missing gdk-pixbuf-csource), bc (for collie kernel), ncurses-devel (if you want to call kernel menuconfig). python psyco package is optional.<br />
<br />
=== Fedora ===<br />
<br />
==== Fedora Core 2/3 ====<br />
Much of the following is probably already installed, but you can check with the following commands. You may want to use the yum.conf located at http://www.fedorafaq.org/. Note, this has not been tested yes as I am in the process of setting up a development environment.<br />
<br />
<pre><nowiki> yum install python patch m4 sed make docbook* openjade glibc-devel xmlto</nowiki></pre><br />
<br />
* psyco: Download psyco-1.4-src.tar.gz (or later) and extract it. Go to the psycho top-level directory and run: `python setup.py install`.<br />
<br />
* patch: FC3 default version should be enough. Optionally, install SuSe 9.1 package of it.<br />
<br />
==== Fedora Core 4 ====<br />
Almost all required packages for Openembedded are available in Fedora Core 4 and the Fedora Extras for Core 4. You can download them from <http://download.fedora.redhat.com/pub/fedora/linux/core> and <http://download.fedora.redhat.com/pub/fedora/linux/extras>. Check <http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4> for updates on the Core 4 packages.<br />
<br />
Apart from the usual (native) development packages like gcc and binutils, you should check that you have the following RPM's installed: <br />
<br />
* bison<br />
* docbook* packages<br />
* libpcre<br />
* m4<br />
* make<br />
* openjade<br />
* patch<br />
* PyQt<br />
* python<br />
* python-psyco<br />
* sed<br />
* xmlto<br />
* quilt (not required as OE builds it by itself, but install it if you want to use gquilt)<br />
<br />
Use apt, synaptic, up2date or yum to automagically retrieve these packages or download and install them manually (lots of work).<br />
<br />
==== Fedora Core 5/6 ====<br />
<br />
Commands I used to install OE pre-requisites on FC5/6<br />
<br />
This long command will ensure all pre-requisites are installed (patch is 2.5.4, not 2.5.9, but appears to work).<br />
<br />
<pre><nowiki><br />
su -c "yum install python m4 make wget curl ftp cvs subversion tar bzip2 gzip \<br />
unzip python-psyco perl texinfo texi2html diffstat openjade docbook-style-dsssl \<br />
docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel gcc binutils \<br />
pcre pcre-devel git quilt groff linuxdoc-tools patch gcc gcc-c++ python-sqlite2 help2man"<br />
</nowiki></pre><br />
<br />
or download the metapackage http://www.openembedded.org/dl/packages/rpm/openembedded-essential-1.1-1.noarch.rpm (may be out of date).<br />
<br />
then do<br />
<br />
<pre><nowiki><br />
su -c "yum localinstall openembedded-essential-1.1-1.noarch.rpm"<br />
</nowiki></pre><br />
<br />
<br />
There are also rpm and src.rpm packages of bitbake 1.6.2 at http://www.openembedded.org/dl/packages/rpm/ pending a later version in Extras, currently 1.6.0.<br />
<br />
Update - Current FC6 version is patch-2.5.4-29.2.2 as of this writing and works-for-me (see revision history for build instructions if current patch does not work for you).<br />
<br />
I didn't install SGML tools. Please add if you know how<br />
<br />
Update - Since about 2002 sgml-tools has apparently been replaced by linuxdoc-tools for FC.<br />
<br />
==== Fedora 7 ====<br />
<br />
This long command will ensure all pre-requisites are installed (patch is 2.5.4, not 2.5.9, but appears to work).<br />
<br />
<pre><nowiki><br />
su -c "yum install python m4 make wget curl ftp cvs subversion tar bzip2 gzip unzip \<br />
python-psyco perl texinfo texi2html diffstat openjade docbook-style-dsssl \<br />
docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel gcc binutils \<br />
pcre pcre-devel git quilt groff linuxdoc-tools patch linuxdoc-tools gcc gcc-c++ \<br />
help2man perl-ExtUtils-MakeMaker"<br />
</nowiki></pre><br />
<br />
(if this is hard to copy from this HTML page, go to edit mode and copy from editor)<br />
<br />
==== Fedora 11 ====<br />
<br />
Fedora 11, compared to previous versions, brings the need to install "glibc-static" as well:<br />
<br />
<pre><nowiki><br />
su -c "yum install python m4 make wget curl ftp cvs subversion tar bzip2 gzip unzip \<br />
python-psyco perl texinfo texi2html diffstat openjade docbook-style-dsssl \<br />
docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel glibc-static \<br />
gcc binutils pcre pcre-devel git quilt groff linuxdoc-tools patch linuxdoc-tools \<br />
gcc-c++ help2man perl-ExtUtils-MakeMaker"<br />
</nowiki></pre><br />
<br />
(if this is hard to copy from this HTML page, go to edit mode and copy from editor)<br />
<br />
=== CentOS 4.4 / Red Hat Enterprise Linux 4 ===<br />
May also work for true EL4 or Scientific Linux - another RHEL rebuild<br />
<br />
Even with several optional and 3rd party yum repos enabled (centosplus, kbsingh, RPMforge/Dag, Dries) a number of required packages are too old or unavailable for CentOS4. [It should be possible to use other package managers including apt/synaptic, up2date, and smart to get the required packages. The following assumes yum.]<br />
<br />
I re-built the following SRPMS (with "$ rpmbuild --rebuild ..."):<br />
* boost-1.33.1-10.fc5.src.rpm<br />
* bitbake-1.6.2-1.src.rpm (Latest tarball from http://developer.berlios.de/projects/bitbake/ + modified spec from bitbake-1.6.0-2.fc7.src.rpm)<br />
<br />
Might also want to try the rpm and src.rpm packages of bitbake 1.6.2 at http://www.openembedded.org/dl/packages/rpm/ - I have not.<br />
<br />
Extra requirements for the builds included rpmdevtools, xmlto, and lynx.<br />
<br />
I put packages in a local repo so I can do "yum install ...", otherwise can do "yum localinstall foo.1.2.3.noarch.rpm ...". It may be necessary to temporarily set "gpgcheck=0" in /etc/yum.conf to avoid complaints about unsigned packages.<br />
<br />
For EL4 texi2html is available from the tetex package, currently tetex-2.0.2-22.EL4.7<br />
<br />
Note that the the metapackage http://www.openembedded.org/dl/packages/rpm/openembedded-essential-1.1-1.noarch.rpm<br />
should work except that it depends on texi2html.<br />
<br />
Instead as root do<br />
<br />
<pre><nowiki><br />
yum install bison coreutils cvs docbook-utils gawk git-core python quilt rpmlib \<br />
sed subversion tetex texinfo unzip wget<br />
</nowiki></pre><br />
<br />
I ended up with the following set of relevant packages after several iterations of building/updating to get "bitbake nano" to complete successfully:<br />
<br />
* python-2.3.4-14.3<br />
* m4-1.4.1-16<br />
* make-3.80-6.EL4<br />
* wget-1.10.2-0.40E<br />
* curl-7.12.1-8.rhel4<br />
* ftp-0.17-22<br />
* cvs-1.11.17-9.RHEL4<br />
* subversion-1.4.3-0.1.el4.rf<br />
* tar-1.14-12.RHEL4<br />
* bzip2-1.0.2-13.EL4.3<br />
* gzip-1.3.3-16.rhel4<br />
* unzip-5.51-7<br />
* python-psyco-1.5-3.el4.kb<br />
* perl-5.8.5-36.RHEL4<br />
* texinfo-4.7-5.el4.2<br />
* tetex-2.0.2-22.EL4.7<br />
* diffstat-1.34-0_6.el4.at<br />
* openjade-1.3.2-16_9.el4.at<br />
* docbook-style-dsssl-1.78-4<br />
* docbook-style-xsl-1.65.1-2<br />
* docbook-dtds-1.0-25<br />
* docbook-utils-0.6.14-4<br />
* sed-4.1.2-5.EL4<br />
* bison-1.875c-2<br />
* bc-1.06-17.1<br />
* glibc-devel-2.3.4-2.25<br />
* gcc-3.4.6-3<br />
* binutils-2.15.92.0.2-21<br />
* pcre-4.5-3.2.RHEL4<br />
* pcre-devel-4.5-3.2.RHEL4<br />
* git-1.4.4.2-2.el4.kb<br />
* bitbake-1.6.2-1<br />
<br />
=== ALT Linux ===<br />
<br />
You can read more about ALT Linux here: http://www.altlinux.com/en/<br />
<br />
You can use synaptic or aptitude to install packages. Or use apt-get as shown below.<br />
<br />
<pre><nowiki><br />
apt-get install git-core python python-dev python-module-psyco python-modules-sqlite3 \<br />
patch m4 sed bison make wget bzip2 cvs gawk gcc-c++ subversion sharutils coreutils \<br />
docbook-utils openjade quilt libpcre-devel unzip glibc-devel glibc-devel-static \<br />
help2man texi2html perl-devel chrpath<br />
</nowiki></pre><br />
<br />
For building bitbake manuals you have to install 'xmlto' package:<br />
<br />
<pre><nowiki><br />
apt-get install xmlto<br />
</nowiki></pre><br />
<br />
NOTES:<br />
* This is tested on ALD 4.0/4.1/5.0.<br />
* gcc-c++ is virtual package and can be provided by gcc4.3-c++ (ALD 5.0) and gcc4.1-c++ (ALD 4.0/4.1). Just select higher version.<br />
<br />
=== Ark Linux 2008.1 ===<br />
[http://www.arklinux.org/ Ark Linux] is a modern distribution well suited for Openembedded development. Footprint only 2.1G.<br />
<br />
Required steps:<br />
<br />
1) install required packages<br />
<pre><nowiki><br />
apt-get install devel-core diffstat texi2html cvs subversion git texinfo psyco python-devel \<br />
python-encodings python-sqlite help2man bitbake<br />
</nowiki></pre><br />
<br />
2) upgrade<br />
<pre><nowiki><br />
apt-get update<br />
apt-get dist-upgrade <br />
<br />
The following packages will be REPLACED:<br />
texi2html (by texlive-texi2html)<br />
The following NEW packages will be installed:<br />
texlive-texi2html<br />
</nowiki></pre><br />
<br />
3) finally create your OE tree (see [[Getting started]] instructions). bitbake is already included, so you can skip that step.<br />
<br />
== other Linux distributions ==<br />
<br />
=== Gentoo instructions ===<br />
<br />
Note that Psyco, the Python JIT compiler, works on 32-bit x86 platforms only.<br />
<br />
<pre><nowiki><br />
emerge -n \<br />
psyco \<br />
patch \<br />
make \<br />
sed \<br />
dev-lang/python \<br />
m4 \<br />
bison \<br />
cvs \<br />
openjade \<br />
quilt \<br />
sgmltools-lite \<br />
docbook-xml-dtd \<br />
docbook-dsssl-stylesheets \<br />
xmlto \<br />
docbook-sgml-utils \<br />
libpcre \<br />
boost \<br />
subversion \<br />
texi2html \<br />
pysqlite \<br />
chrpath<br />
</nowiki></pre><br />
<br />
Then follow the instructions in [[Getting started]] for obtaining bitbake and start the build.<br />
<br />
=== Arch Linux (Duke) ===<br />
<br />
Most of the packages are available in the repositories.<br />
<br />
<pre><nowiki><br />
sudo pacman -S patch make sed python m4 bison cvs quilt sgmltools-lite docbook-xml \<br />
xmlto pcre boost jade git texinfo texi2html help2man subversion chrpath<br />
</nowiki></pre><br />
<br />
In Arch Linux the install command is in /bin/install. Since most of Linux distribution assume that install is located in /usr/bin/install, you have to create a symlink:<br />
<br />
<pre><nowiki><br />
sudo ln -s /bin/install /usr/bin/install<br />
</nowiki></pre><br />
<br />
You can build BitBake by using this PKGBUILD or install it from the AUR:<br />
<pre><nowiki><br />
pkgname=bitbake<br />
pkgver=1.8.4<br />
pkgrel=1<br />
pkgdesc="A simple tool for task execution derived from Gentoo's portage"<br />
url="http://developer.berlios.de/projects/bitbake/"<br />
arch=('i686')<br />
license=('GPL' 'custom')<br />
depends=('python')<br />
source=(http://download.berlios.de/bitbake/${pkgname}-${pkgver}.tar.gz)<br />
md5sums=('508d9a61c635d469be8facc95151158b')<br />
<br />
build() {<br />
cd ${startdir}/src/${pkgname}-${pkgver}<br />
python setup.py install --root=${startdir}/pkg<br />
<br />
# Install vim extensions<br />
install -D -m644 ${startdir}/src/${pkgname}-${pkgver}/contrib/vim/ftdetect/bitbake.vim \<br />
${startdir}/pkg/usr/share/vim/ftplugin/bitbake.vim<br />
install -D -m644 ${startdir}/src/${pkgname}-${pkgver}/contrib/vim/syntax/bitbake.vim \<br />
${startdir}/pkg/usr/share/vim/syntax/bitbake.vim<br />
<br />
# Handle MIT license<br />
install -D -m644 ${startdir}/src/${pkgname}-${pkgver}/doc/COPYING.MIT \<br />
${startdir}/pkg/usr/share/licenses/${pkgname}/COPYING.MIT<br />
}<br />
</nowiki></pre><br />
<br />
= Using OpenEmbedded on FreeBSD and other NON Linux Systems =<br />
<br />
tbd<br />
<br />
== FreeBSD ==<br />
<br />
* Python == /usr/ports/lang/python<br />
* GNU Patch == /usr/ports/devel/patch<br />
* GNU m4 == /usr/ports/devel/m4<br />
* GNU make == /usr/ports/devel/gmake<br />
* wget == /usr/ports/ftp/wget<br />
* Psyco JIT Compiler == /usr/ports/devel/py-psyco<br />
* GNU sed == /usr/ports/textproc/gsed<br />
* Bison == /usr/ports/devel/bison<br />
* GCC 2.95.3 == /usr/ports/lang/gcc295<br />
* bc == already in FreeBSD<br />
* PyQt == /usr/ports/x11-toolkits/py-qt<br />
* glibc headers (ignore)<br />
* subversion == /usr/ports/devel/subversion<br />
* git == /usr/ports/devel/git<br />
* pcre == /usr/ports/devel/pcre<br />
<br />
Ports has also has these: fileutils, jade, docbook, dsssl-docbook-modular, sgmltools<br />
<br />
== Using OpenEmbedded on Mac OS X ==<br />
<br />
By default OS X uses a filesystem that is '''not''' case sensitive. You need to ensure that at least your tmp directory is on a case sensitive filesystem or you may come across various packages that break, including the Linux kernel! These steps were carried out on a early 32 bit 10.5/Intel Mac - the install order matters for a couple of packages as does having them installed in a more normal location.<br />
<br />
# Register at [https://connect.apple.com ADC] and download and install Xcode<br />
# Compile and install [http://www.gnu.org/software/gettext/ GNU gettext]<br />
# Using CPAN install Locale::gettext<br />
# Compile and install [http://www.gnu.org/software/help2man/ help2man 1.29] - newer versions will not build without hacks<br />
# Compile and install [http://www.gnu.org/software/wget/ wget], [http://www.gnu.org/software/gawk/ gawk], [http://www.gnu.org/software/coreutils/ coreutils] and [http://git-scm.com/ git] - wget appears to not work if you install it in /usr/local so use --prefix=/usr also note OS X provides a different version of mktemp which functions differently, be careful not to overwrite this as OS X might need it<br />
# If you are on a 32 bit Mac you can of course install [http://psyco.sourceforge.net/ psyco]<br />
# Fixup your PATH variable for your build user so that /usr/local/bin (or where ever coreutils etc is installed) comes before the OS X version in /usr/bin<br />
# Install GNU sed 3.0.2, this will give you a version of sed that allows you to build sed 4.1.5 - you will need to overwrite the one provided by OS X with --prefix=/usr and ensure you are using 4.1.5 not 3.0.2 as 3.0.2 does not provide various options you need<br />
# Install getopt from [http://software.frodo.looijaard.name/getopt/download.php here] - modify WITHOUT_GETTEXT=0 to WITHOUT_GETTEXT=1 in the Makefile and add -DWITHOUT_GETTEXT=$(WITHOUT_GETTEXT) to the line beginning with CPPFLAGS=<br />
<br />
Now follow the Getting Started OpenEmbedded wiki guide. Unfortunately there are various issues building on OS X that will most likely prevent the toolchain from building.<br />
<br />
Unfinished - tbd<br />
<br />
= Using OpenEmbedded on Windows/Cygwin Systems =<br />
<br />
<br />
Building Openembedded on Windows is currently unsupported, but [http://oe.linuxtogo.org/wiki/BuildOnCygwin work is in progress] to support buidling of meta-toolchain.bb on Windows/Cygwin hosts.<br />
<br />
[[Category:User]]</div>Anthttp://www.openembedded.org/index.php?title=OEandYourDistro&diff=2351OEandYourDistro2010-06-22T08:52:39Z<p>Ant: /* Gentoo instructions */</p>
<hr />
<div>See [[Required software]] for the list of the software required by Openembedded.<br />
<br />
= Using OpenEmbedded on Linux systems =<br />
<br />
== deb-based distributions ==<br />
<br />
The easiest way is via [http://blog.leggewie.org/?p=39 apt-get'able Openembedded] which will pull the OE meta-data for you and keep it up-to-date. Plus, it makes sure all necessary software for cross-compilation is installed. Easy as 1-2-3.<br />
<br />
=== Debian ===<br />
<br />
==== Mandatory packages ====<br />
<br />
aptitude install sed wget cvs subversion git-core \<br />
coreutils unzip texi2html texinfo libsdl1.2-dev docbook-utils \<br />
gawk python-pysqlite2 diffstat help2man make gcc build-essential g++ \<br />
desktop-file-utils chrpath<br />
<br />
'''Git'''<br />
<br />
On debian you may have to run <br />
<br />
update-alternatives --config git (as root)<br />
<br />
and select /usr/bin/git-scm to provide git instead of /usr/bin/git.transition. This is not necessary in sid<br />
<br />
==== Supplementary packages ====<br />
<br />
<pre><nowiki><br />
apt-get install libxml2-utils xmlto python-psyco<br />
</nowiki></pre><br />
<br />
<br />
OPTIONAL: these packages and their dependencies need to be installed in order to build the bitbake documentation (warning: over 160MB of installed packages).<br />
<br />
<pre><nowiki><br />
apt-get install docbook<br />
</nowiki></pre><br />
This package is necessary to build some packages (in particular the esound documentation needs it).<br />
<br />
=== Ubuntu ===<br />
<br />
Ubuntu is based on Debian and instructions above for [[#deb-based distributions|Debian]] apply here as well. Make sure that you have the universe repositories in your apt configuration.<br />
<br />
* Check that /bin/sh (ls -l /bin/sh) is not symbolically linked to dash. "dash" is a POSIX compliant shell that is much smaller than "bash" -- however some broken shell scripts still make use of bash extensions while calling into /bin/sh. To work around this issue call "''sudo dpkg-reconfigure dash''" and select No when it asks you to install dash as /bin/sh.<br />
* You can also install Psyco Python JIT compiler to speed up BitBake. Psyco works on 32-bit x86 platforms only. "''aptitude install python-psyco''<br />
* there are known [[gcc issues in Intrepid and later]] when cross-compiling with OE<br />
* qemu-arm fails whilst building locales (Ubuntu 10.04 LTS and possibly other releases). This is due to a kernel setting which restricts memory mapping to low addresses. To work around this you can either:<br />
** a) Enter 'echo 128 > /proc/sys/vm/mmap_min_addr' prior to running bitbake.<br />
** b) Set permanent parameter 'sudo sysctl -w vm.mmap_min_addr=128'.<br />
<br />
== rpm-based distributions ==<br />
<br />
=== Mandriva Linux ===<br />
<br />
Follow the Debian instructions, only using `urpmi` instead of `apt-get install`. You can find it in the contrib section of any Mandriva mirror or seach for it using the Mandriva Club rpm database [http://rpms.mandrakeclub.com]. You may need libpythonV.V-devel for bitbake setup instead of python-dev.<br />
If you're building a 2.6 kernel, you also need the glibc-static-devel package.<br />
<br />
with Mandriva Linux 2006, you need to issue the following command:<br />
<br />
<pre><nowiki><br />
urpmi python python-devel python-psyco patch m4 sed bison make wget bzip2 \<br />
cvs gawk glibc-devel gcc-c++ subversion sharutils coreutils docbook-utils openjade \<br />
quilt pcre-devel unzip glibc-static-devel<br />
</nowiki></pre><br />
<br />
=== openSUSE ===<br />
<br />
==== openSUSE 11.1 ====<br />
<br />
Use zypper to install the required packages:<br />
<br />
zypper in subversion git python help2man diffstat wget gcc gcc-c++ libstdc++ glibc-devel texinfo automake patch<br />
<br />
These packages may be useful as well: bison and [http://software.opensuse.org/search?baseproject=ALL&p=1&q=gcc33 gcc33] (for faster build using ASSUME_PROVIDED), gtk2-devel (in case your build will fail on missing gdk-pixbuf-csource), bc (for collie kernel), ncurses-devel (if you want to call kernel menuconfig). python psyco package is optional.<br />
<br />
=== Fedora ===<br />
<br />
==== Fedora Core 2/3 ====<br />
Much of the following is probably already installed, but you can check with the following commands. You may want to use the yum.conf located at http://www.fedorafaq.org/. Note, this has not been tested yes as I am in the process of setting up a development environment.<br />
<br />
<pre><nowiki> yum install python patch m4 sed make docbook* openjade glibc-devel xmlto</nowiki></pre><br />
<br />
* psyco: Download psyco-1.4-src.tar.gz (or later) and extract it. Go to the psycho top-level directory and run: `python setup.py install`.<br />
<br />
* patch: FC3 default version should be enough. Optionally, install SuSe 9.1 package of it.<br />
<br />
==== Fedora Core 4 ====<br />
Almost all required packages for Openembedded are available in Fedora Core 4 and the Fedora Extras for Core 4. You can download them from <http://download.fedora.redhat.com/pub/fedora/linux/core> and <http://download.fedora.redhat.com/pub/fedora/linux/extras>. Check <http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4> for updates on the Core 4 packages.<br />
<br />
Apart from the usual (native) development packages like gcc and binutils, you should check that you have the following RPM's installed: <br />
<br />
* bison<br />
* docbook* packages<br />
* libpcre<br />
* m4<br />
* make<br />
* openjade<br />
* patch<br />
* PyQt<br />
* python<br />
* python-psyco<br />
* sed<br />
* xmlto<br />
* quilt (not required as OE builds it by itself, but install it if you want to use gquilt)<br />
<br />
Use apt, synaptic, up2date or yum to automagically retrieve these packages or download and install them manually (lots of work).<br />
<br />
==== Fedora Core 5/6 ====<br />
<br />
Commands I used to install OE pre-requisites on FC5/6<br />
<br />
This long command will ensure all pre-requisites are installed (patch is 2.5.4, not 2.5.9, but appears to work).<br />
<br />
<pre><nowiki><br />
su -c "yum install python m4 make wget curl ftp cvs subversion tar bzip2 gzip \<br />
unzip python-psyco perl texinfo texi2html diffstat openjade docbook-style-dsssl \<br />
docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel gcc binutils \<br />
pcre pcre-devel git quilt groff linuxdoc-tools patch gcc gcc-c++ python-sqlite2 help2man"<br />
</nowiki></pre><br />
<br />
or download the metapackage http://www.openembedded.org/dl/packages/rpm/openembedded-essential-1.1-1.noarch.rpm (may be out of date).<br />
<br />
then do<br />
<br />
<pre><nowiki><br />
su -c "yum localinstall openembedded-essential-1.1-1.noarch.rpm"<br />
</nowiki></pre><br />
<br />
<br />
There are also rpm and src.rpm packages of bitbake 1.6.2 at http://www.openembedded.org/dl/packages/rpm/ pending a later version in Extras, currently 1.6.0.<br />
<br />
Update - Current FC6 version is patch-2.5.4-29.2.2 as of this writing and works-for-me (see revision history for build instructions if current patch does not work for you).<br />
<br />
I didn't install SGML tools. Please add if you know how<br />
<br />
Update - Since about 2002 sgml-tools has apparently been replaced by linuxdoc-tools for FC.<br />
<br />
==== Fedora 7 ====<br />
<br />
This long command will ensure all pre-requisites are installed (patch is 2.5.4, not 2.5.9, but appears to work).<br />
<br />
<pre><nowiki><br />
su -c "yum install python m4 make wget curl ftp cvs subversion tar bzip2 gzip unzip \<br />
python-psyco perl texinfo texi2html diffstat openjade docbook-style-dsssl \<br />
docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel gcc binutils \<br />
pcre pcre-devel git quilt groff linuxdoc-tools patch linuxdoc-tools gcc gcc-c++ \<br />
help2man perl-ExtUtils-MakeMaker"<br />
</nowiki></pre><br />
<br />
(if this is hard to copy from this HTML page, go to edit mode and copy from editor)<br />
<br />
==== Fedora 11 ====<br />
<br />
Fedora 11, compared to previous versions, brings the need to install "glibc-static" as well:<br />
<br />
<pre><nowiki><br />
su -c "yum install python m4 make wget curl ftp cvs subversion tar bzip2 gzip unzip \<br />
python-psyco perl texinfo texi2html diffstat openjade docbook-style-dsssl \<br />
docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel glibc-static \<br />
gcc binutils pcre pcre-devel git quilt groff linuxdoc-tools patch linuxdoc-tools \<br />
gcc-c++ help2man perl-ExtUtils-MakeMaker"<br />
</nowiki></pre><br />
<br />
(if this is hard to copy from this HTML page, go to edit mode and copy from editor)<br />
<br />
=== CentOS 4.4 / Red Hat Enterprise Linux 4 ===<br />
May also work for true EL4 or Scientific Linux - another RHEL rebuild<br />
<br />
Even with several optional and 3rd party yum repos enabled (centosplus, kbsingh, RPMforge/Dag, Dries) a number of required packages are too old or unavailable for CentOS4. [It should be possible to use other package managers including apt/synaptic, up2date, and smart to get the required packages. The following assumes yum.]<br />
<br />
I re-built the following SRPMS (with "$ rpmbuild --rebuild ..."):<br />
* boost-1.33.1-10.fc5.src.rpm<br />
* bitbake-1.6.2-1.src.rpm (Latest tarball from http://developer.berlios.de/projects/bitbake/ + modified spec from bitbake-1.6.0-2.fc7.src.rpm)<br />
<br />
Might also want to try the rpm and src.rpm packages of bitbake 1.6.2 at http://www.openembedded.org/dl/packages/rpm/ - I have not.<br />
<br />
Extra requirements for the builds included rpmdevtools, xmlto, and lynx.<br />
<br />
I put packages in a local repo so I can do "yum install ...", otherwise can do "yum localinstall foo.1.2.3.noarch.rpm ...". It may be necessary to temporarily set "gpgcheck=0" in /etc/yum.conf to avoid complaints about unsigned packages.<br />
<br />
For EL4 texi2html is available from the tetex package, currently tetex-2.0.2-22.EL4.7<br />
<br />
Note that the the metapackage http://www.openembedded.org/dl/packages/rpm/openembedded-essential-1.1-1.noarch.rpm<br />
should work except that it depends on texi2html.<br />
<br />
Instead as root do<br />
<br />
<pre><nowiki><br />
yum install bison coreutils cvs docbook-utils gawk git-core python quilt rpmlib \<br />
sed subversion tetex texinfo unzip wget<br />
</nowiki></pre><br />
<br />
I ended up with the following set of relevant packages after several iterations of building/updating to get "bitbake nano" to complete successfully:<br />
<br />
* python-2.3.4-14.3<br />
* m4-1.4.1-16<br />
* make-3.80-6.EL4<br />
* wget-1.10.2-0.40E<br />
* curl-7.12.1-8.rhel4<br />
* ftp-0.17-22<br />
* cvs-1.11.17-9.RHEL4<br />
* subversion-1.4.3-0.1.el4.rf<br />
* tar-1.14-12.RHEL4<br />
* bzip2-1.0.2-13.EL4.3<br />
* gzip-1.3.3-16.rhel4<br />
* unzip-5.51-7<br />
* python-psyco-1.5-3.el4.kb<br />
* perl-5.8.5-36.RHEL4<br />
* texinfo-4.7-5.el4.2<br />
* tetex-2.0.2-22.EL4.7<br />
* diffstat-1.34-0_6.el4.at<br />
* openjade-1.3.2-16_9.el4.at<br />
* docbook-style-dsssl-1.78-4<br />
* docbook-style-xsl-1.65.1-2<br />
* docbook-dtds-1.0-25<br />
* docbook-utils-0.6.14-4<br />
* sed-4.1.2-5.EL4<br />
* bison-1.875c-2<br />
* bc-1.06-17.1<br />
* glibc-devel-2.3.4-2.25<br />
* gcc-3.4.6-3<br />
* binutils-2.15.92.0.2-21<br />
* pcre-4.5-3.2.RHEL4<br />
* pcre-devel-4.5-3.2.RHEL4<br />
* git-1.4.4.2-2.el4.kb<br />
* bitbake-1.6.2-1<br />
<br />
=== ALT Linux ===<br />
<br />
You can read more about ALT Linux here: http://www.altlinux.com/en/<br />
<br />
You can use synaptic or aptitude to install packages. Or use apt-get as shown below.<br />
<br />
<pre><nowiki><br />
apt-get install git-core python python-dev python-module-psyco python-modules-sqlite3 \<br />
patch m4 sed bison make wget bzip2 cvs gawk gcc-c++ subversion sharutils coreutils \<br />
docbook-utils openjade quilt libpcre-devel unzip glibc-devel glibc-devel-static \<br />
help2man texi2html perl-devel chrpath<br />
</nowiki></pre><br />
<br />
For building bitbake manuals you have to install 'xmlto' package:<br />
<br />
<pre><nowiki><br />
apt-get install xmlto<br />
</nowiki></pre><br />
<br />
NOTES:<br />
* This is tested on ALD 4.0/4.1/5.0.<br />
* gcc-c++ is virtual package and can be provided by gcc4.3-c++ (ALD 5.0) and gcc4.1-c++ (ALD 4.0/4.1). Just select higher version.<br />
<br />
=== Ark Linux 2008.1 ===<br />
[http://www.arklinux.org/ Ark Linux] is a modern distribution well suited for Openembedded development. Footprint only 2.1G.<br />
<br />
Required steps:<br />
<br />
1) install required packages<br />
<pre><nowiki><br />
apt-get install devel-core diffstat texi2html cvs subversion git texinfo psyco python-devel \<br />
python-encodings python-sqlite help2man bitbake<br />
</nowiki></pre><br />
<br />
2) upgrade<br />
<pre><nowiki><br />
apt-get update<br />
apt-get dist-upgrade <br />
<br />
The following packages will be REPLACED:<br />
texi2html (by texlive-texi2html)<br />
The following NEW packages will be installed:<br />
texlive-texi2html<br />
</nowiki></pre><br />
<br />
3) finally create your OE tree (see [[Getting started]] instructions). bitbake is already included, so you can skip that step.<br />
<br />
== other Linux distributions ==<br />
<br />
=== Gentoo instructions ===<br />
<br />
Note that Psyco, the Python JIT compiler, works on 32-bit x86 platforms only.<br />
<br />
<pre><nowiki><br />
emerge -n \<br />
psyco \<br />
patch \<br />
make \<br />
sed \<br />
dev-lang/python \<br />
m4 \<br />
bison \<br />
cvs \<br />
openjade \<br />
quilt \<br />
sgmltools-lite \<br />
docbook-xml-dtd \<br />
docbook-dsssl-stylesheets \<br />
xmlto \<br />
docbook-sgml-utils \<br />
libpcre \<br />
boost \<br />
subversion \<br />
texi2html \<br />
pysqlite \<br />
chrpath<br />
</nowiki></pre><br />
<br />
Then follow the instructions in [[Getting started]] for obtaining bitbake and start the build.<br />
<br />
=== Arch Linux (Duke) ===<br />
<br />
Most of the packages are available in the repositories.<br />
<br />
<pre><nowiki><br />
sudo pacman -S patch make sed python m4 bison cvs quilt sgmltools-lite docbook-xml \<br />
xmlto pcre boost jade git texinfo texi2html help2man subversion chrpath<br />
</nowiki></pre><br />
<br />
In Arch Linux the install command is in /bin/install. Since most of Linux distribution assume that install is located in /usr/bin/install, you have to create a symlink:<br />
<br />
<pre><nowiki><br />
sudo ln -s /bin/install /usr/bin/install<br />
</nowiki></pre><br />
<br />
You can build BitBake by using this PKGBUILD or install it from the AUR:<br />
<pre><nowiki><br />
pkgname=bitbake<br />
pkgver=1.8.4<br />
pkgrel=1<br />
pkgdesc="A simple tool for task execution derived from Gentoo's portage"<br />
url="http://developer.berlios.de/projects/bitbake/"<br />
arch=('i686')<br />
license=('GPL' 'custom')<br />
depends=('python')<br />
source=(http://download.berlios.de/bitbake/${pkgname}-${pkgver}.tar.gz)<br />
md5sums=('508d9a61c635d469be8facc95151158b')<br />
<br />
build() {<br />
cd ${startdir}/src/${pkgname}-${pkgver}<br />
python setup.py install --root=${startdir}/pkg<br />
<br />
# Install vim extensions<br />
install -D -m644 ${startdir}/src/${pkgname}-${pkgver}/contrib/vim/ftdetect/bitbake.vim \<br />
${startdir}/pkg/usr/share/vim/ftplugin/bitbake.vim<br />
install -D -m644 ${startdir}/src/${pkgname}-${pkgver}/contrib/vim/syntax/bitbake.vim \<br />
${startdir}/pkg/usr/share/vim/syntax/bitbake.vim<br />
<br />
# Handle MIT license<br />
install -D -m644 ${startdir}/src/${pkgname}-${pkgver}/doc/COPYING.MIT \<br />
${startdir}/pkg/usr/share/licenses/${pkgname}/COPYING.MIT<br />
}<br />
</nowiki></pre><br />
<br />
= Using OpenEmbedded on FreeBSD and other NON Linux Systems =<br />
<br />
tbd<br />
<br />
== FreeBSD ==<br />
<br />
* Python == /usr/ports/lang/python<br />
* GNU Patch == /usr/ports/devel/patch<br />
* GNU m4 == /usr/ports/devel/m4<br />
* GNU make == /usr/ports/devel/gmake<br />
* wget == /usr/ports/ftp/wget<br />
* Psyco JIT Compiler == /usr/ports/devel/py-psyco<br />
* GNU sed == /usr/ports/textproc/gsed<br />
* Bison == /usr/ports/devel/bison<br />
* GCC 2.95.3 == /usr/ports/lang/gcc295<br />
* bc == already in FreeBSD<br />
* PyQt == /usr/ports/x11-toolkits/py-qt<br />
* glibc headers (ignore)<br />
* subversion == /usr/ports/devel/subversion<br />
* git == /usr/ports/devel/git<br />
* pcre == /usr/ports/devel/pcre<br />
<br />
Ports has also has these: fileutils, jade, docbook, dsssl-docbook-modular, sgmltools<br />
<br />
== Using OpenEmbedded on Mac OS X ==<br />
<br />
By default OS X uses a filesystem that is '''not''' case sensitive. You need to ensure that at least your tmp directory is on a case sensitive filesystem or you may come across various packages that break, including the Linux kernel! These steps were carried out on a early 32 bit 10.5/Intel Mac - the install order matters for a couple of packages as does having them installed in a more normal location.<br />
<br />
# Register at [https://connect.apple.com ADC] and download and install Xcode<br />
# Compile and install [http://www.gnu.org/software/gettext/ GNU gettext]<br />
# Using CPAN install Locale::gettext<br />
# Compile and install [http://www.gnu.org/software/help2man/ help2man 1.29] - newer versions will not build without hacks<br />
# Compile and install [http://www.gnu.org/software/wget/ wget], [http://www.gnu.org/software/gawk/ gawk], [http://www.gnu.org/software/coreutils/ coreutils] and [http://git-scm.com/ git] - wget appears to not work if you install it in /usr/local so use --prefix=/usr also note OS X provides a different version of mktemp which functions differently, be careful not to overwrite this as OS X might need it<br />
# If you are on a 32 bit Mac you can of course install [http://psyco.sourceforge.net/ psyco]<br />
# Fixup your PATH variable for your build user so that /usr/local/bin (or where ever coreutils etc is installed) comes before the OS X version in /usr/bin<br />
# Install GNU sed 3.0.2, this will give you a version of sed that allows you to build sed 4.1.5 - you will need to overwrite the one provided by OS X with --prefix=/usr and ensure you are using 4.1.5 not 3.0.2 as 3.0.2 does not provide various options you need<br />
# Install getopt from [http://software.frodo.looijaard.name/getopt/download.php here] - modify WITHOUT_GETTEXT=0 to WITHOUT_GETTEXT=1 in the Makefile and add -DWITHOUT_GETTEXT=$(WITHOUT_GETTEXT) to the line beginning with CPPFLAGS=<br />
<br />
Now follow the Getting Started OpenEmbedded wiki guide. Unfortunately there are various issues building on OS X that will most likely prevent the toolchain from building.<br />
<br />
Unfinished - tbd<br />
<br />
= Using OpenEmbedded on Windows/Cygwin Systems =<br />
<br />
<br />
Building Openembedded on Windows is currently unsupported, but [http://oe.linuxtogo.org/wiki/BuildOnCygwin work is in progress] to support buidling of meta-toolchain.bb on Windows/Cygwin hosts.<br />
<br />
[[Category:User]]</div>Anthttp://www.openembedded.org/index.php?title=OEandYourDistro&diff=2350OEandYourDistro2010-06-22T08:49:42Z<p>Ant: /* Mandatory packages */</p>
<hr />
<div>See [[Required software]] for the list of the software required by Openembedded.<br />
<br />
= Using OpenEmbedded on Linux systems =<br />
<br />
== deb-based distributions ==<br />
<br />
The easiest way is via [http://blog.leggewie.org/?p=39 apt-get'able Openembedded] which will pull the OE meta-data for you and keep it up-to-date. Plus, it makes sure all necessary software for cross-compilation is installed. Easy as 1-2-3.<br />
<br />
=== Debian ===<br />
<br />
==== Mandatory packages ====<br />
<br />
aptitude install sed wget cvs subversion git-core \<br />
coreutils unzip texi2html texinfo libsdl1.2-dev docbook-utils \<br />
gawk python-pysqlite2 diffstat help2man make gcc build-essential g++ \<br />
desktop-file-utils chrpath<br />
<br />
'''Git'''<br />
<br />
On debian you may have to run <br />
<br />
update-alternatives --config git (as root)<br />
<br />
and select /usr/bin/git-scm to provide git instead of /usr/bin/git.transition. This is not necessary in sid<br />
<br />
==== Supplementary packages ====<br />
<br />
<pre><nowiki><br />
apt-get install libxml2-utils xmlto python-psyco<br />
</nowiki></pre><br />
<br />
<br />
OPTIONAL: these packages and their dependencies need to be installed in order to build the bitbake documentation (warning: over 160MB of installed packages).<br />
<br />
<pre><nowiki><br />
apt-get install docbook<br />
</nowiki></pre><br />
This package is necessary to build some packages (in particular the esound documentation needs it).<br />
<br />
=== Ubuntu ===<br />
<br />
Ubuntu is based on Debian and instructions above for [[#deb-based distributions|Debian]] apply here as well. Make sure that you have the universe repositories in your apt configuration.<br />
<br />
* Check that /bin/sh (ls -l /bin/sh) is not symbolically linked to dash. "dash" is a POSIX compliant shell that is much smaller than "bash" -- however some broken shell scripts still make use of bash extensions while calling into /bin/sh. To work around this issue call "''sudo dpkg-reconfigure dash''" and select No when it asks you to install dash as /bin/sh.<br />
* You can also install Psyco Python JIT compiler to speed up BitBake. Psyco works on 32-bit x86 platforms only. "''aptitude install python-psyco''<br />
* there are known [[gcc issues in Intrepid and later]] when cross-compiling with OE<br />
* qemu-arm fails whilst building locales (Ubuntu 10.04 LTS and possibly other releases). This is due to a kernel setting which restricts memory mapping to low addresses. To work around this you can either:<br />
** a) Enter 'echo 128 > /proc/sys/vm/mmap_min_addr' prior to running bitbake.<br />
** b) Set permanent parameter 'sudo sysctl -w vm.mmap_min_addr=128'.<br />
<br />
== rpm-based distributions ==<br />
<br />
=== Mandriva Linux ===<br />
<br />
Follow the Debian instructions, only using `urpmi` instead of `apt-get install`. You can find it in the contrib section of any Mandriva mirror or seach for it using the Mandriva Club rpm database [http://rpms.mandrakeclub.com]. You may need libpythonV.V-devel for bitbake setup instead of python-dev.<br />
If you're building a 2.6 kernel, you also need the glibc-static-devel package.<br />
<br />
with Mandriva Linux 2006, you need to issue the following command:<br />
<br />
<pre><nowiki><br />
urpmi python python-devel python-psyco patch m4 sed bison make wget bzip2 \<br />
cvs gawk glibc-devel gcc-c++ subversion sharutils coreutils docbook-utils openjade \<br />
quilt pcre-devel unzip glibc-static-devel<br />
</nowiki></pre><br />
<br />
=== openSUSE ===<br />
<br />
==== openSUSE 11.1 ====<br />
<br />
Use zypper to install the required packages:<br />
<br />
zypper in subversion git python help2man diffstat wget gcc gcc-c++ libstdc++ glibc-devel texinfo automake patch<br />
<br />
These packages may be useful as well: bison and [http://software.opensuse.org/search?baseproject=ALL&p=1&q=gcc33 gcc33] (for faster build using ASSUME_PROVIDED), gtk2-devel (in case your build will fail on missing gdk-pixbuf-csource), bc (for collie kernel), ncurses-devel (if you want to call kernel menuconfig). python psyco package is optional.<br />
<br />
=== Fedora ===<br />
<br />
==== Fedora Core 2/3 ====<br />
Much of the following is probably already installed, but you can check with the following commands. You may want to use the yum.conf located at http://www.fedorafaq.org/. Note, this has not been tested yes as I am in the process of setting up a development environment.<br />
<br />
<pre><nowiki> yum install python patch m4 sed make docbook* openjade glibc-devel xmlto</nowiki></pre><br />
<br />
* psyco: Download psyco-1.4-src.tar.gz (or later) and extract it. Go to the psycho top-level directory and run: `python setup.py install`.<br />
<br />
* patch: FC3 default version should be enough. Optionally, install SuSe 9.1 package of it.<br />
<br />
==== Fedora Core 4 ====<br />
Almost all required packages for Openembedded are available in Fedora Core 4 and the Fedora Extras for Core 4. You can download them from <http://download.fedora.redhat.com/pub/fedora/linux/core> and <http://download.fedora.redhat.com/pub/fedora/linux/extras>. Check <http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4> for updates on the Core 4 packages.<br />
<br />
Apart from the usual (native) development packages like gcc and binutils, you should check that you have the following RPM's installed: <br />
<br />
* bison<br />
* docbook* packages<br />
* libpcre<br />
* m4<br />
* make<br />
* openjade<br />
* patch<br />
* PyQt<br />
* python<br />
* python-psyco<br />
* sed<br />
* xmlto<br />
* quilt (not required as OE builds it by itself, but install it if you want to use gquilt)<br />
<br />
Use apt, synaptic, up2date or yum to automagically retrieve these packages or download and install them manually (lots of work).<br />
<br />
==== Fedora Core 5/6 ====<br />
<br />
Commands I used to install OE pre-requisites on FC5/6<br />
<br />
This long command will ensure all pre-requisites are installed (patch is 2.5.4, not 2.5.9, but appears to work).<br />
<br />
<pre><nowiki><br />
su -c "yum install python m4 make wget curl ftp cvs subversion tar bzip2 gzip \<br />
unzip python-psyco perl texinfo texi2html diffstat openjade docbook-style-dsssl \<br />
docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel gcc binutils \<br />
pcre pcre-devel git quilt groff linuxdoc-tools patch gcc gcc-c++ python-sqlite2 help2man"<br />
</nowiki></pre><br />
<br />
or download the metapackage http://www.openembedded.org/dl/packages/rpm/openembedded-essential-1.1-1.noarch.rpm (may be out of date).<br />
<br />
then do<br />
<br />
<pre><nowiki><br />
su -c "yum localinstall openembedded-essential-1.1-1.noarch.rpm"<br />
</nowiki></pre><br />
<br />
<br />
There are also rpm and src.rpm packages of bitbake 1.6.2 at http://www.openembedded.org/dl/packages/rpm/ pending a later version in Extras, currently 1.6.0.<br />
<br />
Update - Current FC6 version is patch-2.5.4-29.2.2 as of this writing and works-for-me (see revision history for build instructions if current patch does not work for you).<br />
<br />
I didn't install SGML tools. Please add if you know how<br />
<br />
Update - Since about 2002 sgml-tools has apparently been replaced by linuxdoc-tools for FC.<br />
<br />
==== Fedora 7 ====<br />
<br />
This long command will ensure all pre-requisites are installed (patch is 2.5.4, not 2.5.9, but appears to work).<br />
<br />
<pre><nowiki><br />
su -c "yum install python m4 make wget curl ftp cvs subversion tar bzip2 gzip unzip \<br />
python-psyco perl texinfo texi2html diffstat openjade docbook-style-dsssl \<br />
docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel gcc binutils \<br />
pcre pcre-devel git quilt groff linuxdoc-tools patch linuxdoc-tools gcc gcc-c++ \<br />
help2man perl-ExtUtils-MakeMaker"<br />
</nowiki></pre><br />
<br />
(if this is hard to copy from this HTML page, go to edit mode and copy from editor)<br />
<br />
==== Fedora 11 ====<br />
<br />
Fedora 11, compared to previous versions, brings the need to install "glibc-static" as well:<br />
<br />
<pre><nowiki><br />
su -c "yum install python m4 make wget curl ftp cvs subversion tar bzip2 gzip unzip \<br />
python-psyco perl texinfo texi2html diffstat openjade docbook-style-dsssl \<br />
docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel glibc-static \<br />
gcc binutils pcre pcre-devel git quilt groff linuxdoc-tools patch linuxdoc-tools \<br />
gcc-c++ help2man perl-ExtUtils-MakeMaker"<br />
</nowiki></pre><br />
<br />
(if this is hard to copy from this HTML page, go to edit mode and copy from editor)<br />
<br />
=== CentOS 4.4 / Red Hat Enterprise Linux 4 ===<br />
May also work for true EL4 or Scientific Linux - another RHEL rebuild<br />
<br />
Even with several optional and 3rd party yum repos enabled (centosplus, kbsingh, RPMforge/Dag, Dries) a number of required packages are too old or unavailable for CentOS4. [It should be possible to use other package managers including apt/synaptic, up2date, and smart to get the required packages. The following assumes yum.]<br />
<br />
I re-built the following SRPMS (with "$ rpmbuild --rebuild ..."):<br />
* boost-1.33.1-10.fc5.src.rpm<br />
* bitbake-1.6.2-1.src.rpm (Latest tarball from http://developer.berlios.de/projects/bitbake/ + modified spec from bitbake-1.6.0-2.fc7.src.rpm)<br />
<br />
Might also want to try the rpm and src.rpm packages of bitbake 1.6.2 at http://www.openembedded.org/dl/packages/rpm/ - I have not.<br />
<br />
Extra requirements for the builds included rpmdevtools, xmlto, and lynx.<br />
<br />
I put packages in a local repo so I can do "yum install ...", otherwise can do "yum localinstall foo.1.2.3.noarch.rpm ...". It may be necessary to temporarily set "gpgcheck=0" in /etc/yum.conf to avoid complaints about unsigned packages.<br />
<br />
For EL4 texi2html is available from the tetex package, currently tetex-2.0.2-22.EL4.7<br />
<br />
Note that the the metapackage http://www.openembedded.org/dl/packages/rpm/openembedded-essential-1.1-1.noarch.rpm<br />
should work except that it depends on texi2html.<br />
<br />
Instead as root do<br />
<br />
<pre><nowiki><br />
yum install bison coreutils cvs docbook-utils gawk git-core python quilt rpmlib \<br />
sed subversion tetex texinfo unzip wget<br />
</nowiki></pre><br />
<br />
I ended up with the following set of relevant packages after several iterations of building/updating to get "bitbake nano" to complete successfully:<br />
<br />
* python-2.3.4-14.3<br />
* m4-1.4.1-16<br />
* make-3.80-6.EL4<br />
* wget-1.10.2-0.40E<br />
* curl-7.12.1-8.rhel4<br />
* ftp-0.17-22<br />
* cvs-1.11.17-9.RHEL4<br />
* subversion-1.4.3-0.1.el4.rf<br />
* tar-1.14-12.RHEL4<br />
* bzip2-1.0.2-13.EL4.3<br />
* gzip-1.3.3-16.rhel4<br />
* unzip-5.51-7<br />
* python-psyco-1.5-3.el4.kb<br />
* perl-5.8.5-36.RHEL4<br />
* texinfo-4.7-5.el4.2<br />
* tetex-2.0.2-22.EL4.7<br />
* diffstat-1.34-0_6.el4.at<br />
* openjade-1.3.2-16_9.el4.at<br />
* docbook-style-dsssl-1.78-4<br />
* docbook-style-xsl-1.65.1-2<br />
* docbook-dtds-1.0-25<br />
* docbook-utils-0.6.14-4<br />
* sed-4.1.2-5.EL4<br />
* bison-1.875c-2<br />
* bc-1.06-17.1<br />
* glibc-devel-2.3.4-2.25<br />
* gcc-3.4.6-3<br />
* binutils-2.15.92.0.2-21<br />
* pcre-4.5-3.2.RHEL4<br />
* pcre-devel-4.5-3.2.RHEL4<br />
* git-1.4.4.2-2.el4.kb<br />
* bitbake-1.6.2-1<br />
<br />
=== ALT Linux ===<br />
<br />
You can read more about ALT Linux here: http://www.altlinux.com/en/<br />
<br />
You can use synaptic or aptitude to install packages. Or use apt-get as shown below.<br />
<br />
<pre><nowiki><br />
apt-get install git-core python python-dev python-module-psyco python-modules-sqlite3 \<br />
patch m4 sed bison make wget bzip2 cvs gawk gcc-c++ subversion sharutils coreutils \<br />
docbook-utils openjade quilt libpcre-devel unzip glibc-devel glibc-devel-static \<br />
help2man texi2html perl-devel chrpath<br />
</nowiki></pre><br />
<br />
For building bitbake manuals you have to install 'xmlto' package:<br />
<br />
<pre><nowiki><br />
apt-get install xmlto<br />
</nowiki></pre><br />
<br />
NOTES:<br />
* This is tested on ALD 4.0/4.1/5.0.<br />
* gcc-c++ is virtual package and can be provided by gcc4.3-c++ (ALD 5.0) and gcc4.1-c++ (ALD 4.0/4.1). Just select higher version.<br />
<br />
=== Ark Linux 2008.1 ===<br />
[http://www.arklinux.org/ Ark Linux] is a modern distribution well suited for Openembedded development. Footprint only 2.1G.<br />
<br />
Required steps:<br />
<br />
1) install required packages<br />
<pre><nowiki><br />
apt-get install devel-core diffstat texi2html cvs subversion git texinfo psyco python-devel \<br />
python-encodings python-sqlite help2man bitbake<br />
</nowiki></pre><br />
<br />
2) upgrade<br />
<pre><nowiki><br />
apt-get update<br />
apt-get dist-upgrade <br />
<br />
The following packages will be REPLACED:<br />
texi2html (by texlive-texi2html)<br />
The following NEW packages will be installed:<br />
texlive-texi2html<br />
</nowiki></pre><br />
<br />
3) finally create your OE tree (see [[Getting started]] instructions). bitbake is already included, so you can skip that step.<br />
<br />
== other Linux distributions ==<br />
<br />
=== Gentoo instructions ===<br />
<pre><nowiki><br />
emerge -n \<br />
psyco \<br />
patch \<br />
make \<br />
sed \<br />
dev-lang/python \<br />
m4 \<br />
bison \<br />
cvs \<br />
openjade \<br />
quilt \<br />
sgmltools-lite \<br />
docbook-xml-dtd \<br />
docbook-dsssl-stylesheets \<br />
xmlto \<br />
docbook-sgml-utils \<br />
libpcre \<br />
boost \<br />
subversion \<br />
texi2html \<br />
pysqlite \<br />
chrpath<br />
</nowiki></pre><br />
<br />
Then follow the instructions in [[Getting started]] for obtaining bitbake and start the build.<br />
<br />
=== Arch Linux (Duke) ===<br />
<br />
Most of the packages are available in the repositories.<br />
<br />
<pre><nowiki><br />
sudo pacman -S patch make sed python m4 bison cvs quilt sgmltools-lite docbook-xml \<br />
xmlto pcre boost jade git texinfo texi2html help2man subversion chrpath<br />
</nowiki></pre><br />
<br />
In Arch Linux the install command is in /bin/install. Since most of Linux distribution assume that install is located in /usr/bin/install, you have to create a symlink:<br />
<br />
<pre><nowiki><br />
sudo ln -s /bin/install /usr/bin/install<br />
</nowiki></pre><br />
<br />
You can build BitBake by using this PKGBUILD or install it from the AUR:<br />
<pre><nowiki><br />
pkgname=bitbake<br />
pkgver=1.8.4<br />
pkgrel=1<br />
pkgdesc="A simple tool for task execution derived from Gentoo's portage"<br />
url="http://developer.berlios.de/projects/bitbake/"<br />
arch=('i686')<br />
license=('GPL' 'custom')<br />
depends=('python')<br />
source=(http://download.berlios.de/bitbake/${pkgname}-${pkgver}.tar.gz)<br />
md5sums=('508d9a61c635d469be8facc95151158b')<br />
<br />
build() {<br />
cd ${startdir}/src/${pkgname}-${pkgver}<br />
python setup.py install --root=${startdir}/pkg<br />
<br />
# Install vim extensions<br />
install -D -m644 ${startdir}/src/${pkgname}-${pkgver}/contrib/vim/ftdetect/bitbake.vim \<br />
${startdir}/pkg/usr/share/vim/ftplugin/bitbake.vim<br />
install -D -m644 ${startdir}/src/${pkgname}-${pkgver}/contrib/vim/syntax/bitbake.vim \<br />
${startdir}/pkg/usr/share/vim/syntax/bitbake.vim<br />
<br />
# Handle MIT license<br />
install -D -m644 ${startdir}/src/${pkgname}-${pkgver}/doc/COPYING.MIT \<br />
${startdir}/pkg/usr/share/licenses/${pkgname}/COPYING.MIT<br />
}<br />
</nowiki></pre><br />
<br />
= Using OpenEmbedded on FreeBSD and other NON Linux Systems =<br />
<br />
tbd<br />
<br />
== FreeBSD ==<br />
<br />
* Python == /usr/ports/lang/python<br />
* GNU Patch == /usr/ports/devel/patch<br />
* GNU m4 == /usr/ports/devel/m4<br />
* GNU make == /usr/ports/devel/gmake<br />
* wget == /usr/ports/ftp/wget<br />
* Psyco JIT Compiler == /usr/ports/devel/py-psyco<br />
* GNU sed == /usr/ports/textproc/gsed<br />
* Bison == /usr/ports/devel/bison<br />
* GCC 2.95.3 == /usr/ports/lang/gcc295<br />
* bc == already in FreeBSD<br />
* PyQt == /usr/ports/x11-toolkits/py-qt<br />
* glibc headers (ignore)<br />
* subversion == /usr/ports/devel/subversion<br />
* git == /usr/ports/devel/git<br />
* pcre == /usr/ports/devel/pcre<br />
<br />
Ports has also has these: fileutils, jade, docbook, dsssl-docbook-modular, sgmltools<br />
<br />
== Using OpenEmbedded on Mac OS X ==<br />
<br />
By default OS X uses a filesystem that is '''not''' case sensitive. You need to ensure that at least your tmp directory is on a case sensitive filesystem or you may come across various packages that break, including the Linux kernel! These steps were carried out on a early 32 bit 10.5/Intel Mac - the install order matters for a couple of packages as does having them installed in a more normal location.<br />
<br />
# Register at [https://connect.apple.com ADC] and download and install Xcode<br />
# Compile and install [http://www.gnu.org/software/gettext/ GNU gettext]<br />
# Using CPAN install Locale::gettext<br />
# Compile and install [http://www.gnu.org/software/help2man/ help2man 1.29] - newer versions will not build without hacks<br />
# Compile and install [http://www.gnu.org/software/wget/ wget], [http://www.gnu.org/software/gawk/ gawk], [http://www.gnu.org/software/coreutils/ coreutils] and [http://git-scm.com/ git] - wget appears to not work if you install it in /usr/local so use --prefix=/usr also note OS X provides a different version of mktemp which functions differently, be careful not to overwrite this as OS X might need it<br />
# If you are on a 32 bit Mac you can of course install [http://psyco.sourceforge.net/ psyco]<br />
# Fixup your PATH variable for your build user so that /usr/local/bin (or where ever coreutils etc is installed) comes before the OS X version in /usr/bin<br />
# Install GNU sed 3.0.2, this will give you a version of sed that allows you to build sed 4.1.5 - you will need to overwrite the one provided by OS X with --prefix=/usr and ensure you are using 4.1.5 not 3.0.2 as 3.0.2 does not provide various options you need<br />
# Install getopt from [http://software.frodo.looijaard.name/getopt/download.php here] - modify WITHOUT_GETTEXT=0 to WITHOUT_GETTEXT=1 in the Makefile and add -DWITHOUT_GETTEXT=$(WITHOUT_GETTEXT) to the line beginning with CPPFLAGS=<br />
<br />
Now follow the Getting Started OpenEmbedded wiki guide. Unfortunately there are various issues building on OS X that will most likely prevent the toolchain from building.<br />
<br />
Unfinished - tbd<br />
<br />
= Using OpenEmbedded on Windows/Cygwin Systems =<br />
<br />
<br />
Building Openembedded on Windows is currently unsupported, but [http://oe.linuxtogo.org/wiki/BuildOnCygwin work is in progress] to support buidling of meta-toolchain.bb on Windows/Cygwin hosts.<br />
<br />
[[Category:User]]</div>Anthttp://www.openembedded.org/index.php?title=OEandYourDistro&diff=2323OEandYourDistro2010-06-03T18:04:36Z<p>Ant: /* Gentoo instructions */</p>
<hr />
<div>See [[Required software]] for the list of the software required by Openembedded.<br />
<br />
= Using OpenEmbedded on Linux systems =<br />
<br />
== deb-based distributions ==<br />
<br />
The easiest way is via [http://blog.leggewie.org/?p=39 apt-get'able Openembedded] which will pull the OE meta-data for you and keep it up-to-date. Plus, it makes sure all necessary software for cross-compilation is installed. Easy as 1-2-3.<br />
<br />
=== Debian ===<br />
<br />
==== Mandatory packages ====<br />
<br />
aptitude install sed wget cvs subversion git-core \<br />
coreutils unzip texi2html texinfo libsdl1.2-dev docbook-utils \<br />
gawk python-pysqlite2 diffstat help2man make gcc build-essential g++ \<br />
desktop-file-utils<br />
<br />
'''Git'''<br />
<br />
On debian you may have to run <br />
<br />
update-alternatives --config git (as root)<br />
<br />
and select /usr/bin/git-scm to provide git instead of /usr/bin/git.transition. This is not necessary in sid<br />
<br />
==== Supplementary packages ====<br />
<br />
<pre><nowiki><br />
apt-get install libxml2-utils xmlto python-psyco<br />
</nowiki></pre><br />
<br />
<br />
OPTIONAL: these packages and their dependencies need to be installed in order to build the bitbake documentation (warning: over 160MB of installed packages).<br />
<br />
<pre><nowiki><br />
apt-get install docbook<br />
</nowiki></pre><br />
This package is necessary to build some packages (in particular the esound documentation needs it).<br />
<br />
=== Ubuntu ===<br />
<br />
Ubuntu is based on Debian and instructions above for [[#deb-based distributions|Debian]] apply here as well. Make sure that you have the universe repositories in your apt configuration.<br />
<br />
* Check that /bin/sh (ls -l /bin/sh) is not symbolically linked to dash. "dash" is a POSIX compliant shell that is much smaller than "bash" -- however some broken shell scripts still make use of bash extensions while calling into /bin/sh. To work around this issue call "''sudo dpkg-reconfigure dash''" and select No when it asks you to install dash as /bin/sh.<br />
* You can also install Psyco Python JIT compiler to speed up BitBake. Psyco works on 32-bit x86 platforms only. "''aptitude install python-psyco''<br />
* there are known [[gcc issues in Intrepid and later]] when cross-compiling with OE<br />
* qemu-arm fails whilst building locales (Ubuntu 10.04 LTS and possibly other releases). This is due to a kernel setting which restricts memory mapping to low addresses. To work around this you can either:<br />
** a) Enter 'echo 128 > /proc/sys/vm/mmap_min_addr' prior to running bitbake.<br />
** b) Set permanent parameter 'sudo sysctl -w vm.mmap_min_addr=128'.<br />
<br />
== rpm-based distributions ==<br />
<br />
=== Mandriva Linux ===<br />
<br />
Follow the Debian instructions, only using `urpmi` instead of `apt-get install`. You can find it in the contrib section of any Mandriva mirror or seach for it using the Mandriva Club rpm database [http://rpms.mandrakeclub.com]. You may need libpythonV.V-devel for bitbake setup instead of python-dev.<br />
If you're building a 2.6 kernel, you also need the glibc-static-devel package.<br />
<br />
with Mandriva Linux 2006, you need to issue the following command:<br />
<br />
<pre><nowiki><br />
urpmi python python-devel python-psyco patch m4 sed bison make wget bzip2 \<br />
cvs gawk glibc-devel gcc-c++ subversion sharutils coreutils docbook-utils openjade \<br />
quilt pcre-devel unzip glibc-static-devel<br />
</nowiki></pre><br />
<br />
=== openSUSE ===<br />
<br />
==== openSUSE 11.1 ====<br />
<br />
Use zypper to install the required packages:<br />
<br />
zypper in subversion git python help2man diffstat wget gcc gcc-c++ libstdc++ glibc-devel texinfo automake patch<br />
<br />
These packages may be useful as well: bison and [http://software.opensuse.org/search?baseproject=ALL&p=1&q=gcc33 gcc33] (for faster build using ASSUME_PROVIDED), gtk2-devel (in case your build will fail on missing gdk-pixbuf-csource), bc (for collie kernel), ncurses-devel (if you want to call kernel menuconfig). python psyco package is optional.<br />
<br />
=== Fedora ===<br />
<br />
==== Fedora Core 2/3 ====<br />
Much of the following is probably already installed, but you can check with the following commands. You may want to use the yum.conf located at http://www.fedorafaq.org/. Note, this has not been tested yes as I am in the process of setting up a development environment.<br />
<br />
<pre><nowiki> yum install python patch m4 sed make docbook* openjade glibc-devel xmlto</nowiki></pre><br />
<br />
* psyco: Download psyco-1.4-src.tar.gz (or later) and extract it. Go to the psycho top-level directory and run: `python setup.py install`.<br />
<br />
* patch: FC3 default version should be enough. Optionally, install SuSe 9.1 package of it.<br />
<br />
==== Fedora Core 4 ====<br />
Almost all required packages for Openembedded are available in Fedora Core 4 and the Fedora Extras for Core 4. You can download them from <http://download.fedora.redhat.com/pub/fedora/linux/core> and <http://download.fedora.redhat.com/pub/fedora/linux/extras>. Check <http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4> for updates on the Core 4 packages.<br />
<br />
Apart from the usual (native) development packages like gcc and binutils, you should check that you have the following RPM's installed: <br />
<br />
* bison<br />
* docbook* packages<br />
* libpcre<br />
* m4<br />
* make<br />
* openjade<br />
* patch<br />
* PyQt<br />
* python<br />
* python-psyco<br />
* sed<br />
* xmlto<br />
* quilt (not required as OE builds it by itself, but install it if you want to use gquilt)<br />
<br />
Use apt, synaptic, up2date or yum to automagically retrieve these packages or download and install them manually (lots of work).<br />
<br />
==== Fedora Core 5/6 ====<br />
<br />
Commands I used to install OE pre-requisites on FC5/6<br />
<br />
This long command will ensure all pre-requisites are installed (patch is 2.5.4, not 2.5.9, but appears to work).<br />
<br />
<pre><nowiki><br />
su -c "yum install python m4 make wget curl ftp cvs subversion tar bzip2 gzip \<br />
unzip python-psyco perl texinfo texi2html diffstat openjade docbook-style-dsssl \<br />
docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel gcc binutils \<br />
pcre pcre-devel git quilt groff linuxdoc-tools patch gcc gcc-c++ python-sqlite2 help2man"<br />
</nowiki></pre><br />
<br />
or download the metapackage http://www.openembedded.org/dl/packages/rpm/openembedded-essential-1.1-1.noarch.rpm (may be out of date).<br />
<br />
then do<br />
<br />
<pre><nowiki><br />
su -c "yum localinstall openembedded-essential-1.1-1.noarch.rpm"<br />
</nowiki></pre><br />
<br />
<br />
There are also rpm and src.rpm packages of bitbake 1.6.2 at http://www.openembedded.org/dl/packages/rpm/ pending a later version in Extras, currently 1.6.0.<br />
<br />
Update - Current FC6 version is patch-2.5.4-29.2.2 as of this writing and works-for-me (see revision history for build instructions if current patch does not work for you).<br />
<br />
I didn't install SGML tools. Please add if you know how<br />
<br />
Update - Since about 2002 sgml-tools has apparently been replaced by linuxdoc-tools for FC.<br />
<br />
==== Fedora 7 ====<br />
<br />
This long command will ensure all pre-requisites are installed (patch is 2.5.4, not 2.5.9, but appears to work).<br />
<br />
<pre><nowiki><br />
su -c "yum install python m4 make wget curl ftp cvs subversion tar bzip2 gzip unzip \<br />
python-psyco perl texinfo texi2html diffstat openjade docbook-style-dsssl \<br />
docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel gcc binutils \<br />
pcre pcre-devel git quilt groff linuxdoc-tools patch linuxdoc-tools gcc gcc-c++ \<br />
help2man perl-ExtUtils-MakeMaker"<br />
</nowiki></pre><br />
<br />
(if this is hard to copy from this HTML page, go to edit mode and copy from editor)<br />
<br />
==== Fedora 11 ====<br />
<br />
Fedora 11, compared to previous versions, brings the need to install "glibc-static" as well:<br />
<br />
<pre><nowiki><br />
su -c "yum install python m4 make wget curl ftp cvs subversion tar bzip2 gzip unzip \<br />
python-psyco perl texinfo texi2html diffstat openjade docbook-style-dsssl \<br />
docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel glibc-static \<br />
gcc binutils pcre pcre-devel git quilt groff linuxdoc-tools patch linuxdoc-tools \<br />
gcc-c++ help2man perl-ExtUtils-MakeMaker"<br />
</nowiki></pre><br />
<br />
(if this is hard to copy from this HTML page, go to edit mode and copy from editor)<br />
<br />
=== CentOS 4.4 / Red Hat Enterprise Linux 4 ===<br />
May also work for true EL4 or Scientific Linux - another RHEL rebuild<br />
<br />
Even with several optional and 3rd party yum repos enabled (centosplus, kbsingh, RPMforge/Dag, Dries) a number of required packages are too old or unavailable for CentOS4. [It should be possible to use other package managers including apt/synaptic, up2date, and smart to get the required packages. The following assumes yum.]<br />
<br />
I re-built the following SRPMS (with "$ rpmbuild --rebuild ..."):<br />
* boost-1.33.1-10.fc5.src.rpm<br />
* bitbake-1.6.2-1.src.rpm (Latest tarball from http://developer.berlios.de/projects/bitbake/ + modified spec from bitbake-1.6.0-2.fc7.src.rpm)<br />
<br />
Might also want to try the rpm and src.rpm packages of bitbake 1.6.2 at http://www.openembedded.org/dl/packages/rpm/ - I have not.<br />
<br />
Extra requirements for the builds included rpmdevtools, xmlto, and lynx.<br />
<br />
I put packages in a local repo so I can do "yum install ...", otherwise can do "yum localinstall foo.1.2.3.noarch.rpm ...". It may be necessary to temporarily set "gpgcheck=0" in /etc/yum.conf to avoid complaints about unsigned packages.<br />
<br />
For EL4 texi2html is available from the tetex package, currently tetex-2.0.2-22.EL4.7<br />
<br />
Note that the the metapackage http://www.openembedded.org/dl/packages/rpm/openembedded-essential-1.1-1.noarch.rpm<br />
should work except that it depends on texi2html.<br />
<br />
Instead as root do<br />
<br />
<pre><nowiki><br />
yum install bison coreutils cvs docbook-utils gawk git-core python quilt rpmlib \<br />
sed subversion tetex texinfo unzip wget<br />
</nowiki></pre><br />
<br />
I ended up with the following set of relevant packages after several iterations of building/updating to get "bitbake nano" to complete successfully:<br />
<br />
* python-2.3.4-14.3<br />
* m4-1.4.1-16<br />
* make-3.80-6.EL4<br />
* wget-1.10.2-0.40E<br />
* curl-7.12.1-8.rhel4<br />
* ftp-0.17-22<br />
* cvs-1.11.17-9.RHEL4<br />
* subversion-1.4.3-0.1.el4.rf<br />
* tar-1.14-12.RHEL4<br />
* bzip2-1.0.2-13.EL4.3<br />
* gzip-1.3.3-16.rhel4<br />
* unzip-5.51-7<br />
* python-psyco-1.5-3.el4.kb<br />
* perl-5.8.5-36.RHEL4<br />
* texinfo-4.7-5.el4.2<br />
* tetex-2.0.2-22.EL4.7<br />
* diffstat-1.34-0_6.el4.at<br />
* openjade-1.3.2-16_9.el4.at<br />
* docbook-style-dsssl-1.78-4<br />
* docbook-style-xsl-1.65.1-2<br />
* docbook-dtds-1.0-25<br />
* docbook-utils-0.6.14-4<br />
* sed-4.1.2-5.EL4<br />
* bison-1.875c-2<br />
* bc-1.06-17.1<br />
* glibc-devel-2.3.4-2.25<br />
* gcc-3.4.6-3<br />
* binutils-2.15.92.0.2-21<br />
* pcre-4.5-3.2.RHEL4<br />
* pcre-devel-4.5-3.2.RHEL4<br />
* git-1.4.4.2-2.el4.kb<br />
* bitbake-1.6.2-1<br />
<br />
=== ALT Linux ===<br />
<br />
You can read more about ALT Linux here: http://www.altlinux.com/en/<br />
<br />
You can use synaptic or aptitude to install packages. Or use apt-get as shown below.<br />
<br />
<pre><nowiki><br />
apt-get install git-core python python-dev python-module-psyco python-modules-sqlite3 \<br />
patch m4 sed bison make wget bzip2 cvs gawk gcc-c++ subversion sharutils coreutils \<br />
docbook-utils openjade quilt libpcre-devel unzip glibc-devel glibc-devel-static \<br />
help2man texi2html perl-devel<br />
</nowiki></pre><br />
<br />
For building bitbake manuals you have to install 'xmlto' package:<br />
<br />
<pre><nowiki><br />
apt-get install xmlto<br />
</nowiki></pre><br />
<br />
NOTES:<br />
* This is tested on ALD 4.0/4.1/5.0.<br />
* gcc-c++ is virtual package and can be provided by gcc4.3-c++ (ALD 5.0) and gcc4.1-c++ (ALD 4.0/4.1). Just select higher version.<br />
<br />
=== Ark Linux 2008.1 ===<br />
[http://www.arklinux.org/ Ark Linux] is a modern distribution well suited for Openembedded development. Footprint only 2.1G.<br />
<br />
Required steps:<br />
<br />
1) install required packages<br />
<pre><nowiki><br />
apt-get install devel-core diffstat texi2html cvs subversion git texinfo psyco python-devel \<br />
python-encodings python-sqlite help2man bitbake<br />
</nowiki></pre><br />
<br />
2) upgrade<br />
<pre><nowiki><br />
apt-get update<br />
apt-get dist-upgrade <br />
<br />
The following packages will be REPLACED:<br />
texi2html (by texlive-texi2html)<br />
The following NEW packages will be installed:<br />
texlive-texi2html<br />
</nowiki></pre><br />
<br />
3) finally create your OE tree (see [[Getting started]] instructions). bitbake is already included, so you can skip that step.<br />
<br />
== other Linux distributions ==<br />
<br />
=== Gentoo instructions ===<br />
<pre><nowiki><br />
emerge -n \<br />
psyco \<br />
patch \<br />
make \<br />
sed \<br />
dev-lang/python \<br />
m4 \<br />
bison \<br />
cvs \<br />
openjade \<br />
quilt \<br />
sgmltools-lite \<br />
docbook-xml-dtd \<br />
docbook-dsssl-stylesheets \<br />
xmlto \<br />
docbook-sgml-utils \<br />
libpcre \<br />
boost \<br />
subversion \<br />
texi2html \<br />
pysqlite \<br />
chrpath<br />
</nowiki></pre><br />
<br />
Then follow the instructions in [[Getting started]] for obtaining bitbake and start the build.<br />
<br />
=== Arch Linux (Duke) ===<br />
<br />
Most of the packages are available in the repositories.<br />
<br />
<pre><nowiki><br />
sudo pacman -S patch make sed python m4 bison cvs quilt sgmltools-lite docbook-xml \<br />
xmlto pcre boost jade git texinfo texi2html help2man subversion chrpath<br />
</nowiki></pre><br />
<br />
In Arch Linux the install command is in /bin/install. Since most of Linux distribution assume that install is located in /usr/bin/install, you have to create a symlink:<br />
<br />
<pre><nowiki><br />
sudo ln -s /bin/install /usr/bin/install<br />
</nowiki></pre><br />
<br />
You can build BitBake by using this PKGBUILD or install it from the AUR:<br />
<pre><nowiki><br />
pkgname=bitbake<br />
pkgver=1.8.4<br />
pkgrel=1<br />
pkgdesc="A simple tool for task execution derived from Gentoo's portage"<br />
url="http://developer.berlios.de/projects/bitbake/"<br />
arch=('i686')<br />
license=('GPL' 'custom')<br />
depends=('python')<br />
source=(http://download.berlios.de/bitbake/${pkgname}-${pkgver}.tar.gz)<br />
md5sums=('508d9a61c635d469be8facc95151158b')<br />
<br />
build() {<br />
cd ${startdir}/src/${pkgname}-${pkgver}<br />
python setup.py install --root=${startdir}/pkg<br />
<br />
# Install vim extensions<br />
install -D -m644 ${startdir}/src/${pkgname}-${pkgver}/contrib/vim/ftdetect/bitbake.vim \<br />
${startdir}/pkg/usr/share/vim/ftplugin/bitbake.vim<br />
install -D -m644 ${startdir}/src/${pkgname}-${pkgver}/contrib/vim/syntax/bitbake.vim \<br />
${startdir}/pkg/usr/share/vim/syntax/bitbake.vim<br />
<br />
# Handle MIT license<br />
install -D -m644 ${startdir}/src/${pkgname}-${pkgver}/doc/COPYING.MIT \<br />
${startdir}/pkg/usr/share/licenses/${pkgname}/COPYING.MIT<br />
}<br />
</nowiki></pre><br />
<br />
= Using OpenEmbedded on FreeBSD and other NON Linux Systems =<br />
<br />
tbd<br />
<br />
== FreeBSD ==<br />
<br />
* Python == /usr/ports/lang/python<br />
* GNU Patch == /usr/ports/devel/patch<br />
* GNU m4 == /usr/ports/devel/m4<br />
* GNU make == /usr/ports/devel/gmake<br />
* wget == /usr/ports/ftp/wget<br />
* Psyco JIT Compiler == /usr/ports/devel/py-psyco<br />
* GNU sed == /usr/ports/textproc/gsed<br />
* Bison == /usr/ports/devel/bison<br />
* GCC 2.95.3 == /usr/ports/lang/gcc295<br />
* bc == already in FreeBSD<br />
* PyQt == /usr/ports/x11-toolkits/py-qt<br />
* glibc headers (ignore)<br />
* subversion == /usr/ports/devel/subversion<br />
* git == /usr/ports/devel/git<br />
* pcre == /usr/ports/devel/pcre<br />
<br />
Ports has also has these: fileutils, jade, docbook, dsssl-docbook-modular, sgmltools<br />
<br />
== Using OpenEmbedded on Mac OS X ==<br />
<br />
By default OS X uses a filesystem that is '''not''' case sensitive. You need to ensure that at least your tmp directory is on a case sensitive filesystem or you may come across various packages that break, including the Linux kernel! These steps were carried out on a early 32 bit 10.5/Intel Mac - the install order matters for a couple of packages as does having them installed in a more normal location.<br />
<br />
# Register at [https://connect.apple.com ADC] and download and install Xcode<br />
# Compile and install [http://www.gnu.org/software/gettext/ GNU gettext]<br />
# Using CPAN install Locale::gettext<br />
# Compile and install [http://www.gnu.org/software/help2man/ help2man 1.29] - newer versions will not build without hacks<br />
# Compile and install [http://www.gnu.org/software/wget/ wget], [http://www.gnu.org/software/gawk/ gawk], [http://www.gnu.org/software/coreutils/ coreutils] and [http://git-scm.com/ git] - wget appears to not work if you install it in /usr/local so use --prefix=/usr also note OS X provides a different version of mktemp which functions differently, be careful not to overwrite this as OS X might need it<br />
# If you are on a 32 bit Mac you can of course install [http://psyco.sourceforge.net/ psyco]<br />
# Fixup your PATH variable for your build user so that /usr/local/bin (or where ever coreutils etc is installed) comes before the OS X version in /usr/bin<br />
# Install GNU sed 3.0.2, this will give you a version of sed that allows you to build sed 4.1.5 - you will need to overwrite the one provided by OS X with --prefix=/usr and ensure you are using 4.1.5 not 3.0.2 as 3.0.2 does not provide various options you need<br />
# Install getopt from [http://software.frodo.looijaard.name/getopt/download.php here] - modify WITHOUT_GETTEXT=0 to WITHOUT_GETTEXT=1 in the Makefile and add -DWITHOUT_GETTEXT=$(WITHOUT_GETTEXT) to the line beginning with CPPFLAGS=<br />
<br />
Now follow the Getting Started OpenEmbedded wiki guide. Unfortunately there are various issues building on OS X that will most likely prevent the toolchain from building.<br />
<br />
Unfinished - tbd<br />
<br />
= Using OpenEmbedded on Windows/Cygwin Systems =<br />
<br />
<br />
Building Openembedded on Windows is currently unsupported, but [http://oe.linuxtogo.org/wiki/BuildOnCygwin work is in progress] to support buidling of meta-toolchain.bb on Windows/Cygwin hosts.<br />
<br />
[[Category:User]]</div>Anthttp://www.openembedded.org/index.php?title=Zaurus&diff=1697Zaurus2009-09-19T00:15:33Z<p>Ant: </p>
<hr />
<div>'''Technical information from [http://linuxtogo.org/gowiki/LinuxDevices LinuxDevices]'''<br />
<br />
* [http://linuxtogo.org/gowiki/ZaurusCollie collie]<br />
* [http://linuxtogo.org/gowiki/ZaurusPoodle poodle]<br />
* [http://linuxtogo.org/gowiki/ZaurusC7x0 c7x0] (corgi, shepherd, husky, boxer)<br />
* [http://linuxtogo.org/gowiki/ZaurusAkita akita]<br />
* [http://linuxtogo.org/gowiki/ZaurusSpitz spitz] (borzoi, terrier)<br />
* [http://linuxtogo.org/gowiki/ZaurusTosa tosa]<br />
<br />
'''kexecboot'''<br />
<br />
For the Zaurus a special kernel+initramfs has been developed.<br />
This special-purpose kernel is small enough to be flashed on NAND and features a framebuffer graphical menu for the selection of boot media containing the kernel to be kexec'ed.<br />
<br />
Multi-partition cards and lots of filesystems are supported.<br />
The kernels to be launched are searched for in /boot of each available partition.<br />
There is a also a configuration file (/boot/boot.cfg) which allows selection of other kernels, custom kernel command lines, and specifies the label and the icon for each instance.<br />
<br />
'''How to install:'''<br />
<br />
Just unpack zaurus-installer-YOURMACHINE.tar.gz on a free (FAT or EXT2/3 formatted) partition: the package contains the kexecboot-kernel and the updater.sh utility. Then proceed as usual for flashing (switch off, pull battery out, insert battery again, before inserting AC plug press OK+Power On. In the Japanese Menu select 4 and finally 3 for SD card or 4 for CF).<br />
[http://downloads.conics.net/pda/zaurus-sl-c700/service-menus/maint-menu.jpg Screenshot]<br />
<br />
For the SL-5500 (collie) and optionally for other Zaurus too, flashing is possible just using the routines of the original firmware: <br />
reset the unit, Press C and D button during restart.<br />
See: [http://linuxtogo.org/gowiki/CollieInstall Flashing-collie]<br />
<br />
'''NOTE:'''<br />
<br />
If you want a rootfs in nand, this must be in the .jffs2 format. Just rename your-image-rootfs.jffs2 to initrd.bin and copy it on the card whith updater.sh. The image will be flashed on mtd2.<br />
<br />
[[Category:Machine]]</div>Anthttp://www.openembedded.org/index.php?title=Zaurus&diff=1692Zaurus2009-09-18T14:05:42Z<p>Ant: </p>
<hr />
<div>'''Technical information from [http://linuxtogo.org/gowiki/LinuxDevices LinuxDevices]'''<br />
<br />
* [http://linuxtogo.org/gowiki/ZaurusCollie collie]<br />
* [http://linuxtogo.org/gowiki/ZaurusPoodle poodle]<br />
* [http://linuxtogo.org/gowiki/ZaurusC7x0 c7x0] (corgi, shepherd, husky, boxer)<br />
* [http://linuxtogo.org/gowiki/ZaurusAkita akita]<br />
* [http://linuxtogo.org/gowiki/ZaurusSpitz spitz] (borzoi, terrier)<br />
* [http://linuxtogo.org/gowiki/ZaurusTosa tosa]<br />
<br />
'''zaurus-installer'''<br />
<br />
For the Zaurus a special kernel+initramfs has been developed.<br />
This special-purpose kernel is small enough to be flashed on NAND and features a framebuffer graphical menu for the selection of boot media containing the kernel to be kexec'ed.<br />
<br />
Multi-partition cards and lots of filesystems are supported.<br />
The kernels to be launched are searched for in /boot of each available partition.<br />
There is a also a configuration file (/boot/boot.cfg) which allows selection of other kernels, custom kernel command lines, and specifies the label and the icon for each instance.<br />
<br />
'''How to install:'''<br />
<br />
Just unpack zaurus-installer-YOURMACHINE.tar.gz on a free (FAT or EXT2/3 formatted) partition: the package contains the kexecboot-kernel and the updater.sh utility. Then proceed as usual for flashing (switch off, pull battery out, insert battery again, before inserting AC plug press OK+Power On. In the Japanese Menu select 4 and finally 3 for SD card or 4 for CF).<br />
[http://downloads.conics.net/pda/zaurus-sl-c700/service-menus/maint-menu.jpg Screenshot]<br />
<br />
For the SL-5500 (collie) and optionally for other Zaurus too, flashing is possible just using the routines of the original firmware: <br />
reset the unit, Press C and D button during restart.<br />
See: [http://linuxtogo.org/gowiki/CollieInstall Flashing-collie]<br />
<br />
'''NOTE'''<br />
If you want a rootfs in nand, this must be in the .jffs2 format. Just rename your-image-rootfs.jffs2 to initrd.bin and copy it on the card whith updater.sh. The image will be flashed on mtd2.<br />
<br />
[[Category:Machine]]</div>Anthttp://www.openembedded.org/index.php?title=Zaurus&diff=1607Zaurus2009-08-26T13:18:14Z<p>Ant: </p>
<hr />
<div>'''Technical information from [http://linuxtogo.org/gowiki/LinuxDevices LinuxDevices]'''<br />
<br />
* [http://linuxtogo.org/gowiki/ZaurusCollie collie]<br />
* [http://linuxtogo.org/gowiki/ZaurusPoodle poodle]<br />
* [http://linuxtogo.org/gowiki/ZaurusC7x0 c7x0] (corgi, shepherd, husky, boxer)<br />
* [http://linuxtogo.org/gowiki/ZaurusAkita akita]<br />
* [http://linuxtogo.org/gowiki/ZaurusSpitz spitz] (borzoi, terrier)<br />
* [http://linuxtogo.org/gowiki/ZaurusTosa tosa]<br />
<br />
'''zaurus-installer'''<br />
<br />
For the Zaurus a special kernel+initramfs has been developed.<br />
This special-purpose kernel is small enough to be flashed on NAND and features a framebuffer graphical menu for the selection of boot media containing the kernel to be kexec'ed.<br />
<br />
Multi-partition cards and lots of filesystems are supported.<br />
The kernels to be launched are searched for in /boot of each available partition.<br />
There is a also a configuration file (/boot/boot.cfg) which allows selection of other kernels, custom kernel command lines, and specifies the label and the icon for each instance.<br />
<br />
'''How to install:'''<br />
<br />
Just unpack zaurus-installer-YOURMACHINE.tar.gz on a free (FAT or EXT2/3 formatted) partition: the package contains the kexecboot-kernel and the updater.sh utility. Then proceed as usual for flashing (switch off, pull battery out, insert battery again, before inserting AC plug press OK+Power On. In the Japanese Menu select 4 and finally 3 for SD card or 4 for CF).<br />
[http://downloads.conics.net/pda/zaurus-sl-c700/service-menus/maint-menu.jpg Screenshot]<br />
<br />
For the SL-5500 (collie) and optionally for other Zaurus too, flashing is possible just using the routines of the original firmware: <br />
reset the unit, Press C and D button during restart.<br />
See: [http://linuxtogo.org/gowiki/CollieInstall Flashing-collie]<br />
<br />
[[Category:Machine]]</div>Anthttp://www.openembedded.org/index.php?title=Zaurus&diff=1606Zaurus2009-08-26T13:11:25Z<p>Ant: /* How to install: */</p>
<hr />
<div>== Technical information from [http://linuxtogo.org/gowiki/LinuxDevices LinuxDevices] ==<br />
<br />
* [http://linuxtogo.org/gowiki/ZaurusCollie collie]<br />
* [http://linuxtogo.org/gowiki/ZaurusPoodle poodle]<br />
* [http://linuxtogo.org/gowiki/ZaurusC7x0 c7x0] (corgi, shepherd, husky, boxer)<br />
* [http://linuxtogo.org/gowiki/ZaurusAkita akita]<br />
* [http://linuxtogo.org/gowiki/ZaurusSpitz spitz] (borzoi, terrier)<br />
* [http://linuxtogo.org/gowiki/ZaurusTosa tosa]<br />
<br />
== zaurus-installer ==<br />
<br />
For the Zaurus a special kernel+initramfs has been developed.<br />
This special-purpose kernel is small enough to be flashed on NAND and features a framebuffer graphical menu for the selection of boot media containing the kernel to be kexec'ed.<br />
<br />
Multi-partition cards and lots of filesystems are supported.<br />
The kernels to be launched are searched for in /boot of each available partition.<br />
There is a also a configuration file (/boot/boot.cfg) which allows selection of other kernels, custom kernel command lines, and specifies the label and the icon for each instance.<br />
<br />
=== How to install: ===<br />
<br />
Just unpack zaurus-installer-YOURMACHINE.tar.gz on a free (FAT or EXT2/3 formatted) partition: the package contains the kexecboot-kernel and the updater.sh utility. Then proceed as usual for flashing (switch off, pull battery out, insert battery again, before inserting AC plug press OK+Power On. In the Japanese Menu select 4 and finally 3 for SD card or 4 for CF).<br />
[http://downloads.conics.net/pda/zaurus-sl-c700/service-menus/maint-menu.jpg Screenshot]<br />
<br />
For the SL-5500 (collie) and optionally for other Zaurus too, flashing is possible just using the routines of the original firmware: <br />
reset the unit, Press C and D button during restart.<br />
<br />
See: [http://linuxtogo.org/gowiki/CollieInstall Flashing-collie]<br />
<br />
[[Category:Machine]]</div>Anthttp://www.openembedded.org/index.php?title=Zaurus&diff=1605Zaurus2009-08-26T13:06:50Z<p>Ant: </p>
<hr />
<div>== Technical information from [http://linuxtogo.org/gowiki/LinuxDevices LinuxDevices] ==<br />
<br />
* [http://linuxtogo.org/gowiki/ZaurusCollie collie]<br />
* [http://linuxtogo.org/gowiki/ZaurusPoodle poodle]<br />
* [http://linuxtogo.org/gowiki/ZaurusC7x0 c7x0] (corgi, shepherd, husky, boxer)<br />
* [http://linuxtogo.org/gowiki/ZaurusAkita akita]<br />
* [http://linuxtogo.org/gowiki/ZaurusSpitz spitz] (borzoi, terrier)<br />
* [http://linuxtogo.org/gowiki/ZaurusTosa tosa]<br />
<br />
== zaurus-installer ==<br />
<br />
For the Zaurus a special kernel+initramfs has been developed.<br />
This special-purpose kernel is small enough to be flashed on NAND and features a framebuffer graphical menu for the selection of boot media containing the kernel to be kexec'ed.<br />
<br />
Multi-partition cards and lots of filesystems are supported.<br />
The kernels to be launched are searched for in /boot of each available partition.<br />
There is a also a configuration file (/boot/boot.cfg) which allows selection of other kernels, custom kernel command lines, and specifies the label and the icon for each instance.<br />
<br />
=== How to install: ===<br />
<br />
Just unpack zaurus-installer-YOURMACHINE.tar.gz on a free partition: the package contains the kexecboot-kernel and the updater.sh utility. Then proceed as usual for flashing (switch off, pull battery out, insert battery again, before inserting AC plug press OK+Power On. In the Japanese Menu select 4 and finally 3 for SD card or 4 for CF).<br />
[http://downloads.conics.net/pda/zaurus-sl-c700/service-menus/maint-menu.jpg Screenshot]<br />
<br />
For the SL-5500 (collie) and optionally for other Zaurus too, flashing is possible just using the routines of the original firmware: <br />
reset the unit, Press C and D button during restart.<br />
<br />
See: [http://linuxtogo.org/gowiki/CollieInstall Flashing-collie]<br />
<br />
[[Category:Machine]]</div>Anthttp://www.openembedded.org/index.php?title=Zaurus&diff=1531Zaurus2009-08-04T08:07:48Z<p>Ant: First edit</p>
<hr />
<div>some technical (!) information about the Zaurus machines<br />
<br />
http://linuxtogo.org/gowiki/LinuxDevices<br />
* collie<br />
* c7x0 (corgi, shepherd, husky, boxer)<br />
* akita<br />
* spitz (borzoi, terrier)<br />
* tosa<br />
<br />
= zaurus-installer =<br />
<br />
For the Zaurus a special kernel+initramfs has been developed.<br />
This special-purpose kernel is small enough to be flashed on NAND and features a frambefuffer graphical menu for the selection of the boot media containing the kernel which will be kexec'ed.<br />
<br />
Multipartitioned cards and lot of filesystems supported.<br />
The kernels to be launched are searched in /boot of each available partition.<br />
There is a also configuration file /boot/boot.cfg allowing to pass a custom cmdline and specify the label and the icon.<br />
<br />
How to install:<br />
<br />
Just unpack zaurus-installer-YOURMACHINE.tar.gz on a free partition: the package contains the kexecboot-kernel and the updater.sh utility. Then proceed as usual for flashing (switch off, pull battery out, insert battery again, before inserting AC plug press OK+Power On, in the Japanese Menu select 4 and finally 3 for SD card or 4 for CF).<br />
[[Image:http://downloads.conics.net/pda/zaurus-sl-c700/service-menus/maint-menu.jpg]]<br />
<br />
For SL-5500 (collie) and optionally for other Zaurus too, flashing is possible just using the routines of the original firmware: <br />
reset the unit, Press C, and D button during restart.<br />
<br />
See: http://linuxtogo.org/gowiki/CollieInstall<br />
<br />
[[Category:Machine]]</div>Anthttp://www.openembedded.org/index.php?title=OEandYourDistro&diff=1021OEandYourDistro2009-02-19T23:32:24Z<p>Ant: /* Gentoo instructions */</p>
<hr />
<div>See [[RequiredSoftware]] for the list of the software required by Openembedded.<br />
<br />
= Using OpenEmbedded on Linux systems =<br />
<br />
== deb-based distributions ==<br />
<br />
The easiest way is via [http://blog.leggewie.org/?p=39 apt-get'able Openembedded] which will pull the OE meta-data for you and keep it up-to-date. Plus, it makes sure all necessary software for cross-compilation is installed. Easy as 1-2-3.<br />
<br />
=== Debian ===<br />
<br />
==== Mandatory packages ====<br />
<br />
It is possible that not all software is available in a recent enough version for etch. Try backports if necessary.<br />
<br />
apt-get install ccache sed wget cvs subversion git-core \<br />
coreutils unzip texi2html texinfo libsdl1.2-dev docbook-utils \<br />
gawk python-pysqlite2 diffstat help2man<br />
<br />
'''Git'''<br />
<br />
On debian you may have to run <br />
<br />
update-alternatives --config git (as root)<br />
<br />
and select /usr/bin/git-scm to provide git instead of /usr/bin/git.transition. This is not necessary in sid<br />
<br />
==== Supplimentary packages ====<br />
<br />
<pre><nowiki><br />
apt-get install libxml2-utils xmlto python-psyco<br />
</nowiki></pre><br />
<br />
<br />
OPTIONAL: these packages and their dependencies need to be installed in order to build the bitbake documentation (warning: over 160MB of installed packages).<br />
<br />
<pre><nowiki><br />
apt-get install docbook<br />
</nowiki></pre><br />
This package is necessary to build some packages (in particular the esound documentation needs it).<br />
<br />
=== Ubuntu ===<br />
<br />
Ubuntu is based on Debian and instructions above for [[#deb-based distributions|Debian]] apply here as well. Make sure that you have the universe repositories in your apt configuration.<br />
<br />
* Check that /bin/sh (ls -l /bin/sh) is not symbolically linked to dash. "dash" is a POSIX compliant shell that is much smaller than "bash" -- however some broken shell scripts still make use of bash extensions while calling into /bin/sh. To work around this issue call "''sudo dpkg-reconfigure dash''" and select No when it asks you to install dash as /bin/sh.<br />
* You can also install Psyco Python JIT compiler to speed up BitBake. Psyco works on 32-bit x86 platforms only. "''aptitude install python-psyco''<br />
<br />
== rpm-based distributions ==<br />
<br />
=== Mandriva Linux ===<br />
<br />
Follow the Debian instructions, only using `urpmi` instead of `apt-get install`. Also, `ccache` is not an official Mandriva package. You can find it in the contrib section of any Mandriva mirror or seach for it using the Mandriva Club rpm database [http://rpms.mandrakeclub.com]. You may need libpythonV.V-devel for bitbake setup instead of python-dev.<br />
If you're building a 2.6 kernel, you also need the glibc-static-devel package.<br />
<br />
with Mandriva Linux 2006, you need to issue the following command:<br />
<br />
<pre><nowiki><br />
urpmi python python-devel python-psyco ccache patch m4 sed bison make wget bzip2 \<br />
cvs gawk glibc-devel gcc-c++ subversion sharutils coreutils docbook-utils openjade \<br />
quilt pcre-devel unzip glibc-static-devel<br />
</nowiki></pre><br />
<br />
=== openSUSE instructions ===<br />
<br />
Use zypper to install the required packages:<br />
<br />
zypper in subversion git python help2man diffstat wget gcc gcc-c++ libstdc++ glibc-devel<br />
<br />
These packages may be useful as well: ccache, bison and [http://software.opensuse.org/search?baseproject=ALL&p=1&q=gcc33 gcc33] (for faster build using ASSUME_PROVIDED), gtk2-devel (in case your build will fail on missing gdk-pixbuf-csource), bc (for collie kernel), ncurses-devel (if you want to call kernel menuconfig). python psyco package is optional.<br />
<br />
=== Fedora ===<br />
<br />
==== Fedora Core 2/3 ====<br />
Much of the following is probably already installed, but you can check with the following commands. You may want to use the yum.conf located at http://www.fedorafaq.org/. Note, this has not been tested yes as I am in the process of setting up a development environment.<br />
<br />
<pre><nowiki> yum install python patch m4 sed make docbook* openjade glibc-devel xmlto</nowiki></pre><br />
<br />
* `yum install ccache` (not required, also not a FC3 package)<br />
<br />
* psyco: Download psyco-1.4-src.tar.gz (or later) and extract it. Go to the psycho top-level directory and run: `python setup.py install`.<br />
<br />
* patch: FC3 default version should be enough. Optionally, install SuSe 9.1 package of it.<br />
<br />
==== Fedora Core 4 ====<br />
Almost all required packages for Openembedded are available in Fedora Core 4 and the Fedora Extras for Core 4. You can download them from <http://download.fedora.redhat.com/pub/fedora/linux/core> and <http://download.fedora.redhat.com/pub/fedora/linux/extras>. Check <http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4> for updates on the Core 4 packages.<br />
<br />
Apart from the usual (native) development packages like gcc and binutils, you should check that you have the following RPM's installed: <br />
<br />
* bison<br />
* ccache (not required, but advised to speed up building)<br />
* docbook* packages<br />
* libpcre<br />
* m4<br />
* make<br />
* openjade<br />
* patch<br />
* PyQt<br />
* python<br />
* python-psyco<br />
* sed<br />
* xmlto<br />
* quilt (not required as OE builds it by itself, but install it if you want to use gquilt)<br />
<br />
Use apt, synaptic, up2date or yum to automagically retrieve these packages or download and install them manually (lots of work).<br />
<br />
==== Fedora Core 5/6 ====<br />
<br />
Commands I used to install OE pre-requisites on FC5/6<br />
<br />
This long command will ensure all pre-requisites are installed (patch is 2.5.4, not 2.5.9, but appears to work).<br />
<br />
<pre><nowiki><br />
su -c "yum install python m4 make wget curl ftp cvs subversion tar bzip2 gzip unzip python-psyco ccache perl texinfo texi2html diffstat openjade docbook-style-dsssl docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel gcc binutils pcre pcre-devel git quilt groff linuxdoc-tools patch gcc gcc-c++ python-sqlite2 help2man"<br />
</nowiki></pre><br />
<br />
or download the metapackage http://www.openembedded.org/dl/packages/rpm/openembedded-essential-1.1-1.noarch.rpm (may be out of date).<br />
<br />
then do<br />
<br />
<pre><nowiki><br />
su -c "yum localinstall openembedded-essential-1.1-1.noarch.rpm"<br />
</nowiki></pre><br />
<br />
<br />
There are also rpm and src.rpm packages of bitbake 1.6.2 at http://www.openembedded.org/dl/packages/rpm/ pending a later version in Extras, currently 1.6.0.<br />
<br />
Update - Current FC6 version is patch-2.5.4-29.2.2 as of this writing and works-for-me (see revision history for build instructions if current patch does not work for you).<br />
<br />
I didn't install SGML tools. Please add if you know how<br />
<br />
Update - Since about 2002 sgml-tools has apparently been replaced by linuxdoc-tools for FC.<br />
<br />
==== Fedora 7 ====<br />
<br />
This long command will ensure all pre-requisites are installed (patch is 2.5.4, not 2.5.9, but appears to work).<br />
<br />
<pre><nowiki><br />
su -c "yum install python m4 make wget curl ftp cvs subversion tar bzip2 gzip unzip python-psyco ccache perl texinfo texi2html diffstat openjade docbook-style-dsssl docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel gcc binutils pcre pcre-devel git quilt groff linuxdoc-tools patch linuxdoc-tools gcc gcc-c++ help2man perl-ExtUtils-MakeMaker"<br />
</nowiki></pre><br />
<br />
(if this is hard to copy from this HTML page, go to edit mode and copy from editor)<br />
<br />
=== CentOS 4.4 / Red Hat Enterprise Linux 4 ===<br />
May also work for true EL4 or Scientific Linux - another RHEL rebuild<br />
<br />
Even with several optional and 3rd party yum repos enabled (centosplus, kbsingh, RPMforge/Dag, Dries) a number of required packages are too old or unavailable for CentOS4. [It should be possible to use other package managers including apt/synaptic, up2date, and smart to get the required packages. The following assumes yum.]<br />
<br />
I re-built the following SRPMS (with "$ rpmbuild --rebuild ..."):<br />
* boost-1.33.1-10.fc5.src.rpm<br />
* bitbake-1.6.2-1.src.rpm (Latest tarball from http://developer.berlios.de/projects/bitbake/ + modified spec from bitbake-1.6.0-2.fc7.src.rpm)<br />
<br />
Might also want to try the rpm and src.rpm packages of bitbake 1.6.2 at http://www.openembedded.org/dl/packages/rpm/ - I have not.<br />
<br />
Extra requirements for the builds included rpmdevtools, xmlto, and lynx.<br />
<br />
I put packages in a local repo so I can do "yum install ...", otherwise can do "yum localinstall foo.1.2.3.noarch.rpm ...". It may be necessary to temporarily set "gpgcheck=0" in /etc/yum.conf to avoid complaints about unsigned packages.<br />
<br />
For EL4 texi2html is available from the tetex package, currently tetex-2.0.2-22.EL4.7<br />
<br />
Note that the the metapackage http://www.openembedded.org/dl/packages/rpm/openembedded-essential-1.1-1.noarch.rpm<br />
should work except that it depends on texi2html.<br />
<br />
Instead as root do<br />
<br />
<pre><nowiki><br />
# yum install bison ccache coreutils cvs docbook-utils gawk git-core \<br />
python quilt rpmlib sed subversion tetex texinfo unzip wget<br />
</nowiki></pre><br />
<br />
I ended up with the following set of relevant packages after several iterations of building/updating to get "bitbake nano" to complete successfully:<br />
<br />
* python-2.3.4-14.3<br />
* m4-1.4.1-16<br />
* make-3.80-6.EL4<br />
* wget-1.10.2-0.40E<br />
* curl-7.12.1-8.rhel4<br />
* ftp-0.17-22<br />
* cvs-1.11.17-9.RHEL4<br />
* subversion-1.4.3-0.1.el4.rf<br />
* tar-1.14-12.RHEL4<br />
* bzip2-1.0.2-13.EL4.3<br />
* gzip-1.3.3-16.rhel4<br />
* unzip-5.51-7<br />
* python-psyco-1.5-3.el4.kb<br />
* ccache-2.4-1.2.el4.rf<br />
* perl-5.8.5-36.RHEL4<br />
* texinfo-4.7-5.el4.2<br />
* tetex-2.0.2-22.EL4.7<br />
* diffstat-1.34-0_6.el4.at<br />
* openjade-1.3.2-16_9.el4.at<br />
* docbook-style-dsssl-1.78-4<br />
* docbook-style-xsl-1.65.1-2<br />
* docbook-dtds-1.0-25<br />
* docbook-utils-0.6.14-4<br />
* sed-4.1.2-5.EL4<br />
* bison-1.875c-2<br />
* bc-1.06-17.1<br />
* glibc-devel-2.3.4-2.25<br />
* gcc-3.4.6-3<br />
* binutils-2.15.92.0.2-21<br />
* pcre-4.5-3.2.RHEL4<br />
* pcre-devel-4.5-3.2.RHEL4<br />
* git-1.4.4.2-2.el4.kb<br />
* bitbake-1.6.2-1<br />
<br />
== other Linux distributions ==<br />
<br />
=== Gentoo instructions ===<br />
<pre><nowiki><br />
emerge -n \<br />
psyco \<br />
ccache \<br />
patch \<br />
make \<br />
sed \<br />
dev-lang/python \<br />
m4 \<br />
bison \<br />
cvs \<br />
openjade \<br />
quilt \<br />
sgmltools-lite \<br />
docbook-xml-dtd \<br />
docbook-dsssl-stylesheets \<br />
xmlto \<br />
docbook-sgml-utils \<br />
libpcre \<br />
boost \<br />
subversion \<br />
texi2html \<br />
pysqlite<br />
</nowiki></pre><br />
<br />
Then follow the instructions in GettingStarted for obtaining bitbake and start the build.<br />
<br />
=== Ark Linux 2007.1 ===<br />
[http://www.arklinux.org/ Ark Linux] is a modern distribution well suited for Openembedded development. Footprint only 2.1G.<br />
<br />
Required steps:<br />
<br />
1) install required packages<br />
<pre><nowiki><br />
apt-get install devel-core diffstat texi2html cvs subversion git texinfo psyco python-devel python-encodings python-sqlite<br />
</nowiki></pre><br />
<br />
2) upgrade<br />
<pre><nowiki><br />
apt-get update<br />
apt-get upgrade <br />
<br />
The following packages will be REPLACED:<br />
texi2html (by tetex-texi2html)<br />
The following NEW packages will be installed:<br />
tetex-texi2html<br />
</nowiki></pre><br />
<br />
3) help2man<br />
<br />
help2man is missing from the ArkLinux repositories. The [http://www.gnu.org/software/help2man/ sources] must be configured, compiled and installed. The compilation of help2man requires the installation of some additional packages:<br />
<br />
apt-get install gettext-devel gettext-tools perl-Locale-gettext<br />
<br />
4) finally create your OE tree and provide bitbake (see [[Getting Started]] instructions)<br />
<br />
=== Arch Linux (Duke) ===<br />
<br />
Most of the packages are available in the repositories.<br />
<br />
<pre><nowiki><br />
sudo pacman -S psyco ccache patch make sed python m4 bison cvs quilt sgmltools-lite docbook-xml xmlto pcre boost jade git texinfo<br />
</nowiki></pre><br />
<br />
In Arch Linux the install command is in /bin/install. Since most of Linux distribution assume that install is located in /usr/bin/install, you have to create a symlink:<br />
<br />
<pre><nowiki><br />
sudo ln -s /bin/install /usr/bin/install<br />
</nowiki></pre><br />
<br />
You can build BitBake by using this PKGBUILD:<br />
<pre><nowiki><br />
pkgname=bitbake<br />
pkgver=1.8.4<br />
pkgrel=1<br />
pkgdesc="A simple tool for task execution derived from Gentoo's portage"<br />
url="http://developer.berlios.de/projects/bitbake/"<br />
arch=('i686')<br />
license=('GPL' 'custom')<br />
depends=('python')<br />
source=(http://download.berlios.de/bitbake/${pkgname}-${pkgver}.tar.gz)<br />
md5sums=('508d9a61c635d469be8facc95151158b')<br />
<br />
build() {<br />
cd ${startdir}/src/${pkgname}-${pkgver}<br />
python setup.py install --root=${startdir}/pkg<br />
<br />
# Install vim extensions<br />
install -D -m644 ${startdir}/src/${pkgname}-${pkgver}/contrib/vim/ftdetect/bitbake.vim \<br />
${startdir}/pkg/usr/share/vim/ftplugin/bitbake.vim<br />
install -D -m644 ${startdir}/src/${pkgname}-${pkgver}/contrib/vim/syntax/bitbake.vim \<br />
${startdir}/pkg/usr/share/vim/syntax/bitbake.vim<br />
<br />
# Handle MIT license<br />
install -D -m644 ${startdir}/src/${pkgname}-${pkgver}/doc/COPYING.MIT \<br />
${startdir}/pkg/usr/share/licenses/${pkgname}/COPYING.MIT<br />
}<br />
</nowiki></pre><br />
<br />
= Using OpenEmbedded on FreeBSD and other NON Linux Systems =<br />
<br />
to be done, maybe there is some information in the [http://oe.linuxtog.org/wiki old wiki]<br />
<br />
== FreeBSD ==<br />
<br />
* Python == /usr/ports/lang/python<br />
* GNU Patch == /usr/ports/devel/patch<br />
* GNU m4 == /usr/ports/devel/m4<br />
* GNU make == /usr/ports/devel/gmake<br />
* wget == /usr/ports/ftp/wget<br />
* Psyco JIT Compiler == /usr/ports/devel/py-psyco<br />
* ccache == /usr/ports/devel/ccache<br />
* GNU sed == /usr/ports/textproc/gsed<br />
* Bison == /usr/ports/devel/bison<br />
* GCC 2.95.3 == /usr/ports/lang/gcc295<br />
* bc == already in FreeBSD<br />
* PyQt == /usr/ports/x11-toolkits/py-qt<br />
* glibc headers (ignore)<br />
* subversion == /usr/ports/devel/subversion<br />
* git == /usr/ports/devel/git<br />
* pcre == /usr/ports/devel/pcre<br />
<br />
Ports has also has these: fileutils, jade, docbook, dsssl-docbook-modular, sgmltools<br />
<br />
== Using OpenEmbedded on Mac OS X ==<br />
<br />
to be done, maybe there is some information in the [http://oe.linuxtog.org/wiki old wiki]<br />
<br />
= Using OpenEmbedded on Windows/Cygwin Systems =<br />
<br />
<br />
Building Openembedded on Windows is currently unsupported, but [http://oe.linuxtogo.org/wiki/BuildOnCygwin work is in progress] to support buidling of meta-toolchain.bb on Windows/Cygwin hosts.</div>Ant