diff options
author | Juergen Beisert <j.beisert@pengutronix.de> | 2007-01-09 14:32:43 +0000 |
---|---|---|
committer | Juergen Beisert <j.beisert@pengutronix.de> | 2007-01-09 14:32:43 +0000 |
commit | 4dbcf6d76bacdfb05ae6a5902c5e2c845c357905 (patch) | |
tree | 5dbd47a6ec7fcd57675b90a882904cc17d7b029a /rules/udev.in | |
parent | 8dd1a87dee32beff59dbf0c3dd84fe1042c7bea7 (diff) | |
download | ptxdist-4dbcf6d76bacdfb05ae6a5902c5e2c845c357905.tar.gz ptxdist-4dbcf6d76bacdfb05ae6a5902c5e2c845c357905.tar.xz |
first attempt to use the new udev system
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@6794 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/udev.in')
-rw-r--r-- | rules/udev.in | 133 |
1 files changed, 87 insertions, 46 deletions
diff --git a/rules/udev.in b/rules/udev.in index 2b31d6e50..e955b4f35 100644 --- a/rules/udev.in +++ b/rules/udev.in @@ -1,17 +1,44 @@ menuconfig UDEV bool prompt "udev " - -config UDEV_UDEV - bool "udev" - depends on UDEV - default y + select ROOTFS_DEV help udev provides a dynamic device directory containing only the files for actually present devices. It creates or removes device node files in the /dev directory, or it renames network interfaces. + Ensure: This udev implementation requires at least kernel + 2.6.15 and must have sysfs, unix domain sockets and networking + enabled. + +comment "build options ---" + depends on UDEV + +config UDEV_ENABLE_SYSLOG + bool "Enable syslog" + depends on UDEV + help + If enabled, udev is able to pass errors or debug information + to syslog. This is very useful to see what udev is doing or not doing. + Note: To use this feature the syslog daemon must start before udev + +config UDEV_ENABLE_DEBUG + bool "Enable debugging messages" + depends on UDEV + help + If enabled, very verbose debugging messages will be compiled + into the udev binaries. The actual level of debugging is specified + in the udev config file (refer entry "udev_log") + +comment "install options ---" + depends on UDEV + +config UDEV_UDEV + bool "udev" + depends on UDEV + default y + help Usually udev runs as udevd(8) and receives uevents directly from the kernel if a device is added or removed from the system. @@ -35,7 +62,6 @@ config UDEV_UDEVD config UDEV_INFO bool "udevinfo" depends on UDEV - default n help udevinfo queries the udev database for device information stored in the udev database. It @@ -43,59 +69,68 @@ config UDEV_INFO its sysfs representation to help creating udev rules that match this device. -config UDEV_SEND - bool "udevsend" - depends on UDEV - default y - help - This is the command the kernel calls if a hotplug event - occures (see /proc/sys/kernel/hotplug) to trigger the udev - subsystem. Its only required for older kernels to achieve - their hotplug mechanism. - config UDEV_START bool "udevstart" depends on UDEV - default y help Populates initial device directory. udevstart scans the kernel exported device information available in sysfs for devices which require a device node to operate and creates the node using the specified udev rules. - udevstart is used to create the initial device directory after system bootup. + udevstart is used to create the initial device directory after system + bootup. config UDEV_TEST bool "udevtest" depends on UDEV - default n - help - udevtest simulates a udev run for the given device - and prints out the name of the node udev would have - created, or the name of the network interface, that - would have been renamend. -# -# for version 0.96 and above only -#config UDEV_TRIGGER -# bool "udevtrigger" -# depends on UDEV -# default n -# help -# Trigger kernel device uevents to replay missing events at system -# coldplug. Its part of the udev mechanism to startup -# -#config UDEV_SETTLE -# bool "udevsettle" -# depends on UDEV -# default n -# help -# Waits watching the udev event queue and exits if all current events -# are handled. Its part of the udev mechanism to startup + help + udevtest simulates a udev run for the given device and prints out the + name of the node udev would have created, or the name of the network + interface, that would have been renamend. + +config UDEV_TRIGGER + bool "udevtrigger" + depends on UDEV + default y + help + Trigger kernel device uevents to replay missing events at system + coldplug. Its part of the udev mechanism to startup + +config UDEV_SETTLE + bool "udevsettle" + depends on UDEV + default y + help + Waits watching the udev event queue and exits if all current events + are handled. Its part of the udev mechanism to startup + +config UDEV_CONTROL + bool "udevcontrol" + depends on UDEV + help + Lets you control the currently running udev system + +config UDEV_MONITOR + bool "udevmonitor" + depends on UDEV + help + udevmonitor listens to the kernel uevents and events send out by a + udev rule and prints the devpath of the event to the console. It can + be used analyze to the event timing by comparing the timestamps of + the kernel uevent with the udev event. config UDEV_FW_HELPER bool "firmware helper" depends on UDEV - default n help - FIXME: This item needs to be documented + This is a small helper script to load some kind of firmware on demand + +config UDEV_USB_ID + bool "USB device id generator" + depends on UDEV + help + This is a helper to generate unique information about some kind of + USB device. This is required to ensure the same hotplugged device to + appear always at the same device node (via link) comment "runtime options ---" depends on UDEV @@ -136,7 +171,6 @@ config ROOTFS_ETC_UDEV_CONF config ROOTFS_ETC_UDEV_USER_RULES bool depends on UDEV - default n prompt "Install user defined rules" help This will install all user defined udev *.rules files from the active @@ -146,7 +180,8 @@ config ROOTFS_ETC_UDEV_USER_RULES are owned by root only. If you need special permission control you must add some udev rules to create device nodes with correct permissions. There are some rule files in the udev packet. Refer - "build-target/udev-???/etc/udev" to check if they meet your requirements. + "build-target/udev-???/etc/udev/rules.d" to check if they meet your + requirements. config ROOTFS_ETC_INITD_UDEV depends on UDEV @@ -164,7 +199,13 @@ config ROOTFS_ETC_INITD_UDEV config ROOTFS_ETC_INITD_UDEV_DEFAULT bool prompt "Use generic" - select UDEV_START + # + # these commands are required by the generic start script + # + select UDEV_UDEV + select UDEV_UDEVD + select UDEV_TRIGGER + select UDEV_SETTLE help Installs a generic /etc/init.d/udev startup script. See <ptxdist-install>/generic/etc/init.d/udev |