LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: 北南南北

Kernel 2.6x 编译过程

[复制链接]
发表于 2004-3-2 05:14:56 | 显示全部楼层
准备今晚拿我的RF来做实验, 看看成不成功。。(要不要祷告啊)
发表于 2004-3-10 21:53:31 | 显示全部楼层
系统重装后没有安装QT什么的,只能make menuconfig
今天编译了一天内核,都出现的是同一个问题:
Mouting root filesystem
kjournald starting.Commit interval 5 seconds
EXT3-fs:mounted filesystem with ordered data mode.
pivotroot:pivot-root(/sysroot,/sysroot/initrd) failed:2
umount /initrd/proc failed :2
Freeing unused kernel memory :216k freed
Kernel panic :No init found .Try passing init= option to kernel.
我的ext3,ext2均已编进内核,
过程是cd linux-2.6.3
      make mrproper   
      make menuconfig
      make bzImage && make modules && make modules_install && make install
grub.conf配置也改

下面列出一些信息供参考
[root@www root]# vi /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,9)
#          kernel /vmlinuz-version ro root=/dev/hda18
#          initrd /initrd-version.img
#boot=/dev/hda
default=2
timeout=10
splashimage=(hd0,9)/grub/splash.xpm.gz
title Red Hat Linux (2.6.3)
        root (hd0,9)
        kernel /vmlinuz-2.6.3 ro root=/dev/hda10
        initrd /initrd-2.6.3.img
title Red Hat Linux
        root (hd0,9)
        kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
        initrd /initrd-2.4.20-8.img
title Windows XP
        rootnoverify (hd0,0)
        chainloader +1
title Debian
        rootnoverify (hd0,8)
        chainloader +1

       
[root@www root]# vi /etc/grub.conf
[root@www root]# cd /boot
[root@www boot]# ls
boot.b           initrd-2.4.20-8.img  message               os2_d.b              System.map-2.6.3.old  vmlinuz-2.6.3
chain.b          initrd-2.6.3.img     message.ja            System.map           vmlinux-2.4.20-8      vmlinuz-2.6.3.old
config-2.4.20-8  kernel.h             module-info           System.map-2.4.20-8  vmlinuz
grub             lost+found           module-info-2.4.20-8  System.map-2.6.3     vmlinuz-2.4.20-8
[root@www boot]#
   //有一个可执行文件vmlinuz-2.4.20-8 ,确没有vmlinuz-2.6.3的可执行文件
   
[root@www boot]# df -lh
文件系统              容量  已用 可用 已用% 挂载点
/dev/hda10            981M  116M  815M  13% /
/dev/hda10            190M   14M  167M   8% /boot
/dev/hda16            1.5G   35M  1.4G   3% /home
/dev/hda13            2.4G   33M  2.3G   2% /opt
/dev/hda7             2.1G  129M  2.0G   7% /mnt/linux
/dev/hda8             7.7G  4.0K  7.7G   1% /mnt/amuse
none                   78M     0   78M   0% /dev/shm
/dev/hda15            981M   18M  914M   2% /tmp
/dev/hda14            2.4G  2.3G   61M  98% /usr
/dev/hda12            479M  8.9M  445M   2% /usr/local
/dev/hda11            2.9G  102M  2.7G   4% /var
[root@www boot]# fdisk -l
Warning: deleting partitions after 16

Disk /dev/hda: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1       382   3068383+   b  Win95 FAT32
/dev/hda2           383      4998  37078020    f  Win95 Ext'd (LBA)
/dev/hda5           383      1147   6144831    b  Win95 FAT32
/dev/hda6          1148      1657   4096543+   b  Win95 FAT32
/dev/hda7          1658      1925   2152678+   b  Win95 FAT32
/dev/hda8   *      1926      2932   8088696    b  Win95 FAT32
/dev/hda9          2933      3416   3887698+   b  Win95 FAT32
/dev/hda10         3417      3441    200781   83  Linux
/dev/hda11         3442      3820   3044286   83  Linux
/dev/hda12         3821      3883    506016   83  Linux
/dev/hda13         3884      4197   2522173+  83  Linux
/dev/hda14         4198      4515   2554303+  83  Linux
/dev/hda15         4516      4642   1020096   83  Linux
/dev/hda16         4643      4833   1534176   83  Linux
[root@www boot]#

哪位兄弟帮帮忙呀?
还有个问题
我用2。4的内核做的服务器配置,编译2,6后还可用吗,谢先
发表于 2004-3-30 15:04:13 | 显示全部楼层
编译了不下五次,终于成功.
接照南北兄的不能成功.
内核为2.6.4
发表于 2004-3-30 15:05:33 | 显示全部楼层
编译了不下五次,终于成功.
接照南北兄的不能成功.
内核为2.6.4
发表于 2004-3-30 20:12:05 | 显示全部楼层
一次成功,只是make,没做make modules_install不过不影响使用,呵呵被我选为模块的真是很少用到
发表于 2004-4-11 14:28:48 | 显示全部楼层
编译成功了但是在启动时出现好多faild


请问如何解决???看来北南兄的方法欠妥!!!!
发表于 2004-4-22 22:23:20 | 显示全部楼层
我们这些linux菜鸟,特别想知道配置自己系统时

=========那些模块都是干什么用的=========

本意味配置时看看那些系统提供的说明,觉得对自己就不必装上了,可以配置好了,编译时就出一大堆一大堆的 error,warnning

请版主尽快给我们这些菜鸟总结一下,系统不升级真是不爽呀!
发表于 2004-4-30 16:51:24 | 显示全部楼层

双CPU怎么才能同时工作

北南老大,我的双CPU XEON,编译的时候要做什么改动吗?
我这样选择行吗?
  Subarchitecture Type (PC-compatible)  --->                                            x x
  x x              Processor family (Pentium-III/Celeron(Coppermine)/Pentium-III Xeon)  --->             x x
  x x         
  • Generic x86 support                                                                   x x
      x x          [ ] HPET Timer Support                                                                    x x
      x x         
  • Symmetric multi-processing support                                                    x x
      x x          (8)   Maximum number of CPUs (2-255)                                                      x x
      x x          [ ] Preemptible Kernel                                                                    x x
      x x         
  • Machine Check Exception  
    编好后GRUB要不要对双CPU配置做特别的改动?
  • 发表于 2004-4-30 16:52:24 | 显示全部楼层

    双CPU怎么才能同时工作

    北南老大,我的双CPU XEON,编译的时候要做什么改动吗?
    我这样选择行吗?
      Subarchitecture Type (PC-compatible)  --->                                            x x
      x x              Processor family (Pentium-III/Celeron(Coppermine)/Pentium-III Xeon)  --->             x x
      x x         
  • Generic x86 support                                                                   x x
      x x          [ ] HPET Timer Support                                                                    x x
      x x         
  • Symmetric multi-processing support                                                    x x
      x x          (8)   Maximum number of CPUs (2-255)                                                      x x
      x x          [ ] Preemptible Kernel                                                                    x x
      x x         
  • Machine Check Exception  
    编好后GRUB要不要对双CPU配置做特别的改动?
  • 发表于 2004-5-8 23:44:49 | 显示全部楼层
    强烈不建议单独升级内核,除非你是个很高很高很高的高手!!!

    否则就是跟自己过不去,耽误自己的时间!!!!

    用FEDORA吧,期待着正式版的出现啊。。。。。。。。。。
    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

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