LinuxSir.cn,穿越时空的Linuxsir!

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

做blfs-20050305时配置Xorg-6.8.1出错,请指导。

[复制链接]
发表于 2005-3-9 11:08:49 | 显示全部楼层 |阅读模式
cat > /etc/profile.d/X.sh << "EOF"
if [ -x /usr/X11R6/bin/X ]; then
        pathappend /usr/X11R6/bin
fi
if [ -d /usr/X11R6/lib/pkgconfig ] ; then
        pathappend /usr/X11R6/lib/pkgconfig PKG_CONFIG_PATH
fi
EOF


make[4]: Leaving directory `/sources/25/xcbuild/doc/hardcopy/RX'
installing man pages in doc/hardcopy/XKB...
make[4]: Entering directory `/sources/25/xcbuild/doc/hardcopy/XKB'
install.man in doc/hardcopy/XKB done
make[4]: Leaving directory `/sources/25/xcbuild/doc/hardcopy/XKB'
installing man pages in doc/hardcopy/XPRINT...
make[4]: Entering directory `/sources/25/xcbuild/doc/hardcopy/XPRINT'
install.man in doc/hardcopy/XPRINT done
make[4]: Leaving directory `/sources/25/xcbuild/doc/hardcopy/XPRINT'
make[3]: Leaving directory `/sources/25/xcbuild/doc/hardcopy'
make[2]: Leaving directory `/sources/25/xcbuild/doc'
env LC_ALL=C perl  ./config/util/mkhtmlindex.pl /usr/X11R6/lib/X11/doc/html
make[1]: Leaving directory `/sources/25/xcbuild'
root@localhost:/sources/25/xcbuild# ldconfig
root@localhost:/sources/25/xcbuild# cd ~
root@localhost:~# Xorg -configure
bash: Xorg: command not found
发表于 2005-3-9 12:42:26 | 显示全部楼层
找一下, xorg一般在/
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-9 14:04:48 | 显示全部楼层
查看了/ 所有的文件,包含隐藏的文件就是没有xcorg。
可是编译和安装的过程没有出现错误。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-9 14:52:34 | 显示全部楼层

是哪里出错了?

root@localhost:/sources/25/xcbuild# cd ~
root@localhost:~# Xorg -configure

X Window System Version 6.8.1
Release Date: 17 September 2004
X Protocol Version 11, Revision 0, Release 6.8.1
Build Operating System: Linux 2.6.9-5.EL i686 [ELF]
Current Operating System: Linux localhost.localdomain 2.6.9-5.EL #1 Wed Jan 5 19:22:18 EST 2005 i686
Build Date: 09 March 2005
        Before reporting problems, check http://wiki.X.Org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Mar  9 14:36:03 2005

Fatal server error:
xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)


Please consult the The X.Org Foundation support
         at http://wiki.X.Org
for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.

root@localhost:~# logout
[root@localhost ~]# echo $LFS
/mnt/lfs
[root@localhost ~]# mount -t dev $LFS/dev
Usage: mount -V                 : print version
       mount -h                 : print this help
       mount                    : list mounted filesystems
       mount -l                 : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
       mount -a [-t|-O] ...     : mount all stuff from /etc/fstab
       mount device             : mount device at the known place
       mount directory          : mount known device here
       mount -t type dev dir    : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
       mount --bind olddir newdir
or move a subtree:
       mount --move olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using  -L label  or by uuid, using  -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say  man 8 mount .
[root@localhost ~]#
回复 支持 反对

使用道具 举报

发表于 2005-3-9 15:51:45 | 显示全部楼层
xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)
你是在另一个系统上用chroot方式编译的Xorg吧。
看看chroot后的/dev下有没有tty0
没有的话,可以从主系统上cp -a 过去个。
用udev管理设备的话运行下udevstart
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-9 16:15:51 | 显示全部楼层
是在chroot环境下编译的,LFS系统的/dev目录下没有一个设备。
我的内核编译有没有问题?
如果重新编译内核的话,能不能不重新安装xorg?如果能,该怎么做,需要注意那些问题,说详细点好吗。
多谢楼上大哥多次帮忙。
回复 支持 反对

使用道具 举报

发表于 2005-3-9 16:26:01 | 显示全部楼层
文档上写编译Xorg要求主系统与你lfs系统的内核版本相同。
我每次编译Xorg主系统都是和lfs内核版本一样的。
不知道不一样会有什么影响

