开发者

correct linux kernel configuration for hotplug

i am using busybox and linux 2.6.32.4. my configuration is based on fedora 12. and started mdev accordi开发者_JS百科ng to mdev document. but i cant see my modules like network adapters and plugged usb devices. is there thing must be done? mdev commands (after mounts):

echo /sbin/mdev > /proc/sys/kernel/hotplug
/sbin/mdev -s


What is the output of which mdev? According to the BusyBox documentation, mdev is in /bin and not /sbin.

Assuming that mdev is correctly activated, can you verify that hotplug is configured in the kernel you are using? It would be the CONFIG_HOTPLUG line in the kernel's configuration file. You may be able to check /proc/config.gz* depending on the kernel's configuration.

Assuming that mdev is correctly activated and hotplug is enabled in the kernel, your problem may be in mdev's configuration file /etc/mdev.conf.

Another thing that may be helpful would be setting /proc/sys/kernel/hotplug to a shell script that logs the environment and command line it is invoked with.

#!/bin/sh
echo $* >> /tmp/hotplug.log
env >> /tmp/hotplug.log
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