虚拟化容器,大数据,DBA,中间件,监控。

红旗6 SP3 成功编译kernel 3.6.2,进入x系统

21 10月
作者:admin|分类:系统运维
红旗6 SP3 成功编译kernel 3.6.2,进入x系统

硬件信息 :

      
处理器    英特尔 Pentium(奔腾) 4 3.00GHz
主板    华硕 P5MT-MX/C (英特尔 E7230/3000/3010 - ICH7)
内存    2 GB ( SDRAM )
主硬盘    西数 WDC WD1600AAJS-00PSA0 ( 160 GB / 7200 转/分 )
显卡    Nvidia GeForce 210 ( 128 MB / 耕昇 )
显示器    长城 CGC0004 L2288 ( 21.7 英寸 )
光驱    先锋 DVD-ROM DVD-128P DVD光驱
声卡    骅讯 CMI8738/C3DX PCI Audio Device
网卡    瑞昱 RTL8169/8110 Family PCI-E Gigabit Ethernet NIC

1,下载kernel-3.6.2.tar.gz源码包,并放在 /usr/src/kernels
      目录下。

2. 解压源码包
# cd /usr/src/kernels/
# tar -jxvf linux-3.6.2.tar.gz

3. 设定编译选项
# cd linux-3.6.2


#cp /boot/config-2.6.31-4 .config
#make oldconfig  或是 make menuconfig
#make -j4
#make modules_install
#make install


4. 重启系统,进入x图形界面,花屏.
5,然后进入终端模式,安装显卡驱动,提示:

  
-> Installing NVIDIA driver version 295.59.
ERROR: The Nouveau kernel driver is currently in use by your system.  This driver is incompatible with the NVIDIA driver, and must be disabled before proceeding.  Please consult the NVIDIA driver README and your Linux distribution's documentation for details on how to correctly disable the Nouveau kernel driver.
-> For some distributions, Nouveau can be disabled by adding a file in the modprobe configuration directory.  Would you like nvidia-installer to attempt to create this modprobe file for you? (Answer: Yes)
-> The modprobe configuration file to disable Nouveau, /etc/modprobe.d/nvidia-installer-disable-nouveau.conf, has been written.  For some distributions, this may be sufficient to disable Nouveau; other distributions may require modification of the initial ramdisk.  Please reboot your system and attempt NVIDIA driver installation again.  Note if you later wish to reenable Nouveau, you will need to delete the file /etc/modprobe.d/nvidia-installer-disable-nouveau.conf.
ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.


  
按提示操作安装驱动,然后停止安装。
但是重启系统后,却可以正常进入 x图形界面。
我的 CMI8738 声卡也终于显示正常了。

但是不能使用nvidia 官方驱动,然后下载最新版驱动安装.
提示以下错误。
ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.
 
进入内核目录。执行以下命令:

# cd /usr/src/kernels/linux-3.6.2
# make oldconfig && make prepare && make scripts

然后重新安装 nvidia-linux-x86-304.60.run驱动包,
这次可以正常安装。并成功进入 x系统 。



抓图1.jpg(232.57 KB, 下载次数: 0)

1 分钟前 上传

下载次数: 0





浏览2631 评论0
返回
目录
返回
首页
秀脱linux实战笔记linux-kernel-3.0.3实战片 安装nvidia官方驱动,ERROR: Kernel configuration is invalid.