Linux Device Driver Programming With Beaglebone Black (LDD1)

Foundation course on practical Linux device driver programming

  • 0.0 (0 Reviews)
  • 0 Students
  • 151 Lessons
  • FastBit Embedded Brain Academy

Course Overview

==> This should be your very first course to dive into the exciting world of "Linux device drivers" <==

In this course you will learn ,

  1. Fundamentals Linux kernel module and syntax

  2. Character device driver theory and code implementation

  3. Platform bus, Platform device, and platform driver concepts

  4. Platform driver implementation

  5. Device tree from scratch

  6. Accessing device tree nodes from drivers

  7. Device instantiation through device tree nodes

  8. Device tree properties and node syntax

  9. Device tree overlays

  10. Overlays testing via u-boot

  11. Kernel synchronization services (Mutex, Spinlocks)

  12. Linux device model and sysfs

  13. Linux GPIO subsystem

  14. Linux pinctrl subsystem


Hardware Requirements:

1) For some exercises involving testing of GPIOs, pinctrl, device tree nodes, overlays, you need a board.

In this course, Beaglebone Black board is being used.

2) Mini USB cable to power BBB

3) USB to UART cable for serial connection with BBB

4) Micro SD card 8/16 GB

5) SD card reader

6) 16x2 LCD and 10K potentiometer

7) Jumper wires

8)Bread board


OS Requirements:

32/64 bit Ubuntu 18.04+ LTS


Learning order of FastBit Embedded Brain Academy Courses,

If you are a beginner in the field of embedded systems, then you can take our courses in the below-mentioned order.
This is just a recommendation from the instructor for beginners.

1) Microcontroller Embedded C Programming: absolute beginners(Embedded C)

2) Embedded Systems Programming on ARM Cortex-M3/M4 Processor(ARM Cortex M4 Processor specific)

3) Mastering Microcontroller with Embedded Driver Development(MCU1)

4) Mastering Microcontroller: TIMERS, PWM, CAN, RTC,LOW POWER(MCU2)

5) Mastering Microcontroller: STM32-LTDC, LCD-TFT, LVGL(MCU3)

6) Embedded System Design using UML State Machines(State machine)

7) Mastering RTOS: Hands-on FreeRTOS and STM32Fx with Debugging(RTOS)

8) ARM Cortex M Microcontroller DMA Programming Demystified(DMA)

9) STM32Fx Microcontroller Custom Bootloader Development(Bootloader)

10) Embedded Linux Step by Step using Beaglebone Black(Linux)

11) Linux device driver programming using Beaglebone Black(LDD1)


Other programming courses

1) Master The Rust Programming Language : Beginner To Advanced

See more

FAQ

FAQ area empty

Course curriculum

14 chương 151 bài học 21 giờ 49 phút 7 bài học thử miễn phí
Chương 1 Host and target setup
Chương 2 Linux kernel module
  • Introduction to Linux kernel module 4:15
  • User space Vs kernel space 1:44
  • LKM writing syntax 9:45
  • __init and __exit macros 6:41
  • LKM entry point registration and other macros 5:40
  • Hello World LKM 6:07
  • Building a Linux kernel module 13:13
  • Compilation and testing of an LKM 7:09
  • Testing of an LKM on target 7:51
  • Makefile 7:05
  • Intree building 14:55
  • Printk 13:56
Chương 3 Character device and driver
  • What is device driver ? 10:56
  • A char driver , char device and char device number 11:41
  • Dynamically allocating char device numbers 6:02
  • Pseudo character driver implementation 5:50
  • Character device registration 9:01
  • Character device registration contd. 3:19
  • Character driver file operation methods 24:20
  • Character driver file operation methods contd. 13:40
  • Implementing file operation methods 4:53
  • File operations structure initialization 4:43
  • Creating device files 23:22
  • Character driver cleanup function implementation 6:55
Chương 4 Character driver file operations implementation
  • Understanding read method 13:09
  • Understanding error codes 2:30
  • Read method implementation 5:29
  • Understanding write method 1:31
  • Write method implementation 2:41
  • Lseek method 2:06
  • Lseek method implementation 8:26
  • Testing pseudo char driver 7:32
  • Error handling 17:32
Chương 5 Char driver with multiple device nodes
  • Pcd driver with multiple devices 10:35
  • Pcd driver with multiple devices code implementation part-1 5:29
  • Pcd driver with multiple devices code implementation part-2 10:07
  • Pcd driver with multiple devices code implementation part-3 11:23
  • Pcd driver with multiple devices code implementation part-4 6:45
  • Pcd driver with multiple devices code implementation part-5 10:47
  • Pcd driver with multiple devices code implementation part-6 5:24
  • Pcd driver with multiple devices code implementation part-7 8:17
  • Pcd driver with multiple devices testing 7:51
  • Pcd driver with multiple devices testing contd 9:25
  • Pcd driver with multiple devices lseek implementation 4:24
  • Container of discussion 19:01
