Differences

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

Link to this comparison view

ass:laboratoare:04:tasks:03 [2023/07/22 03:54]
radu.mantu created
ass:laboratoare:04:tasks:03 [2023/07/22 08:43] (current)
florin.stancu [03. Making a simple character device]
Line 1: Line 1:
 ==== 03. Making a simple character device ==== ==== 03. Making a simple character device ====
  
-[[https://​www.google.com/​search?​q=linux+kernel+character+device+example|Google]] for some inspiration on Linux kernel sample character device modules.+[[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.
  
-Next: build it!+Simply take the code, try to build it / fix it (if required, since newer kernel versions may break old APIs).
  
-Upload it onto your board and test it using ''​insmod''​!+Also make sure to put some ''​printk()'' ​calls for debugging (if they'​re not already in the sample code).
  
-TODO+After a successful compilation,​ test it on your board using ''​insmod''​! Check ''​dmesg''​ for the (hopefully) successful messages.
ass/laboratoare/04/tasks/03.1689987260.txt.gz ยท Last modified: 2023/07/22 03:54 by radu.mantu
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