How to recreate dts file from a running Android device ?

As we have seen in “How to cross compile static dtc for ARM” we are able to get the DTC cross compiled statically which we will push to the embedded target which exposes the device tree from proc file system. Using this statically compiled dtc, we will reverse engineer to create human readable DTS file … Read more

How to recreate dts file from live Embedded device ?

Sometimes it happens that you don’t have source code of the device on which you are working but want to know some kernel configurations or peripheral mappings etc in those case’s Linux kernel provides good insight through /proc filesystem. In this post also, we will try to showcase how you can regenerate dts file from … Read more

How to cross compile static dtc for ARM ?

As we seen in our previous post, “How to Compile and Install device-tree-compiler (DTC) On Ubuntu”, we could compile DTC ( Device Tree Compiler ) for Host machine i.e. Ubuntu In this post, we will describe what changes are required to get the DTC compiled to execute on embedded targets such as ARM. Since executing … Read more

How to resolve : fatal error: curses.h: No such file or directory

Whenever you are trying to do kernel menuconfig very first time after installation of Ubuntu, its chances that you will see the error as below, This error is due to that your ubuntu doesn’t have “ncurses” library installed. Ncurses is required for having menu like user interface onto the terminal.You can read more about ncurses … Read more

What is the difference between setup_irq and request_irq in Linux kernel interrupts ?

Timers are setup very early, before the request_irq() infrastructure has been initialised. Hence, setup_irq is used to initialises timer irqs, while normal drivers should use request_irq. setup_irq is defined in kernel/irq/manage.c as, whereas, request_irq is defined in include/linux/interrupt.h as request_threaded_irq is defined in kernel/irq/manage.c as,

How to check if Bluetooth device is UP or NOT using l2ping ?

If you want to know the bluetooth device you want to connect to is alive or not, i.e. whether that device’s Bluetooth is ON or not and whether it can respond to our other request like enquiry for information etc. For this l2ping helps us. L2ping sends a L2CAP echo request to the Bluetooth MAC … Read more

Scan, Pair, Connect to Bluetooth device from Ubuntu from command line using bluetoothctl

bluetoothctl is bluetooth control tool which allows us to make the host discoverable, scan other devices, pair to the scanned devices and also connect to those devices using command line utility on ubuntu. Follow below commands for the same. Commands are self explanatory, replace scaned mac address of your device instead of “6C:C4:D5:6C:C5:BC” whereever required.

How to resolve error : dtc: command not found

When trying to compile uboot on Ubuntu, we seen the following error, From the error it looks like we are unable to find “dtc” command, which actually is a “device tree compiler” So, we need to install it on ubuntu as, Now, lets verify that dtc is now installed,