[LINUX] Run Yocto on Ubuntu using QEMU.

■ What to do

Put Yocto's development environment on Ubuntu.

I plan to put Yocto in other devices, but I don't know much about Yocto in the first place, so I would like to run a virtual Yocto using QEMU.

■ Tried environment

2020/09/04 Intel® Core™ i5-4570 CPU @ 3.20GHz × 4 Memory 32GB Ubuntu 20.04.1 LTS (64bit)

■ Notes

It may not work on Ubuntu on a virtual environment. Real environment is recommended.

■ How to do

● Installation of environment

sudo apt‑get install sed wget subversion git‑core coreutils \
     unzip texi2html texinfo libsdl1.2‑dev docbook‑utils fop gawk \
     python‑pysqlite2 diffstat make gcc build‑essential xsltproc \
     g++ desktop‑file‑utils chrpath libgl1‑mesa‑dev libglu1‑mesa‑dev \
     autoconf automake groff libtool xterm libxml‑parser‑perl

● Clone poky

git clone https://git.yoctoproject.org/git/poky

When specifying the version ...

git checkout -b yocto-3.1 yocto-3.1

● Initialization of build environment

source poky/oe-init-build-env

● Compiling Yocto core

bitbake core-image-minimal

image.png

Compile using 100% CPU4 core. It seems too strict to compile in a virtual environment.

It took 2 hours to compile.

● Start with QEMU

runqemu tmp/deploy/images/qemux86-64/

image.png

The terminal has started. I see, is this Yocto?

● Try logging in

I tried to find out what the default is.

User: root Pass: None

Hey.

image.png

Hey.

■ Try compiling other cores.

bitbake core-image-sato

Since sato is the minimum configuration (maybe) including GUI function, try compiling it.

runqemu tmp/deploy/images/qemux86-64/

image.png

Compiling ... 1 hour ... eh? Is core-image-sato faster than core-image-minimal? why? ??

So, Yocto started up using QEMU on Ubuntu. Chan Chan!

■ Summary

For the time being, I was able to build Yocto with the default settings, and then run it on QEMU. Knowing the compile time allows you to modify or change something I know how long I should wait.

However, it is unknown why minimal is slow (or sota is fast). What's the difference?

Well, the environment is ready for the time being. Will you learn how to use it? See you soon.

Recommended Posts

Run Yocto on Ubuntu using QEMU.
Run Jupyter on Ubuntu on Windows
Run FreeBSD on Linux + qemu
Install and run dropbox on Ubuntu 20.04
Introducing Python using pyenv on Ubuntu 20.04
Preparing python using vscode on ubuntu
Using a serial console on Ubuntu 20.04
Run Radeon GPU on Windows on QEMU / KVM
Run bootgen on Debian GNU / Linux, Ubuntu
Run servomotor on Raspberry Pi 3 using python
Run Linux on ARM architecture with QEMU
Shebang on Ubuntu 20.04
CPU usage is 100% when using pygame on Ubuntu 16.04
Build Python3.5 + matplotlib environment on Ubuntu 12 using Anaconda
Python development on Ubuntu on AWS EC2 (using JupyterLab)
How to run MeCab on Ubuntu 18.04 LTS Python
SRF02 ultrasonic sensor run on pyton using i2c
Notes for using TensorFlow on Bash on Ubuntu on Windows
Run Tensorflow from Jupyter Notebook on Bash on Ubuntu on Windows
Set up a file server on Ubuntu 20.04 using Samba
Install Apache 2.4 on Ubuntu 19.10 Eoan Ermine and run CGI
Run Django on PythonAnywhere
Install PySide2 on Ubuntu
Run mysqlclient on Lambda
Install JModelica on Ubuntu
Error around GUI when using PyQt5 on Ubuntu (WSL2)
Troublesome story when using Python3 with VScode on ubuntu
Run OpenMVG on Mac
build Python on Ubuntu
Install Python 3.3 on Ubuntu 12.04
Installing pyenv on ubuntu 16.04
Install Theano on Ubuntu 12.04
Install angr on Ubuntu 18.04
Install pip / pip3 on Ubuntu
Until building a Python development environment using pyenv on Ubuntu 20.04
Don't ask for SSH passphrases using keychain on Ubuntu (linux)
Using X11 with ubuntu18.04 (C)
Run Openpose on Python (Windows)
Use matplotlib on Ubuntu 12 & Python
SoftwareRAID 0 on SereneLinux (Ubuntu 18.04 Desktop)
I installed ROS on Ubuntu 18.04
USB Wifi on Ubuntu 20.04LTS
Set matplotlib font on ubuntu
Try using OpenCV on Windows
[Django] Notes on using django-debug-toolbar
Rebuild kernel on Ubuntu 20.04 (on Azure)
Operate ubuntu on VScode (windows10)
Run Tensorflow 2.x on Python 3.7
Create command shortcuts on Ubuntu 16.04
Install GoLand IDE on Ubuntu
Display GUI messages on Ubuntu
Install OpenCV on Ubuntu + python
wsl Install PostgreSQL on Ubuntu 18.04
Run Python CGI on CORESERVER
Run unix command on python
Introducing TensorFlow on Ubuntu + Python 2.7
Process on GPU using chainer.cuda.elementwise
[ROS] Install ROS (melodic) on Ubuntu (18.04)
Install Caffe on Ubuntu 14.04 (GPU)
Run IPython Notebook on Docker
Install Docker on WSL Ubuntu 18.04