LinuxSir.cn,穿越时空的Linuxsir!

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

老显卡驱动安装的问题-- Cannot find a kernel config file

[复制链接]
发表于 2007-6-30 02:50:38 | 显示全部楼层 |阅读模式
昨天晚上安装xfce4,  startx后系统提示mach64模块无法加载。google后得到mach64-20060325-linux.i386.tar.bz2

在安装的过程中出现了问题,具体的安装过程如下:

debian:~/Desktop/下载/mach64/mach64/mach64-20060325-linux.i386# ./install.sh

DIRECT RENDERING OPEN SOURCE PROJECT  -  DRIVER INSTALLATION SCRIPT

[ http://dri.freedesktop.org ]

==========================================================================

Welcome to the DRI Driver Installation Script

The package you downloaded is for the following driver:

Driver Name    : mach64
Description    : ATI Mach64 Driver
Architecture   :
Build Date     : 20060325
Kernel Module  : mach64

Optional Information

Driver Version      :
Special Description :

Press ENTER to continue or CTRL-C to exit.



DIRECT RENDERING OPEN SOURCE PROJECT  -  DRIVER INSTALLATION SCRIPT

[ http://dri.freedesktop.org ]

==========================================================================

The script will need to copy the DRI Xorg driver modules to
your Xorg directories.

The script will use the following Xorg directories:

Xorg Dir         : /usr/X11R6
Xorg Modules Dir : /usr/X11R6/lib/modules
Xorg Library Dir : /usr/X11R6/lib

If this is correct press ENTER, press C to change or CTRL-C to exit.







DIRECT RENDERING OPEN SOURCE PROJECT  -  DRIVER INSTALLATION SCRIPT

[ http://dri.freedesktop.org ]

==========================================================================

The script also needs to copy the DRM kernel modules to your
kernel module directory.

This version of the script supports 2.4.x and 2.6.x kernels.

Kernel Version   : 2.6.18-4-686
Module Directory : /lib/modules/2.6.18-4-686

If this is correct press ENTER, press C to change or CTRL-C to exit.








DIRECT RENDERING OPEN SOURCE PROJECT  -  DRIVER INSTALLATION SCRIPT

[ http://dri.freedesktop.org ]

==========================================================================

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.

debian:~/Desktop/下载/mach64/mach64/mach64-20060325-linux.i386# cat dri.log
Makefile:173: *** Cannot find a kernel config file。 停止。



--------------分割线------------------------------------------------
之后试图用google&baidu搜索关键词
“Cannot find a kernel config file” 和“The DRI drivers can not be installed without the latest kernel ”  发现类似的问题不少,但成功解决的可供参考的解决方案不多。

唯一一个我认为可以参考的是:http://www.labjack.com/forums/in ... st=0&#entry6716
其中提到了系统的配置文件的相关问题。但尝试后失败。现在也不清楚这个系统的配置文件具体叫什么名字,应该在哪个位置上。。


新手,大家帮忙看看这个问题吧。。。。(intel815ep+ati 8m)
 楼主| 发表于 2007-7-1 00:36:54 | 显示全部楼层
sigh~  莫非是我表达有问题~   请达人指导~ :)
回复 支持 反对

使用道具 举报

发表于 2007-7-1 12:42:18 | 显示全部楼层
我不熟识 ATI,是要当前内核的 config 吗?,理应在 /boot 里面就有了,另一个地方是 /proc/config.gz

前题是编译内核时加入该支持
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-1 14:39:52 | 显示全部楼层

谢谢

我想在boot下找到了一个config文件。文件名为:config-2.6.18-4-686
现在的问题就是,安装程序是在什么地方寻找这个配置文件,这个配置文件具体应该叫什么名字。

ps:我是光盘安装,没有编译内核  在/usr/src下没收内核文件。。


[PHP]
# Determine Xorg Directory and Kernel Module directory from user input
ERR=-1;
while [ "$ERR" == "-1" ]; do

        # Determine Xorg directory
        if [ -d $DRV_NAME -o -d core ]; then
                print_logo
                echo "The script will need to copy the DRI Xorg driver modules to"
                echo "your Xorg directories."
                echo ""
                echo "The script will use the following Xorg directories:"
                echo ""
                echo "Xorg Dir         : $XF86_DIR"
                echo "Xorg Modules Dir : $XF86_MODULES_DIR"
                echo "Xorg Library Dir : $XF86_GL_DIR"
                echo ""
                echo "If this is correct press ENTER, press C to change or CTRL-C to exit."
                read KEY

                if [ "$KEY" == "C" ] || [ "$KEY" == "c" ]; then
                        print_logo
                        echo "lease enter the Xorg directories you would like to use."
                        echo ""
                        echo "ress ENTER when done or CTRL-C to abort."
                        echo ""
                        echo -n "Xorg Dir         : "
                        read XF86_DIR ;
                        echo -n "Xorg Modules Dir : "
                        read XF86_MODULES_DIR ;
                        echo -n "Xorg Library Dir : "
                        read XF86_GL_DIR ;
                fi
        fi

        # Determine Kernel module directory
        if [ -d drm ]; then
                print_logo
                echo "The script also needs to copy the DRM kernel modules to your"
                echo "kernel module directory."
                echo ""
                echo "This version of the script supports 2.4.x and 2.6.x kernels."
                echo ""
                echo "Kernel Version   : $KERNEL_VER"
                echo "Module Directory : $KERNEL_LIB_DIR"
                echo ""
                echo "If this is correct press ENTER, press C to change or CTRL-C to exit."
                read KEY

                if [ "$KEY" == "C" ] || [ "$KEY" == "c" ]; then
                        print_logo
                        echo "lease enter your kernel module directory."
                        echo ""
                        echo "ress ENTER when done or CTRL-C to abort."
                        echo ""
                        echo -n "Directory: "
                        read KERNEL_LIB_DIR ;
                fi
        fi

        # Determine paths from user input or defaults
        set_values
       
        # Check if values are good
        check_values
        ERR="$?";
done

# Compile the kernel modules
if [ -d drm ]; then
        print_logo
        echo "The script will now compile the DRM kernel modules for your machine."
        echo ""
        echo "ress ENTER to continue or CTRL-C to exit."
        read KEY

        echo ""
        echo -n "Compiling..."
        cd drm
        UP=..
        if [ -d linux -a -d linux-core ]; then
            if [ $KERNEL_MINOR == 6 ]; then
                cd linux-core
            else
                cd linux
            fi
            UP=../..
        fi
        if [ -e Makefile.linux ]; then
                MAKEFILE=Makefile.linux
        else
                MAKEFILE=Makefile
        fi
        # Makefile.linux doesn't have a rule to build .ko-files for 2.6 kernels.
        # They are somehow created automagically after $DRV_MODULE.o is built.
        make -f $MAKEFILE $DRV_MODULE.o >& $UP/$LOGFILE_TMP
        if [ $? != 0 ]; then
                cd $UP
                cat $LOGFILE_TMP >> $LOGFILE
                echo ""
                echo "ERROR: Kernel modules did not compile"
                echo ""
                echo "The DRI drivers can not be installed without the latest kernel modules."
                echo "Installation will be aborted. See the $LOGFILE file for information on"
                echo "what went wrong."
                echo ""
                exit 127;
        else
                echo "done";
        fi
        cd $UP
        unset UP
        cat $LOGFILE_TMP >> $LOGFILE
fi

# Print a last message
print_logo
echo "The script is now ready to complete the installation."
echo ""
echo "ress ENTER to continue or CTRL-C to exit."
read KEY

# Copy files, update config, check config and fix problems
print_logo

copy_files
update_config
check_config

echo ""
echo "ress ENTER to continue."
read KEY

# Print last message
print_logo
echo "The DRI installation is complete."
echo ""
if [ -d drm -a "$X_RUNNING" == "1" ]; then
        echo "Stop your X server, reload the drm module and restart the X server"
        echo "to try the new DRI drivers."
        echo ""
elif [ -d $DRV_NAME -o -d core ]; then
        echo "Restart your X server to try the new DRI drivers."
        echo ""
fi
echo "If you have problems with the DRI after upgrading your drivers"
echo "please visit the DRI website and read the Help and FAQ section."
echo "The FAQ contains solutions to many common problems."
echo ""
echo "Report any bugs, problems and comments on the dri-devel mailing list."
echo ""
echo "Thank you for using the DRI."
echo ""
[/PHP]

这个是install.sh代码中编译的一段。自己的功力不够。。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

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

本版积分规则

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