centos 编译内核

编译步骤:
   1. make mrproper #清理上次编译的现场  
   2. make menuconfig #配置内核  
   3. make #编译内核及内核模块  
   4. make modules_install #将内核模块安装到 /lib/modules  
   5. make install #将内核 vmlinuz 安装到 /boot/  

在编译3.2.15和3.4.2时,运行:
make install :
sh /home/ashu/linux-3.0.4/linux-3.0.4/arch/x86/boot/install.sh 3.0.4
arch/x86/boot/bzImage \
    System.map "/boot"
ERROR: modinfo: could not find module fuse
ERROR: modinfo: could not find module sunrpc
ERROR: modinfo: could not find module ip6t_REJECT
ERROR: modinfo: could not find module nf_conntrack_ipv6
ERROR: modinfo: could not find module ip6table_filter
ERROR: modinfo: could not find module ip6_tables
ERROR: modinfo: could not find module ipv6
ERROR: modinfo: could not find module uinput
ERROR: modinfo: could not find module snd_ens1371
ERROR: modinfo: could not find module gameport
ERROR: modinfo: could not find module snd_rawmidi
ERROR: modinfo: could not find module snd_ac97_codec
ERROR: modinfo: could not find module ac97_bus
ERROR: modinfo: could not find module snd_seq
ERROR: modinfo: could not find module snd_seq_device
ERROR: modinfo: could not find module snd_pcm
ERROR: modinfo: could not find module ppdev
ERROR: modinfo: could not find module snd_timer
ERROR: modinfo: could not find module parport_pc
ERROR: modinfo: could not find module snd
ERROR: modinfo: could not find module parport
ERROR: modinfo: could not find module microcode
ERROR: modinfo: could not find module soundcore
ERROR: modinfo: could not find module vmware_balloon
ERROR: modinfo: could not find module snd_page_alloc
ERROR: modinfo: could not find module pcnet32
ERROR: modinfo: could not find module mii
ERROR: modinfo: could not find module i2c_piix4
ERROR: modinfo: could not find module i2c_core
ERROR: modinfo: could not find module mptspi
ERROR: modinfo: could not find module mptscsih
ERROR: modinfo: could not find module mptbase
ERROR: modinfo: could not find module scsi_transport_spi

上面错误是有配置文件导致的,将系统的/boot/config文件复制使用即可:
cp /boot/config .config
make oldconfig
但有可能出现同样错误。经过测试,可忽略这个错误。系统照样可以使用这次编译的内核启动。

我的未解决问题:
1、下载 git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git 的内核2.6.32.57编译后,启动时在横条滚到尽头时黑屏,不动了。但键盘什么的都是好的,编译了好多次,晚上下的config试过,自己机器原本的config文件也试过,但始终不行。

2、编译xen.git 的next-3.2时。启动正常,但如果作dom0启动时,在用图形界面登录输入密码后进入时卡死,怎么也不动了。但如果在启动图形登录界面时进入tty登录就可以。

3、偶尔可以使用3.2.15内核作dom0登录进入,但在运行instance出现问题:
xm create winxp.cfg
Using config file "/etc/xen/winxp.cfg".
Started domain winbox (id=4)
Modules/gcmodule.c:310: update_refs: Assertion "gc->gc.gc_refs == (-3)" failed.
object  :
type    : NULL
refcount: 0
address : 0x7f754266e0a0
Aborted (core dumped)
此时图形界面会老是出现花屏,xp的安装会一直停在33分钟不动。

你可能感兴趣的:(xen)