你可以在chroot环境下创建出设备文件阿。
文档上应该有写怎么做的。
5.0和5.1.1都用make_devices
看看Creating devices with Make_devices-1.2 那章。
6.0的是用udevstart

或者直接从主系统cp -a /dev/* /mnt/lfs/dev
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-9 16:57:05 | 显示全部楼层
我的lfs 是6.1.看来是我的内核配置的不好,没有把芯片的支持编进去,是吗?
主系统rhel4的内核是2.6.9..而l f s 系统的内核是2.6.8.1有影响吗?

root@localhost:/sources/25/xcbuild# cd ~
root@localhost:~# Xorg -configure

X Window System Version 6.8.1
Release Date: 17 September 2004
X Protocol Version 11, Revision 0, Release 6.8.1
Build Operating System: Linux 2.6.9-5.EL i686 [ELF]
Current Operating System: Linux localhost.localdomain 2.6.9-5.EL #1 Wed Jan 5 19:22:18 EST 2005 i686
Build Date: 09 March 2005
        Before reporting problems, check http://wiki.X.Org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Mar  9 16:41:34 2005
List of video drivers:
        atimisc
        r128
        radeon
        mga
        glint
        nv
        tga
        s3
        s3virge
        sis
        rendition
        neomagic
        i740
        tdfx
        savage
        cirrus
        vmware
        tseng
        trident
        chips
        apm
        i128
        nsc
        i810
        ati
        ark
        cyrix
        siliconmotion
        via
        vesa
        vga
        dummy
        fbdev
        v4l
(++) Using config file: "/root/xorg.conf.new"


Xorg is not able to detect your mouse.
Edit the file and correct the Device.

Your xorg.conf file is /root/xorg.conf.new

To test the server, run 'X -config /root/xorg.conf.new'

root@localhost:~# X -config ~/xorg.conf.new

X Window System Version 6.8.1
Release Date: 17 September 2004
X Protocol Version 11, Revision 0, Release 6.8.1
Build Operating System: Linux 2.6.9-5.EL i686 [ELF]
Current Operating System: Linux localhost.localdomain 2.6.9-5.EL #1 Wed Jan 5 19:22:18 EST 2005 i686
Build Date: 09 March 2005
        Before reporting problems, check http://wiki.X.Org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Mar  9 16:42:06 2005
(++) Using config file: "/root/xorg.conf.new"
(EE) I810(0): [dri] DRIScreenInit failed. Disabling DRI.
(EE) xf86OpenSerial: Cannot open device /dev/mouse
        No such file or directory.
(EE) Mouse0: cannot open input device
(EE) PreInit failed for input device "Mouse0"
No core pointer

Fatal server error:
failed to initialize core devices

Please consult the The X.Org Foundation support
         at http://wiki.X.Org
for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.

root@localhost:~#

按书上在chroot 环境里是要求两个系统的内核要相同.可我在l f s 系统里也出现上面的问题.这说明与两个系统的内核的不同是不是没关系了呢?
回复 支持 反对

使用道具 举报

发表于 2005-3-9 17:14:48 | 显示全部楼层
(EE) xf86OpenSerial: Cannot open device /dev/mouse
No such file or directory.
(EE) Mouse0: cannot open input device
(EE) PreInit failed for input device "Mouse0"
No core pointer

没有/dev/mouse这个东东。
觉得这算是个bug了吧。
lfs的udev不会自动创建/dev/mouse --> /dev/psaux 的链接。
改动一下xorg.conf :

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "rotocol" "IMPS/2"
        Option      "Device" "/dev/mouse"  -->/dev/psaux
        Option      "ZAxisMapping" "4 5"
EndSection
这样改下就可以了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-9 19:52:18 | 显示全部楼层
没有找到xorg.conf文件,只有xorg.conf.new,所以按你的方法改了这文件,还是不行。

root@localhost:~# X -config ~/xorg.conf.new

X Window System Version 6.8.1
Release Date: 17 September 2004
X Protocol Version 11, Revision 0, Release 6.8.1
Build Operating System: Linux 2.6.9-5.EL i686 [ELF]
Current Operating System: Linux localhost.localdomain 2.6.9-5.EL #1 Wed Jan 5 19:22:18 EST 2005 i686
Build Date: 09 March 2005
Before reporting problems, check http://wiki.X.Org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Mar 9 16:42:06 2005
(++) Using config file: "/root/xorg.conf.new"

Fatal server error:
no screens found

Please consult the The X.Org Foundation support
at http://wiki.X.Org
for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.

root@localhost:~#
回复 支持 反对

使用道具 举报

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

本版积分规则

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