How to install Yocto Project (Ubuntu)


Install essential environment
$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3 xterm

Download Poky through git
$ git clone git://git.yoctoproject.org/poky

Move Poky folder
$ cd poky

Show git tag
$ git tag

Get all required commit
$ git fetch --tags

Checkout your tag
$ git checkout tags/yocto-3.1 -b my-yocto-3.1

Set to build environment
$ source oe-init-build-env

Modify build/conf/local.conf
Set to fit your PC cpu core count (If you don't set this up, it will operate at 1 core and the build will take a very long time)

BB_NUMBER_THREADS = "4"
PARALLEL_MAKE = "-j 4"
SSTATE_MIRRORS = "\
     "

Bitbake
$ bitbake core-image-sato

Run
$ runqemu qemux86-64



This is a summary of yoctoproject.org, and Yoctoproject is the best data related to Yocto.

#Yocto #install Yocto #YoctoProject #Linux #Build environment #Ubuntu

No comments:

Post a Comment

Apartment Buying Guide 2025: Shocking Red Flags You Should NEVER Ignore!

 🏙️ Apartment Buying Guide 2025: Shocking Red Flags You Should NEVER Ignore! 🚨 Are you thinking about buying an apartment in 2025? 🏢  It’...