Best Linux Device Drivers Training in Mohali |Linux Device Drivers Course in Mohali
This intensive course transforms an IT-Professional or a Student into a Linux Device Driver & Kernel Developer for Character Storage devices, Block Storage devices & Network Storage devices and for those Programmers who already working on Linux, but looking for a methodical and concept clearing professional training on Linux system and kernel programming. Our training sessions go beyond the basics and provide the desired knowledge level to get the most out of your Linux system. We are dedicated to offering a comprehensive level course covering varied aspects of system programming like Linux programming, Kernel programming, and Linux device drivers.
COURSE CODE: ITR301
COURSE DURATION: 6 WEEKS
COURSE OBJECTIVES:
- We offer this course for all those beginners and working professionals who are seeking assignments on Linux kernel programming, device drivers.
- Introduces Linux operating systems.
- Introduces Linux Kernel and module programming.
- How to use Character drivers, Block drivers, and Network drivers.
- The concept of Kernel synchronization and debugging.
- Introduces time delays deferred execution & interrupt handling
- Proper grounding on Linux, its concepts and finer nuances of programming
- Recall the basic Linux commands
- Grasp core operating system concepts and module programming
COURSE CONTENTS
MODULE 1: CHARACTER DEVICE DRIVER
CHAPTER 1: GETTING STARTED WITH LINUX KERNEL
- Linux System Architecture
- Linux Software Architecture
- Basic Kernel Services
- Linux Kernel Code
- Linux Kernel Tree
- Linux Kernel Configuration
- Introduction to GNU Toolchain
- GCC compiler
- Makefile
- GDB
CHAPTER 2: INTRODUCTION TO DEVICE DRIVER
- What is a Device Driver
- Classes of Devices
- Device Driver Classification
- The concept of a Module
- Kernel Module Vs. Application
- Major & Minor Numbers
- Reserved Major Numbers
- Module Parameters
- Loading/Unloading Modules
- Current Process Information
- Kernel Memory Allocations
- Driver Entry Points
- Init Module & Exit Module
- Character Device Data structures
- Character Device Registration
- Character Device Drivers
CHAPTER 3: FILE SYSTEM AND ITS OPERATION
- File Structure
- File Operations Structure
- Driver-User Data Transfer
- Open, Read, Write and Close System Calls
- Driver-Kernel Communication
- Driver-Device Communication
- Device File Creation
- Device File Control Operations
- Advance char device operations (ioctl), Kernel Timer
CHAPTER 4: KERNEL SYNCHRONIZATION
- Introduction to Race Conditions
- Sources of Race Conditions
- Semaphores &Semaphore APIs
- Binary & Counting Semaphores
- Mutexes & Mutex APIs
- Spinlocks &Spinlock APIs
- Deadlock – Sources Deadlock Prevention
- Rules for Sleeping
- Wait for queues & Wait for queue APIs
CHAPTER 5: INTERRUPTS HANDLING
- What are interrupts?
- Interrupt Handling
- Interrupt Service Routine (ISR)
- Interrupt Latency
- Installing and implementing an interrupt handler
- Tasklets and Work Queues
- Bottom Halves and Top Halves
CHAPTER 6: KERNEL CONFIGURATION AND COMPILATION FOR 0X86
- Retrieving the Kernel Source
- Configuring and Building, Installing and Booting from a Kernel
- Upgrading a kernel, Customizing a Kernel
- Bootloader – Grub Loader, U-Boot
CHAPTER 7: HANDS-ON PRACTICAL DURING TRAINING
- Introduction & First Driver
- Setting up the environment
- Writing, Building, Using the First Driver
- Writing Character Drivers
- Registering the Character Driver
- Automatic creation of device file nodes
- Various file operations including reading, write, ioctl
- Doing Low-level Accesses in an ARM9
- Led Driver on ARM 9
- Interrupt Generation on ARM 9
- Buttons Driver on ARM 9
- PWM Driver on ARM9
- LCD Driver on ARM9
- DC and Stepper Motor Driver on ARM9
MODULE 2: LINUX BLOCK DEVICE DRIVERS
CHAPTER 1: FUNDAMENTALS OF ‘KERNEL C’ PROGRAMMING
- Concurrency
- Delays
- Work Queues
CHAPTER 2: UNDERSTANDING THE BLOCK DRIVERS
- Request Queue Ecosystem
- Kernel C APIs & Data Structures
- Creating a RAM Block Device
- Partitioning a Block Device
CHAPTER 3: LDDK AS A USB MEMORY DEVICE
- Understanding the USB framework
- Integrating the USB Horizontal with Block Vertical
- Programming the Control Endpoint Zero
- Exchanging the Interrupt Messages
CHAPTER 4: FILE SYSTEM DESIGN & IMPLEMENTATION
- Virtual File System & its Role
- File System Design & Challenges
- Hardware File System & Formatting
- Kernel File System & the 5 Operation Sets
CHAPTER 5: HANDS-ON & PRACTICAL DURING TRAINING
- Project Development Environment
- Setting up the project development
- environment
- Writing Character Drivers
- Registering the Character Driver
- Automatic creation of device file nodes
- Various file operations including reading, write, ioctl
- Understanding the Block Drivers
- Experiments with a RAM-based Block driver
- Creating Partitions and Formatting them
- LDDK as a USB Memory Device
- Auto-probing & detection of a USB device
- Control operations for memory & LEDs of LDDK
- USB data transfer through interrupt endpoints
- Integrating the LDDK memory into block vertical
- File System Design & Implementation
- Designing your custom File System
- Application to Format your File System
- Coding for a hardware-less File System
- Mounting the File System over LDDK
- File System in Action
- Experiments with basic File System operations
- Enhance the File System to Support bigger file sizes
- Add the feature of the (efficient) renaming of files
MODULE 3: LINUX NETWORK DEVICE DRIVERS
CHAPTER 1: GETTING STARTED WITH NETWORK DRIVERS
- OSI Layers & the Network (TCP/IP) Stack Placement
- Network Driver & Device Registrations
- Kernel Data Structures & Buffer Management
- Network Device Operations
- Interrupt Handling Techniques
- The First Network Driver
CHAPTER 2: PROGRAMMING THE PCI
- Understanding the x86 processor bus: PCI
- PCI Core & Programming the PCI
- Finding & Interacting with a PCI Device
- The First PCI Driver
CHAPTER 3: DEVELOPING THE PCI BASED NETWORK DRIVER
- Programming the Network Device Registers
- Integrating the PCI horizontal with the Network vertical
- Implementing the PCI Network Driver
CHAPTER 4: HANDS-ON & PRACTICAL DURING TRAINING
- Writing a Loopback Network Driver
- Registering the Network Driver
- Buffer Management with buffs
- Packet Transmission & Reception
- Reception using interrupt and poll
- Other network operations including statistics
- Testing the Network Driver
- Setting up the network
- Communicating over the network
- Writing the first PCI Driver
- Registering & Finding a PCI device
- Mapping & Accessing the PCI device regions
- Writing the PCI Network Driver
- Programming the Network Device Registers
- Implementing the Transmission & Reception with the actual device
- Setting up the network across computers