Yocto Project Introduction

Building Embedded Linux system is a complex task, you need to choose a toolchain, configure and build bootloader, kernel, file system and applications. It becomes more complex to maintain the process over more many products.

To build a system, you can use some tools like buildroot, crosstool, busybox and more

Yocto project helps to solve the problem

downloading the sources:

Setup

Test your system

 

Configuring the kernel

 

Building Packages

To see a list of available tasks for recipe run:

 

Adding a new packages to the images

Edit the poky/build/conf/local.conf and add the following:

 

To see the available packages run:

 

Creating a new recipe

 

Create a new directory in /meta/recipes-extended

 

Add files folder and put source file hello.c in that folder

 

Create a file hello_1.0.bb with the following content

 

 

To see the available images run:

 

create a standalone toolchain

 

after the build is finished find it in [build dir]/tmp/deploy/sdk

run the script: poky-glibc-x86_64-meta-toolchain-aarch64-toolchain-2.3.sh to install the toolchain

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *