summaryrefslogtreecommitdiffstats
path: root/handbook/introduction.xml
blob: 19a71fe327d6b624a17a014247d3d3f140483a66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">

<chapter id='intro'>
<title>Introduction</title>

<section id='intro-what-is'>
    <title>What is Poky?</title>

    <para>

        Poky is an open source platform build tool. It is a complete
        software development environment for the creation of Linux
        devices. It aids the design, development, building, debugging,
        simulation and testing of complete modern software stacks
        using Linux, the X Window System and GNOME Mobile
        based application frameworks. It is based on <ulink
        url='http://openembedded.org/'>OpenEmbedded</ulink> but has
        been customised with a particular focus.

    </para>

    <para> Poky was setup to:</para>

    <itemizedlist>
        <listitem>
            <para>Provide an open source Linux, X11, Matchbox, GTK+, Pimlico, Clutter, and other <ulink url='http://gnome.org/mobile'>GNOME Mobile</ulink> technologies based full platform build and development tool.</para>
        </listitem>
        <listitem>
            <para>Create a focused, stable, subset of OpenEmbedded that can be easily and reliably built and developed upon.</para>
        </listitem>
        <listitem>
            <para>Fully support a wide range of x86 and ARM hardware and device virtulisation</para>
        </listitem>
    </itemizedlist>

    <para><ulink url='http://www.o-hand.com'>OpenedHand</ulink> is the principle developer and maintainer of Poky and uses it to:</para>

    <itemizedlist>
        <listitem>
            <para>Provide <ulink url='http://www.o-hand.com'>OpenedHand</ulink> with stable R&amp;D platform we can build and develop upon.</para>
        </listitem>
        <listitem>
            <para>
                Provide a testbed and showcase for OpenedHand's software products
                (such as the <ulink url='http://www.matchbox-project.org/'>Matchbox</ulink>, <ulink url='http://www.clutter-project.org/'>Clutter</ulink> and
                <ulink url='http://www.pimlico-project.org/'>Pimlico</ulink> software packages and
                Sato, the default user interface in Poky).
            </para>
        </listitem>
        <listitem>
            <para>Provide a supported base we can supply to our clients for building and developing their customised platforms.</para>
        </listitem>
    </itemizedlist>

    <para>
        Poky is primarily a platform builder which generates filesystem images
        based on open source software such as the Kdrive X server, the Matchbox
        window manager, the GTK+ toolkit and the D-Bus message bus system. Images
        for many kinds of devices can be generated, however the standard example
        machines target QEMU full system emulation (both x86 and ARM) and the ARM based
        Sharp Zaurus series of devices. Poky's ability to boot inside a QEMU
        emulator makes it particularly suitable as a test platform for development
        of embedded software.
    </para>

    <para>
        An important component integrated within Poky is Sato, a GNOME Mobile 
        based user interface environment.
        It is designed to work well with screens at very high DPI and restricted
        size, such as those often found on smartphones and PDAs. It is coded with
        focus on efficiency and speed so that it works smoothly on hand-held and
        other embedded hardware. It will sit neatly on top of any device
        using the GNOME Mobile stack, providing a well defined user experience.
    </para>

    <para>

    Poky has a growing open source community backed up by commercial support provided by <ulink url="http://o-hand.com/">OpenedHand</ulink>.

    </para>
</section>

<section id='intro-manualoverview'>
    <title>Documentation Overview</title>

    <para>
        The handbook is split into sections covering different aspects of Poky. 
        The <link linkend='usingpoky'>'Using Poky' section</link> gives an overview 
        of the components that make up Poky followed by information about using and
        debugging the Poky build system. The <link linkend='extendpoky'>'Extending Poky' section</link> 
        gives information about how to extend and customise Poky along with advice 
        on how to manage these changes. The <link linkend='platdev'>'Platform Development with Poky' 
        section</link> gives information about interaction between Poky and target
        hardware for common platform development tasks such as software development, 
        debugging and profiling. The rest of the manual
        consists of several reference sections each giving details on a specific
        section of Poky functionality.
    </para>

    <para>
        This manual applies to Poky Release 3.1 (Pinky).
    </para>

</section>


<section id='intro-requirements'>
    <title>System Requirements</title>

    <para>
        We recommend Debian-based distributions, in particular a recent Ubuntu 
        release (7.04 or newer), as the host system for Poky. Nothing in Poky is
        distribution specific and
        other distributions will most likely work as long as the appropriate
        prerequisites are installed - we know of Poky being used successfully on Redhat,
        SUSE, Gentoo and Slackware host systems.
    </para>

    <para>On a Debian-based system, you need the following packages installed:</para>

    <itemizedlist>
        <listitem>
            <para>build-essential</para>
        </listitem>
        <listitem>
            <para>python</para>
        </listitem>
        <listitem>
            <para>diffstat</para>
        </listitem>
        <listitem>
            <para>texinfo</para>
        </listitem>
        <listitem>
            <para>texi2html</para>
        </listitem>
        <listitem>
            <para>cvs</para>
        </listitem>
        <listitem>
            <para>subversion</para>
        </listitem>
        <listitem>
            <para>wget</para>
        </listitem>
        <listitem>
            <para>gawk</para>
        </listitem>
        <listitem>
            <para>help2man</para>
        </listitem>
        <listitem>
            <para>bochsbios (only to run qemux86 images)</para>
        </listitem>
    </itemizedlist>

    <para>
        Debian users can add debian.o-hand.com to their APT sources (See
        <ulink url='http://debian.o-hand.com'/>
        for instructions on doing this) and then run <command>
        "apt-get install qemu poky-depends poky-scripts"</command> which will
        automatically install all these dependencies. OpenedHand can also provide
        VMware images with Poky and all dependencies pre-installed if required.
    </para>

    <para>
        Poky can use a system provided QEMU or build its own depending on how it's
        configured. See the options in <filename>local.conf</filename> for more details.
    </para>
