[问题]安装dri驱动错误

CPU/显卡/打印机/USB设备等硬件问题
回复
chaoswong
帖子: 23
注册时间: 2007-08-01 8:33

[问题]安装dri驱动错误

#1

帖子 chaoswong » 2008-04-26 19:26

这两天安装dri驱动,在compile时出现错误,

代码: 全选

The script will now compile the DRM kernel modules for your machine.

Press ENTER to continue or CTRL-C to exit.


Compiling...
ERROR: Kernel modules did not compile

The DRI drivers can not be installed without the latest kernel modules.
Installation will be aborted. See the dri.log file for information on
what went wrong.
dri.log的文件内容:

代码: 全选

make DRM_MODULES=radeon.o modules
make[1]: Entering directory `/home/chaoswong/radeon-20060403-linux.i386/drm/linux-core'
make -C /lib/modules/2.6.22-14-generic/build  SUBDIRS=`pwd` DRMSRCDIR=`pwd` modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.22-14-generic'
  CC [M]  /home/chaoswong/radeon-20060403-linux.i386/drm/linux-core/drm_stub.o
/home/chaoswong/radeon-20060403-linux.i386/drm/linux-core/drm_stub.c:51: 错误: 数组 ‘type name’ 的大小为负
make[3]: *** [/home/chaoswong/radeon-20060403-linux.i386/drm/linux-core/drm_stub.o] 错误 1
make[2]: *** [_module_/home/chaoswong/radeon-20060403-linux.i386/drm/linux-core] 错误 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic'
make[1]: *** [modules] 错误 2
make[1]: Leaving directory `/home/chaoswong/radeon-20060403-linux.i386/drm/linux-core'
make: *** [radeon.o] 错误 2
不知道出这种错误,网上搜索未找到答案,希望大家能帮助我一下,谢谢!

PS:
已安装linux-kernel-devel (因为这两天cn99连不上,所以从网上下的deb包安装的。。)
chaoswong
帖子: 23
注册时间: 2007-08-01 8:33

#2

帖子 chaoswong » 2008-04-26 19:33

在这两天安装dri的时候, 还发现我的xorg.conf文件好像有点问题

里面居然没有Section "Module"这一项....不知为啥, 刚装的7.10, 没这一项正常吗?

文件内容:

代码: 全选

# xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
        FontPath        "/usr/share/fonts/wenquanyi/wqy-zenhei/"
EndSection

Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "kbd"
        Option          "CoreKeyboard"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "pc105"
        Option          "XkbLayout"     "us"
EndSection

Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ImPS/2"
        Option          "ZAxisMapping"          "4 5"
        Option          "Emulate3Buttons"       "true"
EndSection

Section "InputDevice"
        Identifier      "Synaptics Touchpad"
        Driver          "synaptics"
        Option          "SendCoreEvents"        "true"
        Option          "Device"                "/dev/psaux"
        Option          "Protocol"              "auto-dev"
        Option          "HorizEdgeScroll"       "0"
EndSection

Section "InputDevice"
        Driver          "wacom"
        Identifier      "stylus"
        Option          "Device"        "/dev/input/wacom"
        Option          "Type"          "stylus"
        Option          "ForceDevice"   "ISDV4"         # Tablet PC ONLY
EndSection

Section "InputDevice"
        Driver          "wacom"
        Identifier      "eraser"
        Option          "Device"        "/dev/input/wacom"
        Option          "Type"          "eraser"
        Option          "ForceDevice"   "ISDV4"         # Tablet PC ONLY
EndSection

Section "InputDevice"
        Driver          "wacom"
        Identifier      "cursor"
        Option          "Device"        "/dev/input/wacom"
        Option          "Type"          "cursor"
        Option          "ForceDevice"   "ISDV4"         # Tablet PC ONLY
EndSection

Section "Device"
        Identifier      "ATI Technologies Inc Radeon Mobility M7 LW [Radeon Mobility 7500]"
        Driver          "ati"
        BusID           "PCI:1:0:0"
EndSection

Section "Monitor"
        Identifier      "Generic Monitor"
        Option          "DPMS"
EndSection

Section "Screen"
        Identifier      "Default Screen"
        Device          "ATI Technologies Inc Radeon Mobility M7 LW [Radeon Mobility 7500]"
        Monitor         "Generic Monitor"
        DefaultDepth    24
        SubSection "Display"
                Modes           "1400x1050"
        EndSubSection
EndSection

Section "ServerLayout"
        Identifier      "Default Layout"
        Screen          "Default Screen"
        InputDevice     "Generic Keyboard"
        InputDevice     "Configured Mouse"
chaoswong
帖子: 23
注册时间: 2007-08-01 8:33

#3

帖子 chaoswong » 2008-04-27 18:26

自顶一下

请大侠帮忙!~
谢谢了~
chaoswong
帖子: 23
注册时间: 2007-08-01 8:33

#4

帖子 chaoswong » 2008-04-28 19:51

两天了 还是没有解决

求各位大侠帮忙看一下啦
回复