Real-time performance monitoring tool for Linux

Recently we encountered with one of the beautiful tool we could get for monitoring Linux’s real time parameters such as CPU usage, RAM usage etc. This tool monitors following parameters, CPU usage, interrupts, softirqs and frequency (total and per core)RAM, swap and kernel memory usage (including KSM and kernel memory deduper)Disks (per disk: I/O, operations, … Read more

How to check which header belongs to which package in ubuntu

In Ubuntu, there is a way to identify which header file belongs to which package so if you encountered an error as “header file not found” you can install the package to resolve the error, Just follow below steps, sudo apt-get install apt-file sudo apt-file update Now lets try to identify which packages contain “sys/types.h” … Read more

Understanding gcc compilation steps : Linux compilation steps

Copy paste the below shell script and execute on your terminal. $ vim Copy below highlighted code and run the script as, $ bash ————- code start ——————— #!/bin/bash echo “ For any given input file, the file name suffix determines what kind of compilation is done: file.c C source code that must … Read more

How kernel images are built / compiled

/bin/bash scripts/ arm-linux-gnueabihf-ld -EL -p –no-undefined -X –pic-veneer –build-id LD vmlinux.o scripts/mod/modpost -m -a -o ./Module.symvers -S vmlinux.o GEN .version /bin/bash ./scripts/mkcompile_h include/generated/compile.h \“arm” “y” “” “arm-linux-gnueabihf-gcc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-dwarf2-cfi-asm -mabi=aapcs-linux -mno-thumb-interwork -mfpu=vfp -funwind-tables -marm -D__LINUX_ARM_ARCH__=6 -march=armv6k -mtune=arm1136j-s -msoft-float -Uarm -fno-delete-null-pointer-checks -O2 –param=allow-store-data-races=0 -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -fno-var-tracking-assignments … Read more

Cross compiling Linux kernel for Beagleboard

We assume, we are compiling for omap3 beagleboard embedded hardware platform, $ cd /home/devbee $ mkdir beagleboard $ cd beagleboard Clone the kernel $ git clone Download toolchain $ wget -c Extract Toolchain $ tar xvf  gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux.tar.xz Now, use the below script to compile and generate uImage, $ vim $ source

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