centos 編譯核心

2021-06-18 17:32:14 字數 2922 閱讀 1003

編譯步驟:

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

但有可能出現同樣錯誤。經過測試,可忽略這個錯誤。系統照樣可以使用這次編譯的核心啟動。

我的未解決問題:

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分鐘不動。

centos編譯核心

tar zxvf linux 2.6.27.tar.gz c usr src cd usr src linux 2.6.27 make menuconfig 現在出現乙個字元介面,主要是去掉諸如wireless等伺服器根本用不著的功能。弄完了,儲存,退出。make 可能要很長時間 make modu...

CentOS 編譯核心

wget tar zxvf linux 2.6.27.tar.gz c usr src cd usr src linux 2.6.27 make menuconfig 現在出現乙個字元介面,主要是去掉諸如 wireless 等伺服器根本用不著的功能。弄完了,儲存,退出。make 可能要很長時間 ma...

CentOS試編譯核心

環境 centos 6.8 2.6.32 642.el6.x86 64 核心 2.將核心打包檔案解壓到 usr src kernels 目錄下,進入 linux 2.6.38 資料夾下 3.因為我是第一次編譯這個核心檔案,先鍵入 make mrproper 來將以前進行過的核心功能選擇檔案刪除掉 5...