diff options
author | Scott Rifenbark <scott.m.rifenbark@intel.com> | 2012-06-11 09:39:32 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-06-15 17:18:26 +0100 |
commit | 363efd4e99bcadad2a4e2a9e43117c5e230c1fd1 (patch) | |
tree | e02eaeaa2ee9de6ca945a85fad65c8060d86f294 /documentation | |
parent | 857b2d45f63faa803296a5fba7b0e6a1b9a2989e (diff) | |
download | poky-363efd4e99bcadad2a4e2a9e43117c5e230c1fd1.tar.gz |
documentation/dev-manual/dev-manual-start.xml: Updates to pre-built section
The "Using Pre-Built Binaries and QUME" section needed to incorporate
some information from the YP Reference Manual. I have merged those
changes in and did some re-writing to blend it well.
(From yocto-docs rev: 5c20f00f9ec75c19fd0106c9f241751381ba7e3c)
Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/dev-manual/dev-manual-start.xml | 79 |
1 files changed, 72 insertions, 7 deletions
diff --git a/documentation/dev-manual/dev-manual-start.xml b/documentation/dev-manual/dev-manual-start.xml index d73bb967a7..763582d874 100644 --- a/documentation/dev-manual/dev-manual-start.xml +++ b/documentation/dev-manual/dev-manual-start.xml | |||
@@ -297,20 +297,85 @@ | |||
297 | <title>Using Pre-Built Binaries and QEMU</title> | 297 | <title>Using Pre-Built Binaries and QEMU</title> |
298 | 298 | ||
299 | <para> | 299 | <para> |
300 | Another option you have to get started is to use pre-built binaries. | 300 | Another option you have to get started is to use pre-built binaries. |
301 | This scenario is ideal for developing software applications to run on your target hardware. | 301 | The Yocto Project provides many types of binaries with each release. |
302 | To do this, you need to install the stand-alone Yocto Project cross-toolchain tarball and | 302 | See the <ulink url='&YOCTO_DOCS_REF_URL;#ref-images'>Reference: Images</ulink> |
303 | then download the pre-built kernel that you will boot in the QEMU emulator. | 303 | section for descriptions of the types of binaries that ship with a Yocto Project |
304 | Next, you must download and extract the target root filesystem for your target | 304 | release. |
305 | machine’s architecture. | ||
306 | Finally, you set up the environment to emulate the hardware and then start the QEMU emulator. | ||
307 | </para> | 305 | </para> |
308 | 306 | ||
309 | <para> | 307 | <para> |
308 | Using a pre-built binary is ideal for developing software applications to run on your | ||
309 | target hardware. | ||
310 | To do this, you need to be able to access the appropriate cross-toolchain tarball for | ||
311 | the architecture on which you are developing. | ||
312 | If you are using an SDK type image, the image ships with the complete toolchain native to | ||
313 | the architecture. | ||
314 | If you are not using an SDK type image, you need to separately download and | ||
315 | install the stand-alone Yocto Project cross-toolchain tarball. | ||
316 | </para> | ||
317 | |||
318 | <para> | ||
319 | Regardless of the type of image you are using, you need to download the pre-built kernel | ||
320 | that you will boot in the QEMU emulator and then download and extract the target root | ||
321 | filesystem for your target machine’s architecture. | ||
322 | You can get architecture-specific binaries and filesystem from | ||
323 | <ulink url='&YOCTO_MACHINES_DL_URL;'>machines</ulink>. | ||
324 | You can get stand-alone toolchains from | ||
325 | <ulink url='&YOCTO_TOOLCHAIN_DL_URL;'>toolchains</ulink>. | ||
326 | Once you have all your files, you set up the environment to emulate the hardware | ||
327 | by sourcing an environment setup script. | ||
328 | Finally, you start the QEMU emulator. | ||
310 | You can find details on all these steps in the | 329 | You can find details on all these steps in the |
311 | "<ulink url='&YOCTO_DOCS_QS_URL;#using-pre-built'>Using Pre-Built Binaries and QEMU</ulink>" | 330 | "<ulink url='&YOCTO_DOCS_QS_URL;#using-pre-built'>Using Pre-Built Binaries and QEMU</ulink>" |
312 | section of the Yocto Project Quick Start. | 331 | section of the Yocto Project Quick Start. |
313 | </para> | 332 | </para> |
333 | |||
334 | <para> | ||
335 | Using QEMU to emulate your hardware can result in speed issues | ||
336 | depending on the target and host architecture mix. | ||
337 | For example, using the <filename>qemux86</filename> image in the emulator | ||
338 | on an Intel-based 32-bit (x86) host machine is fast because the target and | ||
339 | host architectures match. | ||
340 | On the other hand, using the <filename>qemuarm</filename> image on the same Intel-based | ||
341 | host can be slower. | ||
342 | But, you still achieve faithful emulation of ARM-specific issues. | ||
343 | </para> | ||
344 | |||
345 | <para> | ||
346 | To speed things up, the QEMU images support using <filename>distcc</filename> | ||
347 | to call a cross-compiler outside the emulated system. | ||
348 | If you used <filename>runqemu</filename> to start QEMU, and the | ||
349 | <filename>distccd</filename> application is present on the host system, any | ||
350 | BitBake cross-compiling toolchain available from the build system is automatically | ||
351 | used from within QEMU simply by calling <filename>distcc</filename>. | ||
352 | You can accomplish this by defining the cross-compiler variable | ||
353 | (e.g. <filename>export CC="distcc"</filename>). | ||
354 | Alternatively, if you are using a suitable SDK image or the appropriate | ||
355 | stand-alone toolchain is present in <filename>/opt/poky</filename>, | ||
356 | the toolchain is also automatically used. | ||
357 | </para> | ||
358 | |||
359 | <note> | ||
360 | Several mechanisms exist that let you connect to the system running on the | ||
361 | QEMU emulator: | ||
362 | <itemizedlist> | ||
363 | <listitem><para>QEMU provides a framebuffer interface that makes standard | ||
364 | consoles available.</para></listitem> | ||
365 | <listitem><para>Generally, headless embedded devices have a serial port. | ||
366 | If so, you can configure the operating system of the running image | ||
367 | to use that port to run a console. | ||
368 | The connection uses standard IP networking.</para></listitem> | ||
369 | <listitem><para>The QEMU images have a Dropbear secure shell (ssh) server | ||
370 | that runs with the root password disabled. | ||
371 | This allows you to use standard <filename>ssh</filename> and | ||
372 | <filename>scp</filename> commands.</para></listitem> | ||
373 | <listitem><para>The QEMU images also contain an embedded Network Files | ||
374 | System (NFS) server that exports the image's root filesystem. | ||
375 | This allows you to make the filesystem available to the | ||
376 | host.</para></listitem> | ||
377 | </itemizedlist> | ||
378 | </note> | ||
314 | </section> | 379 | </section> |
315 | </chapter> | 380 | </chapter> |
316 | <!-- | 381 | <!-- |