]>
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: | |
11 | #define SYSFS_ROOT "/sys" | |
12 | #define UDEV_ROOT "/home/greg/linux/udev/" | |
13 | #define DEV_FILE "/dev" | |
14 | #define MKNOD "/bin/mknod" | |
15 | The only value most people will have to change is the UDEV_ROOT | |
16 | variable, as I doubt you really want device nodes to be created in my | |
17 | home directory :) | |
18 | ||
19 | - Run make to build the project. | |
20 | ||
21 | - Make sure sysfs is mounted. | |
22 | ||
23 | - Point /proc/sys/kernel/hotplug at the location of the udev binary that | |
24 | is created. Then plug some block devices in, or other types of | |
25 | devices that create dev files in sysfs. An easy way to do this, | |
26 | without any hardware is to use the scsi_debug module to create virtual | |
27 | scsi devices. | |
28 | ||
29 | - Watch as the nodes get created and removed. | |
30 | ||
31 | ||
32 | Yes this is a really rough first cut, I know. It's mostly a proof of | |
33 | concept that this can actually work. See the TODO file for a list of | |
34 | things left to be done. | |
35 | ||
36 | Any comment/questions/concerns please let me know. | |
37 | ||
38 | greg k-h | |
39 | greg@kroah.com |