Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ass:labs-2024:04:tasks:03 [2025/08/03 10:12] (current)
florin.stancu created
Line 1: Line 1:
 +==== 03. Making a simple character device ====
 +
 +[[https://​www.google.com/​search?​q=linux+kernel+character+device+example|Check Google]] for [[https://​olegkutkov.me/​2018/​03/​14/​simple-linux-character-device-driver/​|some inspiration]] on Linux kernel [[http://​derekmolloy.ie/​writing-a-linux-kernel-module-part-2-a-character-device/​|sample character device]] modules.
 +
 +Simply take the code, try to build it / fix it (if required, since newer kernel versions may break old APIs).
 +
 +Also make sure to put some ''​printk()''​ calls for debugging (if they'​re not already in the sample code).
 +
 +After a successful compilation,​ test it on your board using ''​insmod''​! Check ''​dmesg''​ for the (hopefully) successful messages.
  
ass/labs-2024/04/tasks/03.txt ยท Last modified: 2025/08/03 10:12 by florin.stancu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0