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 https://github.com/madisongh/meta-golang 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

Block external network download for Yocto using BB_NO_NETWORK

As we have seen in “Use local mirror to build yocto filesystem from internal server” if you have setup the yocto to download from local mirrors and now it seems everything is fine and you no longer need to download external source code, we can setup yocto to make sure it is really not reaching … 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/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