Code Monkey home page Code Monkey logo

yocto-training's Introduction

Yocto Project used when I do Yocto presentations and Yocto training

This repository provides examples used when I give Yocto presentations and Yocto training. It uses core-image-sato / core-image-minimal for a virtual x86-64 and ARM64 qemu machine to be able to test and show the results.

Before trying to use this, please see Yocto project quick build for setting up a native Linux host for building the image.

Below guide expect that your host machine is setup for Yocto build.

Background

This repo is provided as is, for helping others with Yocto training / presentations. All of the recipes in this git repo is released under MIT.

Getting Started

1. Clone this repo.

$ git clone --recurse-submodules https://github.com/frosteyes/yocto-training.git

2. Setup yocto.

Source the setup script. Optional select a build folder. If no build folder is selected a standard folder named build is created. Select target x86-64 setup_qemux86-64 or setup_qemuarm64:

$ cd yocto-training
$ source setup_qemuarm64 build_arm64

After you have sourced the setup, please look into the conf/local.conf file. Specifically the variables DL_DIR and SSTATE_DIR is relevant to save downloads for later, and prebuild in sstate cache.

3. Build image.

Run bitbake - here we just selet the basic image:

$ bitbake core-image-sato

First time it takes significant time, as it need to download all the source code, compile the host tools and next the complete linux image.

4. Run the image in QEMU.

When the build is done, it is just to run qemu:

$ runqemu

yocto-training's People

Contributors

frosteyes avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.