Errors & Failures Archive

Error handling in C programs using errno and perror

The perror() function produces a message on standard error describing the last error encountered during a call to a system or library function. When a system call fails, it usually returns -1 and sets the variable errno to a value describing what went wrong....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 resolve error : dtc: command not found

When trying to compile uboot on ubuntu, we seen the following error, OBJCOPY u-boot.srec OBJCOPY u-boot-nodtb.bin ./scripts/dtc-version.sh: line 17: dtc: command not found ./scripts/dtc-version.sh: line 18: dtc: command not found *** Your dtc is too old, please upgrade to dtc 1.4 or newer Makefile:1450:...Read More

Finding list of installed files from a package in Linux

Recently we installed one package, but couldn’t understood which all files it installed on Ubuntu. You can use the command as, dpkg-query -L PACKAGE_NAME So, lets say, you want to identify which are files “openssh-server” package installed, then run the command as below, dpkg-query...Read More