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, DISTRO_FEATURES += “wifi” 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 … Read more

How to add locale into embedded yocto root filesystem

Recently we faced some issues with locale and when debugged using strace it shows following error open(“/usr/share/X11/locale/locale.alias”, O_RDONLY) = -1 ENOENT (No such file or directory) open(“/usr/share/X11/locale/locale.dir”, O_RDONLY) = -1 ENOENT (No such file or directory) open(“/usr/share/X11/locale/locale.alias”, O_RDONLY) = -1 ENOENT (No such file or directory) open(“/usr/share/X11/locale/locale.dir”, O_RDONLY) = -1 ENOENT (No such file or … Read more

How to add timezone info to root filesystem using yocto

Recently while debugging some issues we found that we were missing timezone related files into yocto root filesystem, the debugging with strace shown the following error, open(“/usr/share/zoneinfo/UTC”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) The poky has a recipe for compiling the relevant files at poky/meta/recipes-extended/tzdata/ hence you can use below command to … Read more

How to Identify packages generated by the bitbake recipe ?

When trying to add new packages to your root file system image, we need to identify what are packages supported / generated by the bitbake recipe because Root file system images are created from packages. $ bitbake -e dropbear | grep ^PACKAGES= PACKAGES=”dropbear-dbg dropbear-staticdev dropbear-dev dropbear-doc dropbear-locale dropbear” Looking at this output, it becomes clear … Read more

Adding a new user, setting a password for new user and changing root password for Yocto

Created a new image recipe like below and named it as, recipes-images/images/ ————————————————————- inherit extrausersSUMMARY = “A small image just capable of allowing a device to boot.” IMAGE_INSTALL = “packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${CORE_IMAGE_EXTRA_INSTALL}” IMAGE_LINGUAS = ” “ LICENSE = “MIT” inherit core-image IMAGE_ROOTFS_SIZE ?= “8192” EXTRA_USERS_PARAMS = “\        useradd -P password124 lynxbee; \        usermod -P password124 … Read more

Creating a yocto recipe using recipetool script

$ recipetool -d create -o Found bitbake path: ~/Desktop/devlab/poky/bitbakeNOTE: Fetching…DEBUG: unable to extract library name from Recipe has been created; further editing may be required to make it fully functional. ————————————————— Now, if we open a newly automatically created recipe, it will be something like below & you can then … Read more

Create meta layer using yocto scripts

The yocto-layer script simplifies creating a new general layer. The default mode of the script’s operation is to prompt you for information needed to generate the layer: The layer priority. Whether or not to create a sample recipe. Whether or not to create a sample append file. Use the yocto-layer create sub-command to create a … Read more

Create a recipe for yocto using create-recipe script

Below commands shows a ways to create a bitbake recipe using yocto scripts, $ git clone git:// $ cd poky $ cd scripts $ ./create-recipe -r Downloading package: to       : /tmp/7r_bmRisurParsing content    ….Can NOT get license from package source files.Please update the LICENSE and LIC_FILES_CHKSUM manually.Create bb file: ~/poky/scripts/busybox/ Now, if you open … Read more

yocto : create a meta layer by manual procedure

Create a Directory:  Create the directory for your layer. While not strictly required, prepend the name of the folder with the string meta- . For example: meta-mylayermeta-GUI_xyzmeta-mymachine Lets say we want to create, meta-mylayer as name of custom layer. $ mkdir meta-mylayer Create a Layer Configuration File: Inside your new layer folder, you need to create a conf/layer.conf … Read more