forked from mavam/ml-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
49 lines (31 loc) · 1.13 KB
/
README
File metadata and controls
49 lines (31 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
=========
ML-driver
=========
The ML-driver is a proof-of-concept Linux kernel driver for the DreamCheeky USB
missile launcher. I developed it mainly to gain experience in kernel driver
hacking. Hence it is mereley a skeleton and not very sophisticated.
=============
Prerequisites
=============
* Linux kernel version >= 2.6.17
* GNU make
Note that I haven't tested the driver with kernel versions greater than 2.6.17.
============
Installation
============
Compilation is straigt forward:
make
To load the module, I provide a little script:
./ml_manage.sh load
Check your messages afterwards. If everything went fine, you should see these
lines:
[info] ml_probe(593): USB missile launcher now attached to /dev/ml0
usbcore: registered new driver missile_launcher
[info] usb_ml_init(651): driver registered successfully
Now you are ready to play with the tool in user-space. Simply compile the
example code in this directory:
gcc -o ml_control user-space.c
./ml_control -f
Double-check the permissions of your device (/dev/ml0) when encountering any
problems.
Matthias Vallentin <vallentin@icir.org>