kernel compile and load - Linux

By Zanna
at 2013-10-31T10:27
at 2013-10-31T10:27
Table of Contents
我的環境:
Ubuntu 12.04
Linux kernel 3.5.0.42
gcc 4.6.3
我需要安裝一個kernel為2.6的環境
參考鳥哥編譯安裝linux 2.6.34
http://linux.vbird.org/linux_basic/0540kernel.php#kernel_source_install
make bzImage我成功的產生了bzImage 並且複製到了 /boot/vmlinuz-2.6.34.14
make modules 之後 make modules_install 也順利完成
可是接下來我卻看不懂如何載入這個已經編好的kernel
鳥哥先用mkinitrd
我的ubuntu沒有這個指令
試著安裝 apt-get install initrd-tools出現
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package initrd-tools
google文章說到應該用mkinitramfs
我得到
# mkinitramfs -k -o /boot/vmlinuz-2.6.34.14 2.6.34.14
Working files in /tmp/mkinitramfs_8ZXZpK and overlay in
/tmp/mkinitramfs-OL_ytn9bg
(我完全不知道mkinitramfs-OL_ytn9bg目錄中,眾多檔案到底該如何使用)
接著鳥哥的CentOS修改
# vim /boot/grub/menu.lst
title CentOS testing kernel from vbird
root (hd0,0)
kernel /boot/vmlinuz-2.6.30.3vbird ro root=LABEL=/ rhgb
initrd /boot/initrd-2.6.30.3vbird.img
(好簡單阿 加入新的kernel & initrd路徑就好了)
但是ubuntu卻沒這檔案!!!!!
那ubuntu該怎麼載入新編好的kernel? 怎麼製作多重核心開機選項?
整個卡關
麻煩版友幫忙
謝謝
--
Ubuntu 12.04
Linux kernel 3.5.0.42
gcc 4.6.3
我需要安裝一個kernel為2.6的環境
參考鳥哥編譯安裝linux 2.6.34
http://linux.vbird.org/linux_basic/0540kernel.php#kernel_source_install
make bzImage我成功的產生了bzImage 並且複製到了 /boot/vmlinuz-2.6.34.14
make modules 之後 make modules_install 也順利完成
可是接下來我卻看不懂如何載入這個已經編好的kernel
鳥哥先用mkinitrd
我的ubuntu沒有這個指令
試著安裝 apt-get install initrd-tools出現
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package initrd-tools
google文章說到應該用mkinitramfs
我得到
# mkinitramfs -k -o /boot/vmlinuz-2.6.34.14 2.6.34.14
Working files in /tmp/mkinitramfs_8ZXZpK and overlay in
/tmp/mkinitramfs-OL_ytn9bg
(我完全不知道mkinitramfs-OL_ytn9bg目錄中,眾多檔案到底該如何使用)
接著鳥哥的CentOS修改
# vim /boot/grub/menu.lst
title CentOS testing kernel from vbird
root (hd0,0)
kernel /boot/vmlinuz-2.6.30.3vbird ro root=LABEL=/ rhgb
initrd /boot/initrd-2.6.30.3vbird.img
(好簡單阿 加入新的kernel & initrd路徑就好了)
但是ubuntu卻沒這檔案!!!!!
那ubuntu該怎麼載入新編好的kernel? 怎麼製作多重核心開機選項?
整個卡關
麻煩版友幫忙
謝謝
--
Tags:
Linux
All Comments

By Doris
at 2013-11-03T02:20
at 2013-11-03T02:20

By Kyle
at 2013-11-05T22:17
at 2013-11-05T22:17

By Erin
at 2013-11-10T16:54
at 2013-11-10T16:54

By Audriana
at 2013-11-11T12:19
at 2013-11-11T12:19

By Sandy
at 2013-11-13T16:32
at 2013-11-13T16:32

By Gilbert
at 2013-11-16T04:38
at 2013-11-16T04:38

By Callum
at 2013-11-18T00:24
at 2013-11-18T00:24

By Joseph
at 2013-11-22T20:45
at 2013-11-22T20:45

By Connor
at 2013-11-26T08:26
at 2013-11-26T08:26

By Zenobia
at 2013-11-29T07:41
at 2013-11-29T07:41

By Ethan
at 2013-12-03T18:51
at 2013-12-03T18:51

By Rae
at 2013-12-04T16:33
at 2013-12-04T16:33

By Lucy
at 2013-12-09T15:00
at 2013-12-09T15:00

By Delia
at 2013-12-11T04:22
at 2013-12-11T04:22

By Andrew
at 2013-12-15T22:33
at 2013-12-15T22:33

By Bennie
at 2013-12-20T18:17
at 2013-12-20T18:17

By Todd Johnson
at 2013-12-24T10:00
at 2013-12-24T10:00

By Bethany
at 2013-12-28T16:03
at 2013-12-28T16:03

By Daniel
at 2013-12-28T18:39
at 2013-12-28T18:39

By Queena
at 2014-01-02T15:22
at 2014-01-02T15:22

By Caroline
at 2014-01-03T20:46
at 2014-01-03T20:46

By Steve
at 2014-01-07T20:34
at 2014-01-07T20:34

By Mason
at 2014-01-10T18:58
at 2014-01-10T18:58

By Olga
at 2014-01-15T07:13
at 2014-01-15T07:13

By Madame
at 2014-01-16T03:39
at 2014-01-16T03:39

By Olivia
at 2014-01-17T08:23
at 2014-01-17T08:23

By Brianna
at 2014-01-17T18:10
at 2014-01-17T18:10
Related Posts
RedHat Enterprise Linux 5.7

By Ula
at 2013-10-30T11:03
at 2013-10-30T11:03
雲端硬碟同步軟體在Linux

By Donna
at 2013-10-29T19:40
at 2013-10-29T19:40
新手如何學習Linux

By Lauren
at 2013-10-29T17:45
at 2013-10-29T17:45
networking restart

By Yuri
at 2013-10-29T14:50
at 2013-10-29T14:50
ubuntu用bt後網路斷線

By Charlotte
at 2013-10-28T20:42
at 2013-10-28T20:42