編譯核心問題 - Linux

Table of Contents

Hi all,

環境:Ubuntu 10.04 LTS
NB:HP Presorio V3000

第一次編譯 linux kerenl,編譯完kernel之後遇到重新開機卻無法順利開機問題。

build steps如下:
1.下載linux-2.6.37.2.tar.bz2
2.cd linux-source
3.cp /boot/config-2.6.32-28-generic .config
4.make clean
5.sudo make menuconfig
6.Load .config file , exit and saved.
7.make-kpkg --revision 0.0.1 --initrd kernel_image kernel_headers
8.build done.
9.dpkg -i linux-headers-2.6.37.2_0.0.1_amd64.deb
10.dpkg -i linux-image-2.6.37.2_0.0.1_amd64.deb

以上,編譯完之後,有產生headers 及image,然後下完指令dpkg -i,reboot 電
腦,選擇Ubuntu,Linux 2.6.37.2 卻無法正常開啟。
顯示的msg如下:
Kernel panic - not syncing: VFS: Unable to mount root fs on
unknown-block(0,0)
圖:http://ppt.cc/a0m9


有先google過此問題,但是討論串有點雜
我該如何去確定這個問題,是否有前輩可以指點迷津。

--

All Comments

Wallis avatarWallis2011-02-28
kernel cmdline長怎樣?
Hamiltion avatarHamiltion2011-03-04
先把 linux後面的quiet 和splash拿掉,再把圖po上來吧
Olga avatarOlga2011-03-08
我猜是沒做 initrd image ... 開機沒辦法掛檔案系統
如果你懶得弄initrd,那就把你root檔案系統編進 kernel XD
Oscar avatarOscar2011-03-08
^的module
Mason avatarMason2011-03-09
我覺得是沒包到sata的driver耶
Kyle avatarKyle2011-03-11
恩,是initrd image 沒做 orz...
sudo update-initramfs -k 2.6.37.2 -c
James avatarJames2011-03-15
再update grub ; reboot
就可以了><