how to setup yocto in ubuntu 16.04

Required Version :

Minimum required verion is ubuntu 14.04 or ubuntu 16.04 LTS

 

Required packages :

 

sudo apt-get update

sudo apt-get upgrade

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

 

Cloning poky from git:

 

Create a Directory name “yocto-rocko”

$ mkdir yocto-rocko

$ cd yocto-rocko

Now Cloning the Yocto source from yoctoproject git source

 

yocto-rocko/$ git clone -b rocko git://git.yoctoproject.org/poky

yocto-rocko/$ source poky/oe-init-build-env

 

Build the basic image core-image-minimal. Which is the minimal rootfs imageof below 10 MB.

 

/yocto-rocko/build/$ bitbake core-image-minimal

 

Output Images:

/yocto-rocko/build/$ cd tmp/deploy/images/

 

 

Now you can flash the images to sdcard or nand or nfs boot.

This is the basic Build of Yocto. If you want to learn more click here.