Zuletzt aktualisiert am 5. November 2026
Reliable Embedded Systems - Robert Berger e.U. Rahmenwerk bauen & qemux86-64-master & bitbake-setup Werkzeug
Wichtigste Erkenntnisse
- Der Artikel erörtert die Auswirkungen der Tatsache, dass der poky-Masterzweig ab dem 7. November 2025 nicht mehr aktualisiert wird.
- Es werden zwei Optionen vorgestellt: individuelle Klone von BitBake und Layern oder die Verwendung des neuen Bitbake-Setup-Werkzeugs zur Erstellung von "Images", wobei der Schwerpunkt auf dem Bitbake-Setup-Werkzeug liegt.
- Der Schwerpunkt liegt auf der Erstellung eines 'core-image-minimal' für den 'qemux86-64'-Emulator unter Verwendung des Reliable Embedded Systems build framework.
- Benutzer können eine Schritt-für-Schritt-Anleitung zur Installation von Docker, zum Einrichten der Build-Umgebung und zum Ausführen von QEMU erwarten.
- Die Schlussfolgerung unterstreicht die Nützlichkeit eines "Build Containers" zur Erstellung von Images, die für die QEMU-Emulation geeignet sind.
Zielsetzungen
Kann die Reliable Embedded Systems - Robert Berger e.U. Yocto Project®/OpenEmbedded-Build-Umgebung und QEMU zusammenarbeiten? Oder brauchen wir echte Hardware? Schauen wir uns das mal an! Wir werden ein Image erstellen - ein "core-image-minimal" - für den qemux86-64-Emulator. Wir werden versuchen, das Image mit dem Emulator auszuführen. Seit dem 7. November 2025 wird der Master-Zweig des poky-Repositorys nicht mehr aktualisiert! Erforschen Sie die Gründe, warum der poky-Master-Zweig nicht mehr existiert und wie Sie die Standard-Ziele jetzt bauen können.
Der Master-Zweig von poky wird nicht mehr aktualisiert!

