How to find out which Linux driver is hogging my GPIO

On the Boundary Devices kernel, and maybe others, you can use cat /sys/kernel/debug/gpio to get a list of the mapped gpios, their states, and name given when it was allocated. You can grep the kernel source for the name and find out what module grabbed it. root@nitrogen6x:/opt# cat /sys/kernel/debug/gpio GPIOs 0-31, platform/209c000.gpio, 209c000.gpio: gpio-2 (flexcan-trx-stby … Read more

Linux kernel device driver programming [closed]

Depends on your current skills. If you’re really new to Linux, perhaps you should start with user space system programming with Advanced Linux Programming. You’ll get good knowledge of Unix system calls and other concepts such as signals, processes/threads and so on with this free resource. This is a must (understanding the user space API) … Read more

BSP vs Device-Drivers

I see the relationship between BSPs and devices drivers as “has-a”. Board support packages include device drivers. The differences between BSPs & kernels isn’t easy to distinguish. A kernel translates instructions to the hardware. Kernels are often written to particular families of hardware, so they’re not as portable or generic as they seem. It amounts … Read more

tech