</section>

<section id='intro-quickstart'>
    <title>Quick Start</title>

    <section id='intro-quickstart-build'>
        <title>Building and Running an Image</title>

        <para>
            If you want to try Poky, you can do so in a few commands. The example below
            checks out the Poky source code, sets up a build environment, builds an
            image and then runs that image under the QEMU emulator in ARM system emulation mode:
        </para>

        <para>
            <literallayout class='monospaced'>
$ wget http://pokylinux.org/releases/pinky-3.1.tar.gz
$ tar zxvf pinky-3.1.tar.gz
$ cd pinky-3.1/
$ source poky-init-build-env
$ bitbake poky-image-sato
$ runqemu qemuarm
</literallayout>
        </para>

        <note>
        <para>
            This process will need Internet access, about 3 GB of disk space
            available, and you should expect the build to take about 4 - 5 hours since
            it is building an entire Linux system from source including the toolchain!
        </para>
        </note>

        <para>
            To build for other machines see the <glossterm><link
                    linkend='var-MACHINE'>MACHINE</link></glossterm> variable in build/conf/local.conf
            which also contains other configuration information. The images/kernels built
            by Poky are placed in the <filename class="directory">tmp/deploy/images</filename>
            directory.
        </para>

        <para>
            You could also run <command>"poky-qemu zImage-qemuarm.bin poky-image-sato-qemuarm.ext2"
            </command> within the images directory if you have the poky-scripts Debian package
            installed from debian.o-hand.com. This allows the QEMU images to be used standalone
            outside the Poky build environment.
        </para>
        <para>
            To setup networking within QEMU see the <link linkend='usingpoky-install-qemu-networking'>
            QEMU/USB networking with IP masquerading</link> section.
        </para>

    </section>
    <section id='intro-quickstart-qemu'>
        <title>Downloading and Using Prebuilt Images</title>

        <para>
            Prebuilt images from Poky are also available if you just want to run the system
            under QEMU. To use these you need to:
        </para>

        <itemizedlist>
            <listitem>
                <para>
                     Add debian.o-hand.com to your APT sources (See
                    <ulink url='http://debian.o-hand.com'/> for instructions on doing this)
                </para>
            </listitem>
            <listitem>
                <para>Install patched QEMU and poky-scripts:</para>
                <para>
                    <literallayout class='monospaced'>
$ apt-get install qemu poky-scripts
</literallayout>
                </para>
            </listitem>

            <listitem>
                <para>
                    Download a Poky QEMU release kernel (*zImage*qemu*.bin) and compressed
                    filesystem image (poky-image-*-qemu*.ext2.bz2) which
                    you'll need to decompress with 'bzip2 -d'. These are available from the
                    <ulink url='http://pokylinux.org/releases/blinky-3.0/'>last release</ulink>
                    or from the <ulink url='http://pokylinux.org/autobuild/poky/'>autobuilder</ulink>.
                </para>
            </listitem>
            <listitem>
                <para>Start the image:</para>
                <para>
                    <literallayout class='monospaced'>
$ poky-qemu &lt;kernel&gt; &lt;image&gt;
</literallayout>
                </para>
            </listitem>
        </itemizedlist>

        <note><para>
            A patched version of QEMU is required at present. A suitable version is available from 
            <ulink url='http://debian.o-hand.com'/>, it can be built 
            by poky (bitbake qemu-native) or can be downloaded/built as part of the toolchain/SDK tarballs.
        </para></note>

    </section>
</section>

<section id='intro-getit'>
    <title>Obtaining Poky</title>

    <section id='intro-getit-releases'>
        <title>Releases</title>

        <para>Periodically, we make releases of Poky and these are available
            at <ulink url='http://pokylinux.org/releases/'/>.
            These are more stable and tested than the nightly development images.</para>
    </section>

    <section id='intro-getit-nightly'>
        <title>Nightly Builds</title>

        <para>
            We make nightly builds of Poky for testing purposes and to make the
            latest developments available. The output from these builds is available
            at <ulink url='http://pokylinux.org/autobuild/'/>
            where the numbers represent the svn revision the builds were made from.
        </para>

        <para>
            Automated builds are available for "standard" Poky and for Poky SDKs and toolchains as well 
            as any testing versions we might have such as poky-bleeding. The toolchains can
            be used either as external standalone toolchains or can be combined with Poky as a
            prebuilt toolchain to reduce build time. Using the external toolchains is simply a
            case of untarring the tarball into the root of your system (it only creates files in
            <filename class="directory">/usr/local/poky</filename>) and then enabling the option 
            in <filename>local.conf</filename>.
        </para>

    </section>

    <section id='intro-getit-dev'>
        <title>Development Checkouts</title>

        <para>
            Poky is available from our SVN repository located at
            http://svn.o-hand.com/repos/poky/trunk; a web interface to the repository
            can be accessed at <ulink url='http://svn.o-hand.com/view/poky/'/>.
        </para>

        <para>
           'trunk' is where the deveopment work takes place and you should use this if you're
           after to work with the latest cutting edge developments. It is possible trunk
           can suffer temporary periods of instability while new features are developed and
           if this is undesireable we recommend using one of the release branches.
        </para>
    </section>

</section>

</chapter>
<!--
vim: expandtab tw=80 ts=4
-->