Some good tutorials on how to write Linux device drivers (some are old but good for concept-building nonetheless):
- Device Drivers @tldp.org
- Write a Linux Hardware Device Driver
- Introduction to Linux Device Drivers
- Writing a Linux Kernel Driver for an Unknown USB Device
- Writing a Linux device driver module for kernels 3.0 or 2.6 with udev
- Linux Kernel Driver Tutorial
- How to Write a Linux USB Device Driver
- Linux Loadable Kernel Module HOWTO
- Linux Device Drivers, 3rd Edition (PDF)
- Writing device drivers in Linux: A brief tutorial
- A Simple Block Driver for Linux Kernel 2.6.31
- Enhanced char driver
- The Linux Kernel Module Programming Guide
- Free Electrons Docs
- LFY Linux Device Driver Series
- Write your first Linux kernel module
The Free Electrons LXR (Linux Cross Reference) for referring the kernel source. However, I prefer ctags and cscope for lengthy source-code browsing sessions.
very good collection in one point ( like tar ) … this is very useful for all connecting with linux ….
Thanks a lot Arun! that was really helpful!
Welcome!
Hi, do you have any resources for writing a usb webcam driver? I have never written a driver before. Thanks.
This should fix you 😉 –
http://qce-ga.sourceforge.net/
Thanks for the quick reply. Unfortunately my webcam does not work this that driver. I have a Creative Live Cam HD which has an on-board H.264 encoder. However, v4l2-ctl only shows getting an incoming feed of MJPEG so I’m trying to find a driver to support my webcam or I have to write my own.
No problem! Check in the opensource webcam driver developer forums or mail an author directly. They should be able to guide you.
nice collection , last two days i went so many links i didn`t get satisfied with any link finally i got this link and went all the links at last i went to lfy ” Linux Device Driver Series ” it`s awesome actually am a subscribed user of lfy 😉 but i did`t read that tutorials and i once again re-collected all the books now even i started and also completed 2 tutorials
am really thanking to Arun……
Glad it helped you! 🙂
Great selection of references to embedded Linux development.
Great to know you liked it! 🙂