2.3.2. Extracting the Root Filesystem

If you install your toolchain by hand or build it using BitBake and you need a root filesystem, you need to extract it separately. If you use the ADT Installer to install the ADT, the root filesystem is automatically extracted and installed.

Here are some cases where you need to extract the root filesystem:

To extract the root filesystem, first source the cross-development environment setup script. If you built the toolchain in the Build Directory, you will find the toolchain environment script in the tmp directory. If you installed the toolchain by hand, the environment setup script is located in /opt/poky/1.5.1.

After sourcing the environment script, use the runqemu-extract-sdk command and provide the filesystem image.

Following is an example. The second command sets up the environment. In this case, the setup script is located in the /opt/poky/1.5.1 directory. The third command extracts the root filesystem from a previously built filesystem that is located in the ~/Downloads directory. Furthermore, this command extracts the root filesystem into the qemux86-sato directory:

     $ cd ~
     $ source /opt/poky/1.5.1/environment-setup-i586-poky-linux
     $ runqemu-extract-sdk \
        ~/Downloads/core-image-sato-sdk-qemux86-2011091411831.rootfs.tar.bz2 \
        $HOME/qemux86-sato
            

You could now point to the target sysroot at qemux86-sato.