File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
content/learning-paths/embedded-and-microcontrollers/yocto_qemu Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -19,16 +19,23 @@ Poky is a reference distribution of the Yocto Project. It is a great starting po
1919
2020The first step is to install the packages required to build and run Yocto:
2121
22+ ** older systems**
2223``` bash
2324sudo apt update
2425sudo apt-get install -y gawk wget git-core diffstat unzip texinfo build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint xterm python3-subunit mesa-common-dev lz4
2526```
27+ ** Ubuntu LTS Current**
28+ ** older systems**
29+ ``` bash
30+ sudo apt update
31+ sudo apt-get install -y gawk wget git-core diffstat unzip texinfo build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libgl1 libglx-mesa0 libsdl1.2-dev pylint xterm python3-subunit mesa-common-dev lz4
32+ ```
2633Now download the Poky reference distribution and checkout the branch/tag you wish to build. You will build ` yocto-4.0.6 ` in this example.
2734
2835``` bash
2936git clone git://git.yoctoproject.org/poky
3037cd poky
31- git checkout tags/yocto-4 .0.6 -b yocto-4 .0.6 -local
38+ git checkout tags/yocto-5 .0.10 -b yocto-5 .0.10 -local
3239```
3340Next source the script as shown below to initialize your build environment for your 64-bit Arm example machine QEMU target:
3441
@@ -80,6 +87,12 @@ You will now be in the `build-qemu-arm64` directory which is your build director
8087``` bash { cwd="poky" }
8188sed -i ' /qemuarm64/s/^#//g' conf/local.conf
8289```
90+
91+ ** NOTE** On Ubuntu systems with apparmor you will need to allow unprivilaged users for bitbake
92+ ``` bash
93+ echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
94+ ```
95+
8396With the right machine now selected, proceed to building the minimal core image for your target.
8497
8598``` bash { cwd="poky",env_source="poky/oe-init-build-env build-qemu-arm64" }
You can’t perform that action at this time.
0 commit comments