Skip to content

Instantly share code, notes, and snippets.

@folkengine
Last active June 26, 2024 22:31
Show Gist options
  • Save folkengine/0189bb7371461a730456809650330cca to your computer and use it in GitHub Desktop.
Save folkengine/0189bb7371461a730456809650330cca to your computer and use it in GitHub Desktop.
  • Open linux env

To start with I am using Multipass.

Install Host Packages

https://docs.yoctoproject.org/brief-yoctoprojectqs/index.html#build-host-packages

$> sudo apt install gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 python3-sphinx libegl1-mesa libsdl1.2-dev python3-subunit mesa-common-dev zstd liblz4-tool file locales libacl1
$> sudo locale-gen en_US.UTF-8

Checkout Yocto Poky

$> git clone git://git.yoctoproject.org/poky
$> cd poky
$> git checkout -t origin/nanbield -b my-nanbield

Source Build Env

$> source oe-init-build-env

Add bitbake to your path

For instance, I have the following lines in my .zshrc

export POKY_HOME=~/src/git.yoctoproject.org/poky
export PATH=$PATH:$POKY_HOME/bitbake/bin

Build the Image

$> cd build
$> bitbake core-image-full-cmdline

Build Bundled QEMU

This comes from Setting up the Extensible SDK environment directly in a Yocto build

$> bitbake meta-ide-support
$> bitbake -c populate_sysroot gtk+3

Run the Built Image inside QEMU

$> cd [source]
$> source oe-init-build-env build
$> runqemu qemux86-64

Asides

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment