Linux 自动生成设备节点
1. 创建字符设备 生成设备节点
2. busybox
Linux System Utilities --->
[*] mdev
[*] Support /etc/mdev.conf
[*] Support command execution at device addition/removal
3. kernel
File systems --->
Pseudo filesystems --->
[*] sysfs file system support
[*] Virtual memory file system support (former shm fs)
[*] Tmpfs POSIX Access Control Lists
4. rootfs
vi ./etc/init.d/rcS
mount -t tmpfs mdev /dev
mkdir /dev/pts
mount -t devpts devpts /dev/pts
mount -t sysfs sysfs /sys
mount -a
echo /sbin/mdev > /proc/sys/kernel/hotplug
mdev -s
相关推荐
benico 2020-04-26
heheeheh 2020-06-06
TaoTaoFu 2020-06-04
wkwanglei 2020-05-26
suosuo 2020-05-15
LuoXinLoves 2020-05-11
姚强 2020-04-06
xhpscdx 2020-03-06
小惠 2013-06-27
lovelily 2013-04-01
拿什么来拯救自己 2013-07-20
杨友山 2019-12-25
jackalwb 2019-12-24
akcsdno 2019-12-18
xinlugang 2019-12-11
DEPHI 2013-08-23
技术老炮儿 2014-02-28