Yocto: bitbake build/populate sysroot

May 28, 2018

Yocto stops building the global sysroot (both native and cross) from version 2.6. To build any package yocto copies the sysroot as “recipes-sysroot” and “recipes-sysroot-native” into each WORKDIR. This stops the external application builders from using “tmp/sysroots/<MACHINE>” for cross compilation. To do the same way building external application using common sysroot and toolchain one need […]

Continue Reading

Bluetooth: List available controllers

May 26, 2018

This is the fist post in the series of blogs for Bluetooth in Linux. In this series we are going to cover mostly about Bluez and it’s provisions for Bluetooth functionality over DBUS (API’s in bluez/doc/). We will also cover few Bluetooth profiles like GAP, A2DP, AVRCP, PBAP in near future. Assumption: This series of […]

Continue Reading

Linux Kernel Source browsing using cscope

April 22, 2018

Source code browsing in large projects is always tedious job to narrow down. In repositories like Linux Kernel, where the source code grows everyday needs regular updating and indexing to keep the search efficient and correct. For browsing the source code in Linux Kernel, there are few options and built-in ways to remember when using […]

Continue Reading

Accessing UART in MSP430F5418

April 22, 2018

UART is the traditional serial communication protocol used. It offers only two pins RX and TX for sending and receiving characters serially. A microcontroller can have more than one UART. For instance MSP430F5418 microcontroller has two UART’s (UART and enhanced UART). Just read the desired controller datasheet for getting the info. There are two methods […]

Continue Reading

[Bash Tricks]: sudo to last run command

April 11, 2018

To re-run the previous command, we can use the below special way in bash. [crayon-5beb9478aaaf9719760669/] But the question is, why should i run ‘!!’ instead of using up arrow for previous command. One quick use case would be for running ‘sudo’. We often end up in ‘Permission denied’ error and re-run the same command using […]

Continue Reading

[Bash Tricks]: Editing wrongly typed command

April 11, 2018

  We often used to type a lengthy command and realize the error after running the command. To correct this error, either we used to re-type the whole command or edit (after up arrow). This can be easily handled with bash tricks by using ‘^’. Example: [crayon-5beb9478aaedb807308959/] Note the wrong spell ‘loong’ in destination path. […]

Continue Reading

[Bash Tricks]: Re-run a range of ‘history’ commands

April 11, 2018

Sometime we may want to run a range of commands which was run in the past (captured in ‘history‘ command). This can be achieved using ‘fc’ command. Run ‘history’ command to find the range you want to re-run. For example, range from 1000 to 1010. [crayon-5beb9478ab2bb872217175/] The above command will copy the range of commands […]

Continue Reading