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/mydistro-image.bb 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

yocto : create a meta layer by manual procedure

In our another post “Create meta layer using yocto scripts” we seen how you can automatically create meta layer using python scripts from yocto. In this post, we show similar but with manual efforts. Create a Directory:  Create the directory for your layer. While not strictly required, prepend the name of the folder with the string … Read more

What is yocto bbappend file ? Extending Recipes with .bbappend

A recipe that appends Metadata to another recipe is called a BitBake append file. A BitBake append file uses the .bbappend file type suffix, while the corresponding recipe to which Metadata is being appended uses the .bb file type suffix. You can use a .bbappend file in your layer to make additions or changes to … 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/lynxbee-core-image-minimal.bb ————————————————————- 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 dropbear_2015.68.bb https://dropbear.nl/mirror/dropbear-2015.68.tar.bz2DEBUG: Found bitbake path: ~/Desktop/devlab/poky/bitbakeNOTE: Fetching https://dropbear.nl/mirror/dropbear-2015.68.tar.bz2…DEBUG: unable to extract library name from ld-linux.so.3NOTE: Recipe dropbear_2015.68.bb 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