From 18791e7edf664fb18bf85116fe7456a21aadd584 Mon Sep 17 00:00:00 2001 From: Pete Batard Date: Tue, 10 Nov 2015 11:06:31 +0000 Subject: [PATCH] Fix version and update README --- README.md | 33 ++++++++++++++++++++------------- parrot_driver.h | 2 +- 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 77c1b54..5702cbb 100644 --- a/README.md +++ b/README.md @@ -4,23 +4,30 @@ Parrot Linux device driver sample This is a GPLv2+ sample implementation of a character device driver for Linux 2.6 and later, based on [udev](https://en.wikipedia.org/wiki/Udev). -From more background information as well as a detailed walkthrough, -see the following [blog post](http://pete.akeo.ie/2011/08/writing-linux-device-driver-for-kernels.html). +For more background information as well as a detailed source walkthrough, see +the following [blog post](http://pete.akeo.ie/2011/08/writing-linux-device-driver-for-kernels.html). -* __Requirements__: - * gcc - * A recent Linux kernel (with its source) +Requirements +------------ -* __Compilation__: - * Just invoke `make` as root +* gcc +* A recent Linux kernel (with its source) -* __Testing__: - * `insmod parrot_driver.ko debug=1` - * `lsmod | grep parrot` - * `echo "Yabba Dabba Doo" > /sys/devices/virtual/parrot/parrot_device/fifo` - * `cat /dev/parrot_device` +Compilation +----------- -* __Notes__: +* Just invoke `make` as root + +Testing +------- + +* `insmod parrot_driver.ko debug=1` +* `lsmod | grep parrot` +* `echo "Yabba Dabba Doo" > /sys/devices/virtual/parrot/parrot_device/fifo` +* `cat /dev/parrot_device` + +Notes +----- On a Debian system, and if you haven't recompiled a kernel before, you may have to issue the following before you can compile and run the driver: diff --git a/parrot_driver.h b/parrot_driver.h index a613237..e2415ee 100644 --- a/parrot_driver.h +++ b/parrot_driver.h @@ -25,7 +25,7 @@ #define AUTHOR "Pete Batard " #define DESCRIPTION "'parrot' sample device driver" -#define VERSION "0.3" +#define VERSION "1.2" /* We'll use our own macros for printk */ #define dbg(format, arg...) do { if (debug) pr_info(CLASS_NAME ": %s: " format , __FUNCTION__ , ## arg); } while (0) -- 2.44.0