Core Kernel Archive

Analysing Linux memory utilisation using proc meminfo file

/proc/meminfo Provides valuable information about the system’s RAM usage. (utilization of run time memory).  This varies by architecture and compile options.  The following is from a 4GB RAM, 64bit Ubuntu Desktop $ cat /proc/meminfo MemTotal: 4103420 kB MemFree: 449084 kB MemAvailable: 1149688 kB Buffers:...Read More

How to compile dts to dtb from Linux kernel and manually

Lets say, you have been trying to compile Linux kernel source code for Raspberry Pi following steps from “Cross Compilation and Booting of Linux kernel for Raspberry Pi3 – Manual Compilation” although most of the steps remains same in general for other ARM architectures...Read More

How to Compile and Install device-tree-compiler On Ubuntu

If you want to install device-tree-compiler i.e. dtc command on ubuntu, use following command, $ sudo apt-get install device-tree-compiler This command will install two command “dtc” and “dtdiff” of which dtc is a device tree compiler whereas dtdiff helps to take diff between two...Read More

Debug levels for Linux kernel PrintK

If you have already tried to write the first kernel module from port “Writing first Linux kernel Module and understanding Kernel module compilation, loading and unloading” , you might have seen that in Linux kernel we used “printk” whereas we use “printf” into the...Read More