introduction.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  1. <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  2. "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
  3. <chapter id='intro'>
  4. <title>Introduction</title>
  5. <section id='intro-what-is'>
  6. <title>What is Poky?</title>
  7. <para>
  8. Poky is an open source platform build tool. It is a complete
  9. software development environment for the creation of Linux
  10. devices. It aids the design, development, building, debugging,
  11. simulation and testing of complete modern software stacks
  12. using Linux, the X Window System and GNOME Mobile
  13. based application frameworks. It is based on <ulink
  14. url='http://openembedded.org/'>OpenEmbedded</ulink> but has
  15. been customised with a particular focus.
  16. </para>
  17. <para> Poky was setup to:</para>
  18. <itemizedlist>
  19. <listitem>
  20. <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>
  21. </listitem>
  22. <listitem>
  23. <para>Create a focused, stable, subset of OpenEmbedded that can be easily and reliably built and developed upon.</para>
  24. </listitem>
  25. <listitem>
  26. <para>Fully support a wide range of x86 and ARM hardware and device virtulisation</para>
  27. </listitem>
  28. </itemizedlist>
  29. <para>
  30. Poky is primarily a platform builder which generates filesystem images
  31. based on open source software such as the Kdrive X server, the Matchbox
  32. window manager, the GTK+ toolkit and the D-Bus message bus system. Images
  33. for many kinds of devices can be generated, however the standard example
  34. machines target QEMU full system emulation (both x86 and ARM) and the ARM based
  35. Sharp Zaurus series of devices. Poky's ability to boot inside a QEMU
  36. emulator makes it particularly suitable as a test platform for development
  37. of embedded software.
  38. </para>
  39. <para>
  40. An important component integrated within Poky is Sato, a GNOME Mobile
  41. based user interface environment.
  42. It is designed to work well with screens at very high DPI and restricted
  43. size, such as those often found on smartphones and PDAs. It is coded with
  44. focus on efficiency and speed so that it works smoothly on hand-held and
  45. other embedded hardware. It will sit neatly on top of any device
  46. using the GNOME Mobile stack, providing a well defined user experience.
  47. </para>
  48. <screenshot>
  49. <mediaobject>
  50. <imageobject>
  51. <imagedata fileref="screenshots/ss-sato.png" format="PNG"/>
  52. </imageobject>
  53. <caption>
  54. <para>The Sato Desktop - A screenshot from a machine running a Poky built image</para>
  55. </caption>
  56. </mediaobject>
  57. </screenshot>
  58. <para>
  59. Poky has a growing open source community backed up by commercial support provided by the principle developer and maintainer of Poky, <ulink url="http://o-hand.com/">OpenedHand Ltd</ulink>.
  60. </para>
  61. </section>
  62. <section id='intro-manualoverview'>
  63. <title>Documentation Overview</title>
  64. <para>
  65. The handbook is split into sections covering different aspects of Poky.
  66. The <link linkend='usingpoky'>'Using Poky' section</link> gives an overview
  67. of the components that make up Poky followed by information about using and
  68. debugging the Poky build system. The <link linkend='extendpoky'>'Extending Poky' section</link>
  69. gives information about how to extend and customise Poky along with advice
  70. on how to manage these changes. The <link linkend='platdev'>'Platform Development with Poky'
  71. section</link> gives information about interaction between Poky and target
  72. hardware for common platform development tasks such as software development,
  73. debugging and profiling. The rest of the manual
  74. consists of several reference sections each giving details on a specific
  75. section of Poky functionality.
  76. </para>
  77. <para>
  78. This manual applies to Poky Release 3.1 (Pinky).
  79. </para>
  80. </section>
  81. <section id='intro-requirements'>
  82. <title>System Requirements</title>
  83. <para>
  84. We recommend Debian-based distributions, in particular a recent Ubuntu
  85. release (7.04 or newer), as the host system for Poky. Nothing in Poky is
  86. distribution specific and
  87. other distributions will most likely work as long as the appropriate
  88. prerequisites are installed - we know of Poky being used successfully on Redhat,
  89. SUSE, Gentoo and Slackware host systems.
  90. </para>
  91. <para>On a Debian-based system, you need the following packages installed:</para>
  92. <itemizedlist>
  93. <listitem>
  94. <para>build-essential</para>
  95. </listitem>
  96. <listitem>
  97. <para>python</para>
  98. </listitem>
  99. <listitem>
  100. <para>diffstat</para>
  101. </listitem>
  102. <listitem>
  103. <para>texinfo</para>
  104. </listitem>
  105. <listitem>
  106. <para>texi2html</para>
  107. </listitem>
  108. <listitem>
  109. <para>cvs</para>
  110. </listitem>
  111. <listitem>
  112. <para>subversion</para>
  113. </listitem>
  114. <listitem>
  115. <para>wget</para>
  116. </listitem>
  117. <listitem>
  118. <para>gawk</para>
  119. </listitem>
  120. <listitem>
  121. <para>help2man</para>
  122. </listitem>
  123. <listitem>
  124. <para>bochsbios (only to run qemux86 images)</para>
  125. </listitem>
  126. </itemizedlist>
  127. <para>
  128. Debian users can add debian.o-hand.com to their APT sources (See
  129. <ulink url='http://debian.o-hand.com'/>
  130. for instructions on doing this) and then run <command>
  131. "apt-get install qemu poky-depends poky-scripts"</command> which will
  132. automatically install all these dependencies. OpenedHand can also provide
  133. VMware images with Poky and all dependencies pre-installed if required.
  134. </para>
  135. <para>
  136. Poky can use a system provided QEMU or build its own depending on how it's
  137. configured. See the options in <filename>local.conf</filename> for more details.
  138. </para>
  139. </section>
  140. <section id='intro-quickstart'>
  141. <title>Quick Start</title>
  142. <section id='intro-quickstart-build'>
  143. <title>Building and Running an Image</title>
  144. <para>
  145. If you want to try Poky, you can do so in a few commands. The example below
  146. checks out the Poky source code, sets up a build environment, builds an
  147. image and then runs that image under the QEMU emulator in ARM system emulation mode:
  148. </para>
  149. <para>
  150. <literallayout class='monospaced'>
  151. $ wget http://pokylinux.org/releases/pinky-3.1.tar.gz
  152. $ tar zxvf pinky-3.1.tar.gz
  153. $ cd pinky-3.1/
  154. $ source poky-init-build-env
  155. $ bitbake poky-image-sato
  156. $ runqemu qemuarm
  157. </literallayout>
  158. </para>
  159. <note>
  160. <para>
  161. This process will need Internet access, about 3 GB of disk space
  162. available, and you should expect the build to take about 4 - 5 hours since
  163. it is building an entire Linux system from source including the toolchain!
  164. </para>
  165. </note>
  166. <para>
  167. To build for other machines see the <glossterm><link
  168. linkend='var-MACHINE'>MACHINE</link></glossterm> variable in build/conf/local.conf
  169. which also contains other configuration information. The images/kernels built
  170. by Poky are placed in the <filename class="directory">tmp/deploy/images</filename>
  171. directory.
  172. </para>
  173. <para>
  174. You could also run <command>"poky-qemu zImage-qemuarm.bin poky-image-sato-qemuarm.ext2"
  175. </command> within the images directory if you have the poky-scripts Debian package
  176. installed from debian.o-hand.com. This allows the QEMU images to be used standalone
  177. outside the Poky build environment.
  178. </para>
  179. <para>
  180. To setup networking within QEMU see the <link linkend='usingpoky-install-qemu-networking'>
  181. QEMU/USB networking with IP masquerading</link> section.
  182. </para>
  183. </section>
  184. <section id='intro-quickstart-qemu'>
  185. <title>Downloading and Using Prebuilt Images</title>
  186. <para>
  187. Prebuilt images from Poky are also available if you just want to run the system
  188. under QEMU. To use these you need to:
  189. </para>
  190. <itemizedlist>
  191. <listitem>
  192. <para>
  193. Add debian.o-hand.com to your APT sources (See
  194. <ulink url='http://debian.o-hand.com'/> for instructions on doing this)
  195. </para>
  196. </listitem>
  197. <listitem>
  198. <para>Install patched QEMU and poky-scripts:</para>
  199. <para>
  200. <literallayout class='monospaced'>
  201. $ apt-get install qemu poky-scripts
  202. </literallayout>
  203. </para>
  204. </listitem>
  205. <listitem>
  206. <para>
  207. Download a Poky QEMU release kernel (*zImage*qemu*.bin) and compressed
  208. filesystem image (poky-image-*-qemu*.ext2.bz2) which
  209. you'll need to decompress with 'bzip2 -d'. These are available from the
  210. <ulink url='http://pokylinux.org/releases/blinky-3.0/'>last release</ulink>
  211. or from the <ulink url='http://pokylinux.org/autobuild/poky/'>autobuilder</ulink>.
  212. </para>
  213. </listitem>
  214. <listitem>
  215. <para>Start the image:</para>
  216. <para>
  217. <literallayout class='monospaced'>
  218. $ poky-qemu &lt;kernel&gt; &lt;image&gt;
  219. </literallayout>
  220. </para>
  221. </listitem>
  222. </itemizedlist>
  223. <note><para>
  224. A patched version of QEMU is required at present. A suitable version is available from
  225. <ulink url='http://debian.o-hand.com'/>, it can be built
  226. by poky (bitbake qemu-native) or can be downloaded/built as part of the toolchain/SDK tarballs.
  227. </para></note>
  228. </section>
  229. </section>
  230. <section id='intro-getit'>
  231. <title>Obtaining Poky</title>
  232. <section id='intro-getit-releases'>
  233. <title>Releases</title>
  234. <para>Periodically, we make releases of Poky and these are available
  235. at <ulink url='http://pokylinux.org/releases/'/>.
  236. These are more stable and tested than the nightly development images.</para>
  237. </section>
  238. <section id='intro-getit-nightly'>
  239. <title>Nightly Builds</title>
  240. <para>
  241. We make nightly builds of Poky for testing purposes and to make the
  242. latest developments available. The output from these builds is available
  243. at <ulink url='http://pokylinux.org/autobuild/'/>
  244. where the numbers represent the svn revision the builds were made from.
  245. </para>
  246. <para>
  247. Automated builds are available for "standard" Poky and for Poky SDKs and toolchains as well
  248. as any testing versions we might have such as poky-bleeding. The toolchains can
  249. be used either as external standalone toolchains or can be combined with Poky as a
  250. prebuilt toolchain to reduce build time. Using the external toolchains is simply a
  251. case of untarring the tarball into the root of your system (it only creates files in
  252. <filename class="directory">/usr/local/poky</filename>) and then enabling the option
  253. in <filename>local.conf</filename>.
  254. </para>
  255. </section>
  256. <section id='intro-getit-dev'>
  257. <title>Development Checkouts</title>
  258. <para>
  259. Poky is available from our SVN repository located at
  260. http://svn.o-hand.com/repos/poky/trunk; a web interface to the repository
  261. can be accessed at <ulink url='http://svn.o-hand.com/view/poky/'/>.
  262. </para>
  263. <para>
  264. 'trunk' is where the deveopment work takes place and you should use this if you're
  265. after to work with the latest cutting edge developments. It is possible trunk
  266. can suffer temporary periods of instability while new features are developed and
  267. if this is undesireable we recommend using one of the release branches.
  268. </para>
  269. </section>
  270. </section>
  271. </chapter>
  272. <!--
  273. vim: expandtab tw=80 ts=4
  274. -->