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, 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

Monitor Memory, CPU usage, processes i.e. system resources on Linux

System administrators need to monitor their server to ensure proper functioning. The practice enables administrators to detect possible issues in advance and recover the system, before it causes any trouble. There are plenty of commands on Linux to monitor different system resources like cpu usage, memory usage, network, disk usage and so on. Popular ones … Read more

Understanding Libusb

How data can be transferred on the bus. To transfer data to or from a device, first a handle needs to be obtained to the device. libusb is a user-level library that may be used to implement client-side functionality for USB on Linux. libusb requires that the function namely usb_init() be called before any other … Read more

usbutils – USB userspace utilities for Linux, how to compile, install and use on Ubuntu

USButils is a collection of USB tools for use on Linux and BSD systems to query what type of USB devices are connected to the system. Clone the source code using below command, $ git clone git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usbutils.git $ cd usbutils/ first get usbhid-dump : $ git submodule init Submodule ‘usbhid-dump’ (https://github.com/DIGImend/usbhid-dump.git) registered for path ‘usbhid-dump’ … Read more

Convert an existing Android application to a library module

As we have seen in our post, “How to develop first android Application/App in Android Studio” where we developed our first simple android application, now within this post we will see how we can convert this same application as a library to create AAR file which we can use from any other application as library. … Read more