Yocto QEMU UNFS test procedure
Steps to run the NFS test case for all qemu machines
Prerequisites:
1. Have a clone of poky
$ git clone git://git.yoctoproject.org/poky
2. Checkout the correct hash.
$ git checkout and/or git log
3. Download the "kernel" file (<zimage>.bin) and the image compressed file (.tar.bz2) from desire autobilder link.
Steps:
1. Open a terminal and place in poky/ directory.
$ cd $PATH/poky
2. Source the environment:
$ source oe-init-build-env build
4. Place the downloaded kernel (<zimage>.bin) and the .tar.bz2 file after "build" directory, something like "/home/YOURUSER/poky/build/tmp/deploy/images/qemuXYZ/" Note: First you need to create manually those directories in your system. a) In poky directory create tmp directory (~/poky/build$ mkdir tmp); b) Then access to tpm ($ cd tmp); c) Create deploy directory ($ mkdir deploy); d) Access to deploy directory ($ cd deploy); e) Create images directory ($ mkdir images); f) Access to images directory ($ cd images); g) create your qemu folder, for example if you are testing qemux86 ($ mkdir qemux86); h) Access to qemux86 directory ($ cd qemux86) Note: you can avoid to download and copy here the files and directly download in this path, typing in this path the following command:
$ wget /webaddresofthe_Kernel_image
$ wget /webaddressof_the.tar.bz2 file
5. Go to build directory:
$ cd /home/youruser/poky/build<pre> 6. Extract the SDK, typing in a terminal the following command: <pre>$ runqemu-extract-sdk tpm/deploy/images/qemux86/core-image-sato-sdk-qemux86.tar.bz2 rootfs
Note1: "rootfs" is referring to a directory going to be created, you can choose any name as you want. Note2: is it possible that the system will ask you to bitbake the system first. Then type in the terminal $ bitbake meta-ide-support (grab a cup of coffe, this process will take a while).
7. Type again in a terminal:
$ runqemu-extract-sdk tpm/deploy/images/qemux86/core-image-sato-sdk-qemux86.tar.bz2 rootfs
8. Start the qemu machine with NFS:
$ runqemu nfs tmp/deploy/images/qemux86/<zimage>.bin/ rootfs
qemu machine should be launche after this comand.
9. From qemu open a terminal and type
$ poweroff
$ git clone git://git.yoctoproject.org/qa-tools
Contributing to any of the yoctoproject.org repositories, including qa-tools, can be achieved with the Poky Contributions guidelines.