Option 1: Einzelne Klone von BitBake und layers
Eine Möglichkeit, damit umzugehen, ist die Verwendung einzelner Klone von bitbake, openembedded-core, meta-yocto und yocto-docs. Schauen Sie mal hier. Wir werden diesen Ansatz in diesem Artikel nicht behandeln.
Option 2: Verwendung des neuen bitbake-setup Werkzeug
Ausführlichere Informationen finden Sie in der offiziellen Dokumentation hier. Einige weitere Informationen zum Hintergrund dieser Änderung finden Sie hier und hier. Wir werden uns das genauer ansehen.
Voraussetzungen für die Verwendung des RES Build Framework (RES)
Angenommen, Sie haben bereits das Reliable Embedded Systems - Robert Berger e.U. Yocto Project®/OpenEmbedded Build Framework installiert, dann sind Sie in einer guten Position und können das Kapitel "Installieren Sie ein minimales Build Framework" überspringen. Ich beschreibe dies, da es meine Arbeitsweise ist, aber das ist nicht unbedingt das, was Sie tun möchten.
Installieren Sie ein minimales Build-Framework (RES)
Docker installieren
sudo apt install docker.io
sudo usermod -aG docker ${USER}
sudo reboot
Legen Sie ein Verzeichnis an, in dem Sie viel Platz haben
mkdir -p ~/projects/resy-playground
cd ~/projects/resy-playground
Bequemer Symlink auf dem Host
sudo ln -sf ~/projects/resy-playground /workdir
Möglicherweise müssen Sie einige Berechtigungen ändern.
Manifeste herunterladen
mkdir -p /workdir/sources
pushd /workdir/sources
git clone https://github.com/RobertBerger/manifests.git
popd
Bequemer Symlink auf dem Host zum Starten des Build-Containers
cd /workdir
ln -sf sources/manifests/resy-poky-container.sh resy-poky-container.sh
chmod +x resy-poky-container.sh
Auf dem Host-Rechner
Laden Sie das BitBake-Repository herunter
Für die Verwendung der bitbake-setup Werkzeug, das wir brauchen, um es zu bekommen, und es ist Teil des BitBake-Repositorys.
mkdir -p /workdir/sources/bitbake-new
cd /workdir/sources/bitbake-new
git clone https://github.com/openembedded/bitbake.git
Starten Sie den Docker-Build-Container und initialisieren Sie die Build-Umgebung
cd /workdir
./resy-poky-container.sh
Im Container
bitbake-setup --help
Schauen wir uns das Tool bitbake-setup an.
cd /workdir/sources/bitbake-new/bitbake
./bin/bitbake-setup --help
usage: bitbake-setup [-h] [-d] [-q] [--color COLOR] [--no-network] [--global-settings PATH] [--setting SECTION SETTING VALUE] {list,init,status,update,install-buildtools,settings} ...
BitBake setup utility. Run with 'init' argument to get started.
positional arguments:
{list,init,status,update,install-buildtools,settings}
list List available configurations
init Select a configuration and initialize a setup from it
status Check if the setup needs to be synchronized with configuration
update Update a setup to be in sync with configuration
install-buildtools Install buildtools which can help fulfil missing or incorrect dependencies on the host machine
settings List current settings, or set or unset a setting in a settings file (e.g. the default prefix and name of the top directory, the location of configuration registry,
downloads directory and other settings specific to a top directory)
options:
-h, --help show this help message and exit
-d, --debug Enable debug output
-q, --quiet Print only errors
--color COLOR Colorize output (where COLOR is auto, always, never)
--no-network Do not check whether configuration repositories and layer repositories have been updated; use only the local cache.
--global-settings PATH
Path to the global settings file.
--setting SECTION SETTING VALUE
Modify a setting (for this bitbake-setup invocation only), for example "--setting default top-dir-prefix /path/to/top/dir".
Use bitbake-setup <subcommand> --help to get help on a specific command
bitbake-setup init
./bin/bitbake-setup --setting default top-dir-prefix /workdir/build/poky-master-poky-distro_poky-machine_qemux86-64 init
Bitbake-setup is using /workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds as top directory.
/workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds looks like a new top directory. If you would like to use a different directory, answer "n" below and either:
1) Change the default bitbake-setup settings:
bitbake-setup settings set default top-level-prefix <PATH>
bitbake-setup settings set default top-level-name <NAME>
2) Pass one or more options on the command line to change the top level directory in that invocation only:
bitbake-setup --setting default top-dir-prefix <PATH> ...
bitbake-setup --setting default top-dir-name <NAME> ...
A common site.conf file will be created, please check it is correct before running builds
/workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds/site.conf
Proceed? (y/N): y
Available configurations:
1. poky-master Poky - The Yocto Project testing distribution configurations and hardware test platforms
2. oe-nodistro-master OpenEmbedded - 'nodistro' basic configuration
3. oe-nodistro-whinlatter OpenEmbedded - 'nodistro' basic configuration, release 5.3 'whinlatter' (supported until 2026-05-31)
4. poky-whinlatter Poky - The Yocto Project testing distribution configurations and hardware test platforms, release 5.3 'whinlatter' (supported until 2026-05-31)
Please select one of the above configurations by its number:
1
Available bitbake configurations:
1. poky Poky - The Yocto Project testing distribution
2. poky-with-sstate Poky - The Yocto Project testing distribution with internet sstate acceleration. Use with caution as it requires a completely robust local network with sufficient bandwidth.
Please select one of the above bitbake configurations by its number:
1
Target machines:
1. machine/qemux86-64
2. machine/qemuarm64
3. machine/qemuriscv64
4. machine/genericarm64
5. machine/genericx86-64
Please select one of the above options by its number:
1
Distribution configuration variants:
1. distro/poky
2. distro/poky-altcfg
3. distro/poky-tiny
Please select one of the above options by its number:
1
Run 'bitbake-setup init --non-interactive poky-master poky distro/poky machine/qemux86-64' to select this configuration non-interactively.
Enter setup directory name: [poky-master]
Initializing a setup directory in
/workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds/poky-master
Continue? (y/N): y
Fetching layer/tool repositories into /workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds/poky-master/layers
bitbake
openembedded-core
meta-yocto
yocto-docs
Setting up bitbake configuration in
/workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds/poky-master/build
This bitbake configuration provides:
Poky - The Yocto Project testing distribution
Usage instructions and additional information are in
/workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds/poky-master/build/README
To run builds, source the environment using
. /workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds/poky-master/build/init-build-env
Run 'bitbake-config-build enable-fragment <fragment-name>' to enable additional fragments or replace built-in ones (e.g. machine/<name> or distro/<name> to change MACHINE or DISTRO).
The bitbake configuration files (local.conf, bblayers.conf and more) can be found in
/workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds/poky-master/build/conf
Einrichtung der Build-Umgebung Versuch 1
source /workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds/poky-master/build/init-build-env
Poky - The Yocto Project testing distribution
Prüfung auf Konfigurationsfragmente
bitbake-config-build --help
NOTE: Starting bitbake server...
usage: bitbake-config-build [-d] [-q] [--color COLOR] [-h] <subcommand> ...
BitBake build configuration utility
options:
-d, --debug Enable debug output
-q, --quiet Print only errors
--color COLOR Colorize output (where COLOR is auto, always, never)
-h, --help show this help message and exit
subcommands:
<subcommand>
list-fragments List available configuration fragments
enable-fragment Enable a fragment in the local build configuration
disable-fragment Disable a fragment in the local build configuration
show-fragment Show the content of a fragment
disable-all-fragments
Disable all fragments in the local build configuration
Use bitbake-config-build <subcommand> --help to get help on a specific command
Fragmente auflisten
bitbake-config-build list-fragments
NOTE: Starting bitbake server...
Available built-in fragments:
machine/... Sets MACHINE = ...
distro/... Sets DISTRO = ...
Enabled built-in fragments:
distro/poky Sets DISTRO = "poky"
machine/qemux86-64 Sets MACHINE = "qemux86-64"
Available fragments in core layer located in /workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds/poky-master/layers/openembedded-core/meta:
Unused fragments:
core/yocto/root-login-with-empty-password Log in as root without password on serial console and over ssh (use with caution).
core/yocto/sstate-mirror-cdn Use prebuilt sstate artifacts for standard Yocto build configurations.
core/yocto-autobuilder/autobuilder-resource-constraints Resource constraint variables used on the Yocto Projects autobuilder
core/yocto-autobuilder/autobuilder Default variables used on the Yocto Projects autobuilder builds
core/yocto-autobuilder/multilib-mips64-n32 Enable a MIPS64 triarch multilib
core/yocto-autobuilder/multilib-x86-lib32 Enable an x86 lib32 multilib
core/yocto-autobuilder/multilib-x86-lib64 Enable an x86 lib64 multilib
Globalen sstate einschalten
bitbake-config-build show-fragment core/yocto/sstate-mirror-cdn
NOTE: Starting bitbake server...
/workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds/poky-master/layers/openembedded-core/meta/conf/fragments/yocto/sstate-mirror-cdn.conf:
BB_CONF_FRAGMENT_SUMMARY = "Use prebuilt sstate artifacts for standard Yocto build configurations."
BB_CONF_FRAGMENT_DESCRIPTION = "The Yocto Project has prebuilt artefacts available for standard build configurations. \
This fragment enables their use. This will mean the build will query the \
the network to check for artefacts at the start of builds, which does slow it down \
initially but it will then speed up the builds by not having to build things if they are \
present in the cache. It assumes you can download something faster than you can build it \
which will depend on your network. \
Note: For this to work you also need hash-equivalence passthrough to the matching server \
"
BB_HASHSERVE_UPSTREAM = 'wss://hashserv.yoctoproject.org/ws'
SSTATE_MIRRORS ?= "file://.* http://sstate.yoctoproject.org/all/PATH;downloadfilename=PATH"
bitbake-config-build enable-fragment core/yocto/sstate-mirror-cdn
NOTE: Starting bitbake server...
Fragment core/yocto/sstate-mirror-cdn added to /workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds/poky-master/build/conf/toolcfg.conf.
Fragment summary: Use prebuilt sstate artifacts for standard Yocto build configurations.
Fragment description:
The Yocto Project has prebuilt artefacts available for standard build configurations. This fragment enables their use. This will mean the build will query the the network to check for artefacts at the start of builds, which does slow it down initially but it will then speed up the builds by not having to build things if they are present in the cache. It assumes you can download something faster than you can build it which will depend on your network. Note: For this to work you also need hash-equivalence passthrough to the matching server
Anmeldung von root ohne Passwort zulassen
bitbake-config-build show-fragment core/yocto/root-login-with-empty-password
NOTE: Starting bitbake server...
/workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds/poky-master/layers/openembedded-core/meta/conf/fragments/yocto/root-login-with-empty-password.conf:
BB_CONF_FRAGMENT_SUMMARY = "Log in as root without password on serial console and over ssh (use with caution)."
BB_CONF_FRAGMENT_DESCRIPTION = "By default images are built such that root login is disabled \
(which is the preferred, secure default). However, for testing and development purposes it can \
be beneficial to be able to log in as root, both on serial console and over ssh connections, \
which is what this fragment enables. Use with great caution, and ideally only in tightly \
controlled local builds and CI testing environments, and never in artefacts that are deployed \
into products. \
"
EXTRA_IMAGE_FEATURES += "allow-empty-password empty-root-password allow-root-login"
bitbake-config-build enable-fragment core/yocto/root-login-with-empty-password
NOTE: Starting bitbake server...
Fragment core/yocto/root-login-with-empty-password added to /workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds/poky-master/build/conf/toolcfg.conf.
Fragment summary: Log in as root without password on serial console and over ssh (use with caution).
Fragment description:
By default images are built such that root login is disabled (which is the preferred, secure default). However, for testing and development purposes it can be beneficial to be able to log in as root, both on serial console and over ssh connections, which is what this fragment enables. Use with great caution, and ideally only in tightly controlled local builds and CI testing environments, and never in artefacts that are deployed into products.
Fragmente auflisten
bitbake-config-build list-fragments
NOTE: Starting bitbake server...
Available built-in fragments:
machine/... Sets MACHINE = ...
distro/... Sets DISTRO = ...
Enabled built-in fragments:
distro/poky Sets DISTRO = "poky"
machine/qemux86-64 Sets MACHINE = "qemux86-64"
Available fragments in core layer located in /workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds/poky-master/layers/openembedded-core/meta:
Enabled fragments:
core/yocto/root-login-with-empty-password Log in as root without password on serial console and over ssh (use with caution).
core/yocto/sstate-mirror-cdn Use prebuilt sstate artifacts for standard Yocto build configurations.
Unused fragments:
core/yocto-autobuilder/autobuilder-resource-constraints Resource constraint variables used on the Yocto Projects autobuilder
core/yocto-autobuilder/autobuilder Default variables used on the Yocto Projects autobuilder builds
core/yocto-autobuilder/multilib-mips64-n32 Enable a MIPS64 triarch multilib
core/yocto-autobuilder/multilib-x86-lib32 Enable an x86 lib32 multilib
core/yocto-autobuilder/multilib-x86-lib64 Enable an x86 lib64 multilib
Core-Image-Minimal-Versuch 1 aufbauen
bitbake core-image-minimal
ERROR: "Unable to use hash equivalence server at 'wss://hashserv.yoctoproject.org/ws' due to missing or incorrect python module:
ModuleNotFoundError("No module named 'websockets'")
Please install the needed module on the build host, or use an environment containing it:
- if you are using bitbake-setup, run 'bitbake-setup install-buildtools'
- openembedded-core layer contains 'scripts/install-buildtools' that can also be used
- or set up pip venv
You can also remove the BB_HASHSERVE_UPSTREAM setting, but this may result in significantly longer build times as bitbake will be unable to reuse prebuilt sstate artefacts.
Wie das Fehlerprotokoll nahelegt, sollten wir Folgendes tun: 'bitbake-setup install-buildtools'.
bitbake-setup install-buildtools
bitbake-setup install-buildtools
Bitbake-setup is using /workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds as top directory.
Buildtools archive is downloaded into /workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds/poky-master/buildtools-downloads/20251201183440 and its content installed into /workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds/poky-master/buildtools
INFO: Fetching buildtools installer
INFO: Fetching buildtools installer checksum
INFO: Checksum success
INFO: Making installer executable
Extended Build tools installer version 5.2.3
============================================
You are about to install the SDK to "/workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds/poky-master/buildtools". Proceed [Y/n]? Y
Extracting SDK......................done
Setting it up...done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
$ . /workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds/poky-master/buildtools/environment-setup-x86_64-pokysdk-linux
INFO: Setting up the environment
INFO: Testing installation
INFO: Installation successful. Remember to source the environment setup script now and in any new session.
Umgebung für Buildtools einrichten
Lassen Sie uns auch die Umgebung für die Buildtools einrichten.
source /workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds/poky-master/buildtools/environment-setup-x86_64-pokysdk-linux
Core-Image-Minimal-Versuch 2 aufbauen
bitbake core-image-minimal
Bei etwa 44 % bleibt er ein wenig stecken, wenn er den gemeinsamen Status überprüft.
Loading cache: 100% |##########################################################################################################################################################| Time: 0:00:00
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |########################################################################################################################################################| Time: 0:00:19
Parsing of 947 .bb files complete (0 cached, 947 parsed). 1944 targets, 56 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "2.16.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-22.04"
TARGET_SYS = "x86_64-poky-linux"
MACHINE = "qemux86-64"
DISTRO = "poky"
DISTRO_VERSION = "5.2.99+snapshot-ac7327583aef83fd400190506f3147623de38b68"
TUNE_FEATURES = "m64 x86-64-v3"
TARGET_FPU = ""
meta = "master:ac7327583aef83fd400190506f3147623de38b68"
meta-yocto-bsp
meta-poky = "master:b3b659263566c4d2f2813190e72d93f8598a4c47"
NOTE: Fetching uninative binary shim http://downloads.yoctoproject.org/releases/uninative/5.0/x86_64-nativesdk-libc-5.0.tar.xz;sha256sum=96045e8b1e242c8a849426a8506c7043f354b39f2bc0035192780e8205e23e9d (will check PREMIRRORS first)
Initialising tasks: 100% |#####################################################################################################################################################| Time: 0:02:24
Checking sstate mirror object availability: 100% |#############################################################################################################################| Time: 0:00:25
Sstate summary: Wanted 1970 Local 0 Mirrors 1965 Missed 5 Current 0 (99% match, 0% complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 4218 tasks of which 4203 didn't need to be rerun and all succeeded.
Jetzt sollten wir ein "core-image-minimal" haben. Wir werden versuchen, es im QEMU-Emulator auszuführen.
Auf dem Host-Rechner (RES)
Anpassen von resy-poky-container.sh
Sie müssen den Container verlassen und neu eingeben, wenn Sie die Datei unten nicht bereits geändert haben.
Dies ist eine spezielle Einstellung, um den Container im privilegierten Modus zu starten, was nur mit meinem Build-Framework notwendig ist, um QEMU auszuführen.
cd /workdir
vim ./resy-poky-container.sh
Ersetzen Sie USE_QEMU="no" mit USE_QEMU="yes".
diff --git a/resy-poky-container.sh b/resy-poky-container.sh
index 5153afa..f5f7408 100755
--- a/resy-poky-container.sh
+++ b/resy-poky-container.sh
@@ -8,7 +8,7 @@ USE_GUI="no"
USE_MIRROR="yes"
DOCKER_PULL="yes"
USE_ICECC="yes"
-USE_QEMU="no"
+USE_QEMU="yes"
#PRIVILEGED="--privileged"
PRIVILEGED=""
#EXTRA_MOUNTS="yes"
Öffnen Sie eine privilegierte Sitzung, die für die Ausführung von QEMU geeignet ist
Öffnen Sie eine neue Shell auf dem Host.
cd /workdir/sources/manifests
./root-in-poky-container.sh
Im Container (als Wurzel) (RES)
Einrichten der richtigen Umgebung
source /workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds/poky-master/build/init-build-env
source /workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds/poky-master/buildtools/environment-setup-x86_64-pokysdk-linux
QEMU im nicht grafischen Modus starten
Im Docker-Container (als root)
runqemu nographic snapshot
runqemu - INFO - Running bitbake -e ...
runqemu - INFO - Decompressing /workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds/poky-master/build/tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.rootfs-20251201183621.ext4.zst to /workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds/poky-master/build/tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.rootfs-20251201183621.ext4
/workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds/poky-master/build/tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.rootfs-20251201183621.ext4.zst: 42641408 bytes
runqemu - INFO - Continuing with the following parameters:
KERNEL: [/workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds/poky-master/build/tmp/deploy/images/qemux86-64/bzImage]
MACHINE: [qemux86-64]
FSTYPE: [ext4]
ROOTFS: [/workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds/poky-master/build/tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.rootfs-20251201183621.ext4]
SNAPSHOT: [Enabled. Changes on rootfs won't be kept after QEMU shutdown.]
CONFFILE: [/workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds/poky-master/build/tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.rootfs-20251201183621.qemuboot.conf]
runqemu - INFO - Setting up tap interface under sudo
runqemu - INFO - Network configuration: ip=192.168.7.2::192.168.7.1:255.255.255.0::eth0:off:8.8.8.8 net.ifnames=0
runqemu - INFO - Running /workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds/poky-master/build/tmp/work/x86_64-linux/qemu-helper-native/1.0/recipe-sysroot-native/usr/bin/qemu-system-x86_64 -device virtio-net-pci,netdev=net0,mac=52:54:00:12:34:02 -netdev tap,id=net0,ifname=tap0,script=no,downscript=no -object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0 -drive file=/workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds/poky-master/build/tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.rootfs-20251201183621.ext4,if=virtio,format=raw -usb -device usb-tablet -usb -device usb-kbd -cpu Skylake-Client -machine q35,i8042=off -smp 4 -m 256 -snapshot -serial mon:stdio -serial null -nographic -kernel /workdir/build/poky-master-poky-distro_poky-machine_qemux86-64/bitbake-builds/poky-master/build/tmp/deploy/images/qemux86-64/bzImage -append 'root=/dev/vda rw ip=192.168.7.2::192.168.7.1:255.255.255.0::eth0:off:8.8.8.8 net.ifnames=0 console=ttyS0 console=ttyS1 oprofile.timer=1 tsc=reliable no_timer_check rcupdate.rcu_expedited=1 swiotlb=0 '
runqemu - INFO - Host uptime: 770778.17
SeaBIOS (version rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org)
iPXE (http://ipxe.org) 00:02.0 CA00 PCI2.10 PnP PMM+0EFC69C0+0EF269C0 CA00
Booting from ROM..
[ 0.000000] Linux version 6.16.11-yocto-standard (oe-user@oe-host) (x86_64-poky-linux-gcc (GCC) 15.2.0, GNU ld (GNU Binutils) 2.45.0.20250908) #1 SMP PREEMPT_DYNAMIC Mon Oct 6 13:50:41 5
[ 0.000000] Command line: root=/dev/vda rw ip=192.168.7.2::192.168.7.1:255.255.255.0::eth0:off:8.8.8.8 net.ifnames=0 console=ttyS0 console=ttyS1 oprofile.timer=1 tsc=reliable no_timer_c
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
...
[ 2.541196] md: ... autorun DONE.
[ 2.586200] EXT4-fs (vda): mounted filesystem cd88b20c-3447-4d46-aa20-085686c4bfbb r/w with ordered data mode. Quota mode: disabled.
[ 2.587073] VFS: Mounted root (ext4 filesystem) on device 253:0.
[ 2.589326] devtmpfs: mounted
[ 2.617062] usb 2-2: new high-speed USB device number 3 using ehci-pci
[ 2.747690] Freeing unused kernel image (initmem) memory: 3596K
[ 2.748581] Write protecting the kernel read-only data: 26624k
[ 2.750796] Freeing unused kernel image (text/rodata gap) memory: 668K
[ 2.751459] Freeing unused kernel image (rodata/data gap) memory: 56K
[ 2.752694] Run /sbin/init as init process
[ 2.760269] input: QEMU QEMU USB Keyboard as /devices/pci0000:00/0000:00:1d.7/usb2/2-2/2-2:1.0/0003:0627:0001.0002/input/input2
[ 2.818045] hid-generic 0003:0627:0001.0002: input: USB HID v1.11 Keyboard [QEMU QEMU USB Keyboard] on usb-0000:00:1d.7-2/input0
INIT: version 3.14 booting
Starting udev
[ 3.568490] udevd[140]: starting version 3.2.14
[ 3.653429] udevd[141]: starting eudev-3.2.14
[ 4.360739] EXT4-fs (vda): re-mounted cd88b20c-3447-4d46-aa20-085686c4bfbb.
INIT: Entering runlevel: 5
Configuring network interfaces... ip: RTNETLINK answers: File exists
Starting syslogd/klogd: done
Poky (Yocto Project Reference Distro) 5.2.99+snapshot-ac7327583aef83fd400190506f3147623de38b68 qemux86-64 /dev/ttyS0
Type 'root' to login with superuser privileges (no password will be asked).qemux86-64
qemux86-64 login:
Sie können sich als root und ohne Passwort anmelden.
qemux86-64 login: root
WARNING: Poky is a reference Yocto Project distribution that should be used for
testing and development purposes only. It is recommended that you create your
own distribution for production use.
root@qemux86-64:~# cat /proc/version
Linux version 6.16.11-yocto-standard (oe-user@oe-host) (x86_64-poky-linux-gcc (GCC) 15.2.0, GNU ld (GNU Binutils) 2.45.0.20250908) #1 SMP PREEMPT_DYNAMIC Mon Oct 6 13:50:41 UTC 2025
root@qemux86-64:~# cat /etc/issue
Poky (Yocto Project Reference Distro) 5.2.99+snapshot-ac7327583aef83fd400190506f3147623de38b68 \n \l
Type 'root' to login with superuser privileges (no password will be asked).\n
root@qemux86-64:~# cat /proc/cmdline
root=/dev/vda rw ip=192.168.7.2::192.168.7.1:255.255.255.0::eth0:off:8.8.8.8 net.ifnames=0 console=ttyS0 console=ttyS1 oprofile.timer=1 tsc=reliable no_timer_check rcupdate.rcu_expedited=1
root@qemux86-64:~# lsmod
Module Size Used by
Wenn Sie sich fragen, warum keine Kernel-Module angezeigt werden, sehen Sie hier nach.
Sie können das System wie gewohnt herunterfahren
root@qemux86-64:~# shutdown -h now
Schlussfolgerung
Dies ist nur ein kleines Beispiel dafür, wie ein "Build Container" verwendet werden kann, um ein für den QEMU-Emulator geeignetes "Image" zu erstellen. Darüber hinaus gibt es einen kleinen Trick, wie man den Emulator innerhalb eines Containers laufen lassen kann.
Poky ist die Referenzimplementierung des Yocto Project®.
Verwandte Links
Anhang
Ein Blog-Beitrag, der beschreibt, wie man den Upstream-Kernel ohne das Yocto Project® baut, ist hier zu finden. Wenn Sie wissen wollen, wie Embedded Linux funktioniert, schauen Sie hier nach. Um mehr über das Yocto Project® zu erfahren, schauen Sie hier.