Skip to content

Commit 232c156

Browse files
Merge pull request #2081 from decagondev/patch-2
Update yocto_build.md
2 parents dc251f7 + d7c24f4 commit 232c156

File tree

1 file changed

+14
-1
lines changed
  • content/learning-paths/embedded-and-microcontrollers/yocto_qemu

1 file changed

+14
-1
lines changed

content/learning-paths/embedded-and-microcontrollers/yocto_qemu/yocto_build.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,23 @@ Poky is a reference distribution of the Yocto Project. It is a great starting po
1919

2020
The first step is to install the packages required to build and run Yocto:
2121

22+
**older systems**
2223
```bash
2324
sudo apt update
2425
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 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+
```
2633
Now 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
2936
git clone git://git.yoctoproject.org/poky
3037
cd 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
```
3340
Next 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" }
8188
sed -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+
8396
With 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" }

0 commit comments

Comments
 (0)