红旗6 SP3 成功编译kernel 3.6.2,进入x系统(再说红旗Linux,不行的人,砍死你)

作者: yupanlovehlq 2012-10-24 23:00:41
[i=s] 本帖最后由 yupanlovehlq 于 2012-10-25 20:28 编辑 [/i]

红旗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 menuconfig 或是 make oldconfig ## make menuconfig 是全新配置内核参数,make oldconfig 是把旧内核参数配置复制后才能使用。
#make -j4
#make modules_install
#make install


4. 重启系统,进入x图形界面,花屏.需要关闭开源的显卡驱动nouveau 才可以正常使用。

5,然后进入终端模式,下载新版N卡驱动,安装显卡驱动,提示:


-> 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.


按提示操作安装驱动,然后停止安装。nvidia会自动禁用nouveau 驱动。
但是重启系统后,却可以正常进入 x图形界面。
我的 CMI8738 声卡也终于显示正常了。
然后再次安装N卡新版驱动。
提示以下错误。
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系统 。






相关资讯