LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 991|回复: 8

udev问题

[复制链接]
发表于 2006-4-27 14:25:46 | 显示全部楼层 |阅读模式
20060416版本LFS(完全没有hotplug) 安装后重启进入gentoo,然后设置LFS等等环境变量、

mount 分区。。。。mount --bind tmpfs..... 及内核需要的 4个文件系统后。

chroot到LFS、mount节点后。运行udev.发现没有/sbin/usevstart.

只有/etc/rc.d.init.d/udev 和
/sbin/udevd.

运行
/etc/rc.d/init.d/udev start后。

系统报告poputating dev......,一段时间后,报告FAIL。打开 /dev目录,发现只有很少设备目录。为何?

谢谢!
发表于 2006-4-27 14:51:46 | 显示全部楼层
chroot前mount --bind /dev $LFS/dev就可以了。udevstart现在默认是不安装的,因为已不需要它了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-27 15:44:43 | 显示全部楼层
Post by hohoxu_hao115
chroot前mount --bind /dev $LFS/dev就可以了。udevstart现在默认是不安装的,因为已不需要它了。


谢谢!但是不行。chroot到lfs后udev还是运行不起来,/dev下很少的目录。

直接从LFS启动后,/dev下就可发现很多目录。
回复 支持 反对

使用道具 举报

发表于 2006-4-29 14:44:47 | 显示全部楼层
1,chroot前看看/dev下是不是有很多设备,如果有设备挂到新的目录下,或者直接复制过去
2.我的系统(debian)上启动udev是用下面两个命令,而不是/etc/init.d/udev start
#:udevd --daemon
#:udevsynthesize
第二个命令执行后dev下会自动建立很多设备
回复 支持 反对

使用道具 举报

发表于 2006-4-29 18:51:02 | 显示全部楼层
udev 没有  udevsynthesize 的吧?是udevsettle吧?或者 udevtrigger。
回复 支持 反对

使用道具 举报

发表于 2006-4-29 21:57:15 | 显示全部楼层
没用过gentoo,不过在我的系统中是这样的,我的系统是debian etch(2.6.15的内核)
回复 支持 反对

使用道具 举报

发表于 2006-4-29 22:30:13 | 显示全部楼层
Here is "udevsynthesize" a possible replacement for the udevstart/coldplug
combination we currently have. Usually very early in the boot process, it
gets all available devices from sysfs and synthesizes the events these
devices would have generated at creation time.
The events are directly passed to the udevd daemom socket. udevd does all the
work and runs all the events asynchronously. udevsynthesize itself does
not read any udev rule.

It scans block and class devices to create the the device nodes for already
available devices, which obsoletes the run of udevstart.
After that, it scans for bus devices, which events may load modules or
configure the device. If the bus type is known, the usual bus-specific
values are added to the event environment.

With the "rules-in-daemon" patch, the whole udevstart/coldplug handling
(700 events) takes less than a second CPU time on a 1.7Ghz laptop.
。。。。。这个。。。。
回复 支持 反对

使用道具 举报

发表于 2006-4-30 15:49:38 | 显示全部楼层
> The init script used simply mounts 10MiB tmpfs onto /dev, creates
> /dev/.udev/{db,queue} directories, then runs udevd --daemon and then
> udevsynthesize or udevstart (tried both, same result).

With the 2.6.15 kernel, udevstart is no longer needed.  Please use the
recommended shell script instead (as posted to the linux-hotplug-devel
mailing list.)
回复 支持 反对

使用道具 举报

发表于 2006-4-30 16:33:05 | 显示全部楼层
这个是 debian 的东西,udev是没有的,用的是 udevsettle。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表