Setting up Ubuntu development machine for Yocto

The Yocto Project is an open-source collaboration project whose focus is developers of embedded Linux systems. Among other things, the Yocto Project uses a build host based on the OpenEmbedded (OE) project, which uses the BitBake tool, to construct complete Linux images. The BitBake and OE components combine together to form a reference build host, … Read more

Building Yocto for Raspberry Pi / Creating Embedded Linux for RPi using Yocto

For proceeding to this post: Setting up ubuntu development machine for Yocto is a prerequisite and make sure you have all those packages installed in ubuntu. Note: This compilation is done for Yocto 2.6 i.e codenamed “thud” which is last known stable version available for RaspberryPi. Although currently Yocto 2.7 (codename – warrior) is available … Read more

Images recipes for poky / yocto and creating complete BSP Images using those

Yocto / poky provides following image recipes by default, sources of this you can find in poky/meta/recipes-core/images directory, Now, to compile any of this images, you need to source environment variables from top of “poky” directory as, then type “bitbake image-recipe-name” as for example, if we want to create image which provides minimal rootfs, then … Read more

Creating yocto bitbake recipe using ” devtool add ” command

The devtool add command automatically creates a recipe based on the source tree with which you provide it. Currently, the command has support for the following: Autotools (autoconf and automake) CMake Scons qmake Plain Makefile Out-of-tree kernel module Binary package (i.e. “-b” option) Node.js module Python modules that use setuptools or distutils Apart from binary … Read more

Modifying bitbake/yocto initscripts to start wifi during boot

We will need to change the wpa-supplicant.conf file as below, by modifying poky/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/wpa_supplicant.conf-sane Now, once we modified wpa_supplicant configuration files, we need to create an script which will start the wpa_supplicant application which uses this conf file to connect to WiFi access point. As you can see above, if you don’t have DHCP enabled and … Read more

Bitbake / Yocto recipes for cross compiling golang program

For compiling simple golang helloworld program as part of yocto build framework, we need to download meta-golang from and use this meta layer along with poky to build our written bitbake recipes for cross compilation of golang program. PLEASE NOTE: Starting with OE-Core ‘rocko’ (Yocto Project 2.4), Go support is available directly in OE-Core, … Read more

Use local mirror to build yocto file system from internal server

As we have seen in “Configure yocto to download from local mirror to save bandwidth” one way to setup your local server to build yocto is to modify PREMIRRORS and MIRRORS arguments permanantly in conf/distro/my_platform.conf but if we want to change between local mirrors for some reason, instead of changing distro configurations we can override … Read more

How to enable Wifi with yocto

If you want to have WiFi integrated with yocto root filesystem, follow below mentioned steps, Open file, meta-mylayer/images/ and add below mentioned line, This will add wifi into the root filesystem but unless you have a proper network manager and UI, you will not be able to connect to internet. So, we will follow manual … Read more

Subscribe for New Post Updates

Join 211 other subscribers