LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: sleeve

都从这里开始吧

[复制链接]
 楼主| 发表于 2004-5-25 10:14:48 | 显示全部楼层
楼上的你想说啥?

使用 那个标准的头文件 在编译 XFree-4.4.0 的驱动模块会出现 version.h 问题.
udev 与 nvidia 官方驱动未能配合上. 可能需要改配置.具体还没时间弄.
如果是 devfs 加载 nvidia 就能自动在/dev创建 nvidia 设备了.
编译 qt-3.3.2 没问题.  起了简单的X 现在在编译 arm-linux crosstool 还没时间编译kde
发表于 2004-5-25 10:19:32 | 显示全部楼层
I agree that, I want to say: Follow Book, Book Good
发表于 2004-5-25 11:35:13 | 显示全部楼层
nvidia的解决办法我是这样做了一个折衷的:
就是自己做了一个脚本,在第次启动的后面自己创建了nvidia的设备文件。
 楼主| 发表于 2004-5-25 19:54:57 | 显示全部楼层
应该可以通过 udev 解决的. 但现在没时间看那玩意
至于脚本 nvidia 的驱动本身就附带了 到不需要自己做.
 楼主| 发表于 2004-5-25 23:32:02 | 显示全部楼层
nnd google 随便search一下就有了.
patch: http://marc.theaimsgroup.com/?l= ... 4944926119&q=p5
提示把上面的补丁打个 nv 驱动.. 明天回家弄弄看
以下是英文说明

udev vs Nvidia's graphics drivers
This section isn't really relevant to the purpose of this document, but judging from the hits I get from google, this is a hot topic. I will leave it here for now.

Nvidia's graphics drivers (the closed-source ones, not the ones that come with XFree) do not work with a default installation of udev - you are unable to start X. This is because the nvidia module is loaded by X, but the /dev/nvidia* nodes are not created quick enough, so X bails out.

The solution to this problem is to autoload the nvidia module on bootup. Yes - you are *supposed* to do this - the NVidia FAQ confirms this! On devfs-based systems, devfs did this automatically at bootup anyway. Your linux distribution will have created a file which you can list modules to be loaded on bootup (e.g. /etc/modules.autoload.d/kernel-2.6 for Gentoo, /etc/modules for Debian).

This isn't all - you will also need to patch the nvidia kernel interface to export some basic info to SYSFS so that udev will create the devices. Martin Schlemmer has written a patch against the 1.0.5336 version of the nvidia drivers, which can be found here. The Gentoo package nvidia-kernel-1.0.5336-r1 contains this patch.

Another solution is to simply create the nvidia specific nodes on bootup. X will then load the module when required, and as the nodes are already in existance, you will not run into the problem described above. Place these commands in a file that is automatically executed on bootup (e.g. /etc/conf.d/local.start for Gentoo):

mknod /dev/nvidia0 c 195 0
mknod /dev/nvidiactl c 195 255

You should now be able to get into X with no problems.

摘自: http://www.reactivated.net/udevrules.php#nvidia
发表于 2004-5-27 09:49:12 | 显示全部楼层
http://lfs.linux-phreak.net/lfs/view/unstable
这个是更新以后的连接,我来顶一下
发表于 2004-6-1 16:58:54 | 显示全部楼层
考,原来这小子还是个版主列

怪不得挺强的
发表于 2004-6-3 09:57:10 | 显示全部楼层
我编译到perl的时候,要求一个libtermcap.so.2,自己下载了一个装,要装到tools目录下,提醒一下碰到这个问题的人。
RH 8 + kernel 2.6.3
Book: CVS-2004-05-29


我想问问,Book是用gcc 3.4.1的,我用3.3.x可以么?
我找不到3.4.1的patch,用3.4.0的也可以,不知道有没有影响。

谢谢。
发表于 2004-6-3 22:09:53 | 显示全部楼层
it was already merged into LFS. I think it was possible that the BELFS became the CVS LFS.
发表于 2004-6-5 07:03:05 | 显示全部楼层
what is already merged into LFS?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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