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
19
19
20
20
The first step is to install the packages required to build and run Yocto:
21
21
22
+ ** older systems**
22
23
``` bash
23
24
sudo apt update
24
25
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
25
26
```
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
+ ```
26
33
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.
27
34
28
35
``` bash
29
36
git clone git://git.yoctoproject.org/poky
30
37
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
32
39
```
33
40
Next source the script as shown below to initialize your build environment for your 64-bit Arm example machine QEMU target:
34
41
@@ -80,6 +87,12 @@ You will now be in the `build-qemu-arm64` directory which is your build director
80
87
``` bash { cwd="poky" }
81
88
sed -i ' /qemuarm64/s/^#//g' conf/local.conf
82
89
```
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
+
83
96
With the right machine now selected, proceed to building the minimal core image for your target.
84
97
85
98
``` 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