From bfb2c2c6af4fc6cdfa9f4494dda74cec5bedf895 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Thu, 4 Aug 2011 11:43:47 -0700 Subject: documentation/dev-manual/dev-manual-kernel-appendix.xml: new section for image I added a new section for the example that ensures the image for qemu is available. (From yocto-docs rev: a3ca52cb7088ec85502b507093082f35f23befd4) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- .../dev-manual/dev-manual-kernel-appendix.xml | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) (limited to 'documentation') diff --git a/documentation/dev-manual/dev-manual-kernel-appendix.xml b/documentation/dev-manual/dev-manual-kernel-appendix.xml index 787be3df5d..352924c1f9 100644 --- a/documentation/dev-manual/dev-manual-kernel-appendix.xml +++ b/documentation/dev-manual/dev-manual-kernel-appendix.xml @@ -168,6 +168,72 @@ +
+ Be Sure the Image is Available + + + For the example you need an image that you can use when you run the QEMU emulator. + By default, support of VFAT filesystems will not be supported in this image. + The example will test that in a subsequent section. + + + + In theory, you can get an image suitable for QEMU one of two ways: + + Download a pre-built kernel image and matching ext3 + file system from the Yocto Project + Index of downloads. + See Index of Downloads earlier in the + manual for more information about this source repository. + You can also see + + Using Pre-Build Binaries and QEMU + in the Yocto Project Quick Start for information on how to find and choose + images ready to run in QEMU. + Build an image and matching ext3 + filesystem using the poky Git repository on your local + development system. + + + + + This example continues by building the image. + If you want to see more on building an image in general, see + + Building an Image in the Yocto Project Quick Start. + + + + The following steps result in a QEMU image and filesystem for + an x86 (32-bit) target machine that can run in the emulator. + + Prepare the Build Environment - Source the + script to set up the build environment: + + $ cd ~/poky + $ source oe-init-build-env + + Change Configurations to Speed Up the Build - If your + development system supports multiple cores you can remove the comments in the + BB_NUMBER_THREADS and PARALLEL_MAKE + statements and adjust the arguments to optimize the build time. + For example, a development host that has four cores could use + 8 and j 6 to get the best use of + your host's multi-core and thread capabilities. + Start the Build - Use BitBake to start the + build: + + $ bitbake -k core-image-sato + + Depending on your host system's load and capabilities the build takes some time. + Once it completes you will have the kernel image needed to continue the example. + The image and filesystem reside in the build directory at + poky/build/tmp/deploy/images. + + + +
+
Prepare to use <filename>menuconfig</filename> -- cgit v1.2.3-54-g00ecf