红联Linux门户
Linux帮助

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

发布时间:2012-10-24 23:00:41来源:红联作者:yupanlovehlq
[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系统 。






文章评论

共有 24 条评论

  1. liuji998 于 2013-10-04 19:11:47发表:

    谢谢分享!新手任务

  2. czxJAVA2009 于 2013-07-04 08:39:11发表:

    恩。。不错。。。。。。。。

  3. naokingkong 于 2013-06-29 23:33:14发表:

    初学者看着好深奥

  4. lc52mm 于 2013-04-07 18:26:12发表:

    学习无止境!~~~

  5. deng_zhao333 于 2013-04-03 01:10:28发表:

    路过,支持楼主,支持linux

  6. yonggui 于 2013-03-18 22:25:41发表:

    内核太旧会不会。。

  7. study007 于 2013-03-08 10:53:02发表:

  8. 6mChong1lCheng 于 2013-02-18 10:53:32发表:

    be more steady to be.If isn't oneself's self-discipline of different, perhaps and early appear a problem.Leave of is the capability that the very good chain turns to comprehend those absorptions, the rule, strength becomes his/her own strength.Just probably get into the next layer so.Hence make moves is all specially little.Be follow to have no sky and necessarily kill 2 people.Imitate a Buddha carefree court stroll.Really seek up ownly just a shot shot fly.Simultaneously fight part the chain turn.See five lines of pullout of troops of teachings at this time.Although don't know what is the row.
    Still keep peeping out light joy in the heart.The combat ends on the whole.This time, seem again is live down.Also have no idea to left for to make track for to kill those escape of five lines of teach a superior.Just sign in the sky don't stop Jing to turn those rule, strength.A figure once swayed at this time.But is that destruction evil Zu to divide time to come.Big Xiu a flick immediately a superior of taking those destruction army corps surplus.
    Immediately after toward that evil teach the superior of luckily survive of face up once swept one by one.The taste finally stops in having no body in the sky.Toward public say:"The bore Qiu has been already exterminated.Originally teach great victory.This order has no sky for the head now.In order to assist, other old Zus capture Hong Huang the north.Other etc.ses this pass intends again.You remember 1:00.Never give offense to a sorcery clan, ignore is who as long as give offense to a sorcery clan.This in no case passes.These is also other evil Zus to together make the decision of."Words sound a fall to turn light but go.
    Wang Xuan towards to have no sky to say:"Congratulations way friend, perhaps evil from now on teach five square evil Zus under.It Be about to take you as."Have no sky far away head to say:"Who know that they still have successor.Leave, take a person to take north."Finish saying to let out his own have no army corps in sky.Wang Xuan is to let out sorcery mountain army corps.One makes next, the superior of surplus is also along with have no sky toghter facing the north to kill.
    This time take north to pour is smoothly matchless.Five lines of superiors who teach almost disappeared quietly.Connect old Zu of that dinosaur don't also come out to cause disturbance.But is that dinosaur the old Zu is subjected to of the incitement is too big.Return to oversea oneself captures of the island closed the border to go to.The very quick north returns to evil teach of governance under.In addition to occasionally that west teaches out Dao to cause disturbance.It is almost evil to teach truely unified north.As for east, southern.5 lines teach to seem to lose a trace and shadow.Fix Luo to teach and three eye

  9. yu13445813 于 2013-02-08 07:36:07发表:

    不知道我的情况你能帮我搞定麽
    我装了虚拟,然后装了sp3,之后win7就不见了,没备份,想卸了重装

  10. 爱大猪 于 2013-01-17 14:40:38发表:

    学习

  11. hnnyrjy 于 2012-12-24 06:14:21发表:

    学习中]

  12. 于 2012-12-19 15:10:11发表:

    红旗4 红旗5 红旗 6 都很不错,可惜就是更新速度慢呀。

  13. swt123457 于 2012-12-17 20:42:08发表:

    国家要加把劲呐

  14. fly54211 于 2012-12-17 11:35:34发表:

    我想问一下 不知道为什么在WMWARE 9.0的虚拟机中安装 提示找不到虚拟CPU 然后没安装成功 这是作何解呢

  15. fly54211 于 2012-12-14 16:44:45发表:

    {:2_91:} 这个帖子写的不错 很有霸气 确实要支持国产的红旗LINUX 我觉得6.0开始就已经有很大的提升了

  16. gky2009514 于 2012-12-07 11:18:34发表:

    新手完成任务,求下书籍~

  17. twg123 于 2012-11-24 23:09:42发表:

    新手飘过

  18. txwgzyzz 于 2012-11-13 18:45:45发表:

    好多人都说红旗不行,没用过,不清楚

  19. 596408741 于 2012-11-13 13:23:41发表:

    感谢楼主分享

  20. okzokz123 于 2012-10-28 17:02:45发表:

    2.6.32以上内核推荐 make localmodconfig ,超极速内核配置.

  21. yupanlovehlq 于 2012-10-25 20:22:18发表:

    make oldconfig
    是根据旧内核 ,没有新内核的参数,需要配置。有的,不需要配置。

  22. okzokz123 于 2012-10-25 10:39:46发表:

    需要注意的是,最好找个相近的版本的config文件当做范本来导入。因为版本跨度太大,有些内核配置树产生了较大的变化,会在配置和编译的时候产生遗漏。一个取巧的办法是在其他发行版里面找个你需要编译的版本相近的内核镜像包解开得到其config文件,最重要的是自己要核对具体配置,一般问题不大,取你所需即可。

  23. Growth兆 于 2012-10-25 09:48:06发表:

    感谢yupanlovehlq的分享,本贴加入到顶置的用红旗Linux必看,红旗Linux系统教程贴中

  24. Permanent 于 2012-10-25 08:52:46发表:

    这小的拿去参赛