1)確保內(nèi)核支持熱插拔
# cd linux-2.6.30.4# vi .config
CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_ALL is not set
# CONFIG_KALLSYMS_EXTRA_PASS is not set
# CONFIG_STRIP_ASM_SYMS is not set
CONFIG_HOTPLUG=y //確保這項為y
CONFIG_PRINTK=y
CONFIG_NET=y //確保這項也為y
確保以上兩項都選上,不然/proc/sys/kernel/目錄不會出現(xiàn)hotplug文件!
2)確保busybox支持mdev
mdev是busybox中udev設(shè)備文件系統(tǒng)的精簡版
# make menuconfig
確保以下幾項被選中:
Linux System Utilities --->
mdev
Support /etc/mdev.conf
Support subdirs/symlinks
Support regular expressions substitutions when renaming dev
Support command execution at device addition/removal