Create a Dual Partition SD Card with Linux / Ubuntu

Start ‘fdisk’. For me, the SD card reader/writer has the SD card show up on /dev/sdc. I recommend you insert a properly formatted card and execute ‘mount’ or ‘df’ to figure out what device your SD card shows up under. You’ll need to ‘umount’ the drives before you can run ‘fdisk’. Be sure to choose … 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

Compiling yocto poky for qemuarm and running qemuarm

Below steps defines the procedure for compiling yocto poky source for building qemu arm binaries, $ mkdir ~/Desktop/devlab/yocto/metadata/ $ cd ~/Desktop/devlab/yocto/metadata/ $ git clone git://git.yoctoproject.org/poky poky $ cd poky $ git checkout -b fido origin/fido Here, we have used poky / yocto fido version, $ cd ~/Desktop/devlab/yocto/metadata/ $ mkdir build $ source oe-init-build-env ~/Desktop/devlab/yocto/metadata/build You had … Read more

Yocto: Where temporary source code resides for a package during build

During a build, the unpacked temporary source code used by recipes to build packages is available in the Build Directory as defined by the S variable. Below is the default value for the S variable as defined in the meta/conf/bitbake.conf configuration file in the Source Directory: S = “${WORKDIR}/${BP}” You should be aware that many recipes override … Read more

Creating a New BSP Layer Using the yocto-bsp Script

The below steps gives details about how to create a custom BSP layer with yocto, $ mkdir ~/Desktop/devlab/yocto/metadata/ $ cd ~/Desktop/devlab/yocto/metadata/ $ git clone git://git.yoctoproject.org/poky poky $ cd poky $ git checkout -b fido origin/fido Here, we have used poky / yocto fido version, $ source oe-init-build-env You had no conf/local.conf file. This configuration file … Read more

How to create a native daemon and run from init.rc in Android

Android’s init is located at the root of the filesystem i.e. /init and also it uses different naming conventions than normal linux init, so its advised to first try and understand the details of android init Language, from system/core/init/readme.txt you can also check in the source code you have or click the link here. Now, … Read more

Using hcitool to get bluetooth device information

Below commands are shown for communication between Linux Laptop and Samsung Mobile to get Mobile bluetooth device information using hcitool. For this, first make sure laptop bluetooth is turned ON and then switch ON the Bluetooth of Mobile and Make it discoverable/visible to all nearby bluetooth devices. Lets try to understand what is hcitool, $ … Read more

How to solve : WARNING: QA Issue: network-manager-applet rdepends on modemmanager, but it isn’t a build dependency? [build-deps]

Following are the errors which you may get while compiling bitbake and its solutions, Error :  WARNING: QA Issue: network-manager-applet rdepends on modemmanager, but it isn’t a build dependency? [build-deps] Solution : Open the network-manager-applet recipe and add RDEPENDS on modemmanager, as RDEPENDS_${PN} =+ “modemmanager” Note: This error we observed for network-manager-applet which we were … Read more

Compiling Android application as part of AOSP source code

This post details about how you can integrate your Android application as part of Android OpenSource Build system to get it compiled using command line. Normally Android applications are developed using Android Studio and it generates build.gradle to configure and compile the application, but when you want to get this same application compiled as part … Read more

Bitbake packages compilation process

Compilation of Any package using bitbake goes through stages as mentioned in below image, 1. do_fetch – This downloads the source code of packages from remote location, use below command to fetch package source, $ bitbake -c fetch package_name 2. do_unpack – This extracts the source code of tar/zip, use below command to unpack package source, $ bitbake … Read more