Building Poky SDK

There are several alternatives for cross development enviroments and Poky
is one of them; Poky supports a wide range of ARM architectures and 0x86,
it also provides support for Qemu system emulation.

The main feauture of poky is the inclusion of Sato which is a combination of
X11/Gtk+/Matchbox, this is the main difference with other sdk’s like Maemo
which use Hildon as GUI.

The sdk includes the toolchains, development headers and libraries for cross
compiling applications.

Building poky sdk is preatty simple

Checkout the latest version of Poky:

svn co http://svn.o-hand.com/repos/oprofileui/trunk/

cd poky

source poky-init-build-env

bitbake meta-toolchain-sdk

You may find this error:

ERROR:  Poky’s config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the
checker (see sanity.conf). Following is the list of potential problems
/ advisories:

Using dash as /bin/sh causes various subtle build problems, please use
bash instead.

This is a long time bug in Debian/Ubuntu systems bug-61463 simple change the
/bin/sh symbolic link to point to bash istead of dash; See the bug report for
more information

sudo rm /bin/sh
sudo ln -s /bin/bash /bin/sh

Re-run bitbake to start the SDK build.

Building the SDK will take a couple of hours, get a coffe and do something else.

By the way is possible that during the build process you end with some Errors
on building an specific package for example jpeg_6b the most common error is
that the src package can’t be found our the repository is down to solve this
edit the bitbake recipe for building this package.

vim meta/packages/jpeg/jpeg_6b.bb

….
SRC_URI = “http://www.ijg.org/files/jpegsrc.v${PV}.tar.gz \
….

And make sure that the package is available in the SRC_URI as declared if not
make the propper changes.

Once the SDK build ends a tarball will be place on

[poky root path]/build/tmp/deploy/sdk/

poky-eabi-glibc-x86_64-arm-toolchain-sdk-3.2+snapshot-20080511-extras.tar.bz2
poky-eabi-glibc-x86_64-arm-toolchain-sdk-3.2+snapshot-20080511.tar.bz2

Extract them on your root file system [/]

sudo tar xf poky-eabi-glibc-x86_64-*-20080511-extras.tar.bz2 -C /
sudo tar xf poky-eabi-glibc-x86_64-*-20080511.tar.bz2 -C /

that would place the SDK under

/usr/local/poky/

More information on poky official site.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s