Workshop: My First Kernel Driver
summary
Hands-on workshop provides a USB (ch341t) to qwiic converter and a qwiic SHT40 sensor plus a GitHub repo with prep steps and a ready-to-build kernel module that instantiates an i2c-device/-client. Attendees follow a skeleton i2c-driver and communication snippets to implement a tiny kernel driver exposing sysfs attributes for temperature and humidity; common gotchas discussed include kernel header path differences (linux/unaligned.h vs asm/unaligned.h) and build issues on ~6.8 kernels.
AI-written summary · about
chapters (8)
- 0:00Workshop introduction
- 15:31Kernel header include errors
- 27:49Floating point in drivers
- 32:32Debugging temperature sensor
- 50:58Submitting drivers upstream
- 54:33Splitting multi-function drivers
- 1:02:18Hardware for kernel dev
- 1:24:43Closing remarks and Q&A
related talks
59mUnderstanding the Structure of a Linux Kernel Device Driver
02mBecoming a Linux Developer
52mDebugging Usually Slightly Broken (USB) Devices and Drivers
41mHow to Avoid Writing Device Drivers for Embedded Linux
10mUpstreaming a linux kernel driver.
53mInto the Jungle - How to write a Linux kernel driver for any subsystem
18mSimple KernelCI Labs with Labgrid
26mGetting Started With Kernel Programming: The Linux Kernel Mentorship Program
