Jump to content

Yocto/GettingStarted: Difference between revisions

From KDE Community Wiki
Cola (talk | contribs)
Cola (talk | contribs)
Line 14: Line 14:


== Preparation for Yocto Build ==
== Preparation for Yocto Build ==
TODO
Here we do a few things:
 
# Prepare a Docker container with the required Yocto dependencies, in which the Yocto build will happen.
# Checkout a configuration of the KDE Demo image and set it up
 
=== Preparation of Docker Container ===
 
The basic source code repository for this step is `kde:packaging/yocto-manifest` (https://invent.kde.org/packaging/yocto-manifest). Select a location where you have a lot (and this really means >200 GB) of free space. In the following, we assume that `/opt/yocto` is such a location; just replace it in the commands if it is different.
<pre>
cd /opt/yocto
git clone kde:packaging/yocto-manifest manifest
</pre>
 
== Your First Yocto Build ==

Revision as of 14:15, 16 July 2023

Getting Started

This page is supposed to give a simple to follow guide of the first steps one have to do to assemble a setup for embedded development, preparing a first build via Yocto, build it and test-run it on the development device.

Material Needed

Embedded development always have the problem that you need some material additional to a development computer.

The most important components that one always should have:

  • development board
  • power supply for the development board
  • micro SD card as main storage of the development board
  • a micro SD card writer/reader
  • a RS232-USB adapter for low level debugging of startup problems of the development board

Preparation for Yocto Build

Here we do a few things:

  1. Prepare a Docker container with the required Yocto dependencies, in which the Yocto build will happen.
  2. Checkout a configuration of the KDE Demo image and set it up

Preparation of Docker Container

The basic source code repository for this step is `kde:packaging/yocto-manifest` (https://invent.kde.org/packaging/yocto-manifest). Select a location where you have a lot (and this really means >200 GB) of free space. In the following, we assume that `/opt/yocto` is such a location; just replace it in the commands if it is different.

cd /opt/yocto
git clone kde:packaging/yocto-manifest manifest

Your First Yocto Build