Chương 6 Platform bus, Platform devices and Platform drivers
  • Platform devices and drivers 18:56
  • Example of platform drivers 4:13
  • Registering platform device and drivers 11:24
  • Platform driver code exercise 2:04
  • Platform device setup code implementation 12:30
  • Platform device setup code implementation contd. 4:47
  • Platform driver code implementation part-1 7:52
  • Platform driver code implementation part-2 5:01
  • Platform driver code implementation part-3 8:11
  • Platform driver code implementation part-4 17:19
  • Platform driver code implementation part-5 5:43
  • Platform driver code implementation part-6 6:08
  • Testing platform driver 5:35
  • Linux device resource managed functions 7:47
  • Using device resource managed kernel functions 3:57
  • Testing with more platform devices 5:48
  • Fixing kernel crash 2:02
  • Platform device driver matching using platform device ids 24:56
  • Fixing error handling in probe function 4:35
Chương 7 Device tree
  • Introduction to device tree 4:59
  • Writing device tree 10:03
  • Device tree structure 13:47
  • Device tree writing syntax 11:17
  • Device tree parent and child node 5:26
  • Device tree properties 6:23
  • 'compatible' property 13:16
  • Device tree binding 10:08
  • Pcd device tree version 4:31
  • Switching to Linux kernel version 5.4 1:31
  • Updating Linux kernel image of 5.4 4:16
Chương 8 Device tree nodes and platform driver
  • Device tree nodes for pcd driver 8:06
  • Pcd platform driver DT coding part-1 13:13
  • Testing device tree changes on board 10:32
  • Pcd platform driver DT coding part-2 23:40
  • Pcd platform driver DT coding part-3 6:52
  • Pcd platform driver DT coding part-4 13:44
Chương 9 Device tree overlays
  • Introduction to device tree overlays 8:15
  • Device tree overlays exercise 15:13
  • Updating u-boot 2:09
  • Updating u-boot contd. 2:32
  • Applying overlays using u-boot commands 10:25
  • Applying overlays and testing using u-boot uEnv.txt file 15:04
Chương 10 Linux device driver model
  • Linux device model 10:56
  • Kobjects 5:37
  • Kobject type and kset 16:00
  • Sysfs and kobject attributes 7:00
  • Creating sysfs attributes 7:41
  • Pcd_sysfs_attributes coding part 1 7:46
  • Pcd_sysfs_attributes coding part 2 10:08
  • Pcd sysfs kernel module testing 2:22
  • Show and store methods of the sysfs attributes 4:29
  • Pcd_sysfs_attributes coding part 3 13:48
  • Attribute grouping 6:13
Chương 11 Linux GPIO subsystem
  • Introduction 5:32
  • GPIOs of BBB 8:40
  • Pad configuration register 4:17
  • Linux GPIO subsystem 5:16
  • Consumer accessing GPIO pins 8:39
Chương 12 GPIO Sysfs driver implementation
  • Exercise GPIO Sysfs driver implementation 6:24
  • GPIO Sysfs driver implementation part-1 8:27
  • GPIO Sysfs driver implementation part-2 10:51
  • GPIO Sysfs driver implementation part-3 12:26
  • GPIO Sysfs driver implementation part-4 25:03
  • GPIO Sysfs driver implementation part-5 5:38
  • GPIO Sysfs driver implementation part-6 17:02
  • GPIO Sysfs driver implementation part-7 14:44
  • GPIO Sysfs driver implementation part-8 9:31
  • Gpio syfs driver testing 10:04
Chương 13 Pin control subsystem of Linux
  • Pin control subsystem and pin controller 14:10
  • Writing pin configuration node 11:31
  • LCD exercise 9:31
  • Significance of LCD application 6:10
  • Adding pin configuration node for gpios 27:05
  • Exploring LCD code 11:46
  • Sending command to LCD 10:52
  • Creating LCD command code 8:22
  • Testing LCD application over gpio sysfs 11:20
  • Assignment : Implementing LCD platform driver 10:49
Chương 14 Linux synchronization services
  • Avoiding race conditions 25:06
  • Linux locking services 4:19
  • Spinlock Vs Mutex 14:26
  • Linux spinlock functions 8:03
  • Mutex 8:26
  • Using locking functions in the code 33:11
  • BONUS LECTURE

Requirment

  • Students must be familiar with basic Linux command usage

  • Students must be familiar with 'C' programming language

Outcomes

  • Fundamentals of Linux kernel module and writing syntax

  • Makefile and LKM build procedure

  • Character device driver implementation

  • Platform bus, Platform device, and platform driver concepts

  • Platform driver implementation

  • Learn device tree from scratch

  • Device tree node syntax, properties of device tree nodes

  • Kernel APIs to process device tree nodes

  • Device instantiation through device tree nodes

  • Device tree overlays and overlays testing via u-boot

  • Kernel synchronization services , mutex , spinlocks usage

  • Linux device model and sysfs

  • Linux GPIO Subsystem

  • Linux pinctrl subsystem

Instructor

...
FastBit Embedded Brain Academy

0.0

  • ... 0 Student
  • ... 4 Courses
  • ... 0 review

View Details

Reviews

Rate this course :

Remove all