]>
Commit | Line | Data |
---|---|---|
d2ce1817 GKH |
1 | |
2 | udev - a userspace implementation of devfs | |
3 | ||
4 | For more information on the design, and structure of this project, see the | |
5 | files in the docs/ directory. | |
6 | ||
7 | To use: | |
8 | ||
9 | - Edit the udev.h file and replace the following variables with values | |
10 | that make sense for your system: | |
cee360d3 | 11 | #define UDEV_ROOT "/udev/" |
d2ce1817 GKH |
12 | #define MKNOD "/bin/mknod" |
13 | The only value most people will have to change is the UDEV_ROOT | |
14 | variable, as I doubt you really want device nodes to be created in my | |
15 | home directory :) | |
16 | ||
17 | - Run make to build the project. | |
18 | ||
19 | - Make sure sysfs is mounted. | |
20 | ||
21 | - Point /proc/sys/kernel/hotplug at the location of the udev binary that | |
22 | is created. Then plug some block devices in, or other types of | |
23 | devices that create dev files in sysfs. An easy way to do this, | |
24 | without any hardware is to use the scsi_debug module to create virtual | |
25 | scsi devices. | |
26 | ||
27 | - Watch as the nodes get created and removed. | |
28 | ||
29 | ||
30 | Yes this is a really rough first cut, I know. It's mostly a proof of | |
31 | concept that this can actually work. See the TODO file for a list of | |
32 | things left to be done. | |
33 | ||
34 | Any comment/questions/concerns please let me know. | |
35 | ||
36 | greg k-h | |
37 | greg@kroah.com |