Yocto is an open source community that helps developers create custom systems based on the Linux kernel by providing templates, tools, and methods. This tutorial uses Yocto to build a Linux system for P1010RDB development.
First, the Linux system environment preparation:
1. Create a new user hello (yocto to be used under non-root user)
Useraddr Hello
2. Restart the computer and enter the Hello user. Create the Yocto folder in/home/hello and copy the contents of the disc to Yocto.
Mkdir/home/hello/yocto
cp/media/770-77991/*/home/hello/yocto/-RF
Second, installation Yocto
1. After entering the/home/hello/yocto folder, add install executable permission
chmod +x Install
2, follow the prompts to install, the installation path is/home/hello
./install
Third, generate P1010RDB module
1. Enter Yocto home folder
Cd/home/hello/qoriq-sdk-v1.2-20120614-yocto
2. Add sudo permission to Hello user, run environment configuration script.
Vim/etc/sudoers
Join in line 99
Hello all= (All) all
Hello all = nopasswd:/usr/bin/yum
Warranty Execute the Environment configuration program. Installation packages required to install the Yocto
./scripts/host-prepare.sh
3. Generate P1010RDB Module
source./fsl-setup-poky-m P1010rdb
Iv. Configuring cross-compilation environment and platform construction
There are the following six compilation modes, this time we use Fsl-image-minimal first.
- Fsl-image-minimal:contains basic packages to boot up a board
- Fsl-image-core:contains common open source packages and FSL specific packages.
- Fsl-image-full:contains all packages in the full package list.
- Fsl-image-flash:contains all the user space apps needed to deploy the fsl-image-full image to a USB stick, hard drive, or Other large physical media.
- Fsl-toolchain:the Cross Compiler binary package
- Package-name (USDPAA): Build a specific package
bitbake fsl-image-minimal
After a long wait, finally compiled. A compiled file system, kernel image, and drive tree are generated under the/home/hello/qoriq-sdk-v1.2-20120614-yocto/build_p1010rdb_release/tmp/deploy/images path.
It is recommended to reserve enough space here. The smallest image uses nearly 20G of space.
Yocto Building the P1010RDB board Linux system