- 論壇徽章:
- 0
|
我需要重新編譯下內(nèi)核,并希望能夠從grub中,重新引導(dǎo)這個新編譯內(nèi)核。
我編譯的步驟也是參照網(wǎng)上的,帖子。 步驟如下:
1.新下載的內(nèi)核 linux-2.4.20.tar.bz2,同時拷貝到 /usr/src中
2.#tar xvf linux-2.4.20.tar.bz2 #cd /usr/src/linux-2.4.0
3.#make mrproper
4.#make menuconfig 按我的電腦配置進行(第一次配置,不知道有沒有錯誤)
5.#make dep
6.#make clean
7.#make bzImage
8.#cp /usr/src/linux-2.4.20/arch/i386/boot/bzImage /boot/vmlinuz-2.4.20.
9.#make modules
10.#make modules_install
11.修改,添加gurb(我是仿照上面能夠啟動的內(nèi)核添加的,不知道會不會有錯誤)
title new linux
root(hd0,6)
kernel /vmlinuz-2.4.20 ro root =/ vga=0x0317
12.#reboot 后出現(xiàn)不能啟動,提示錯誤如下:
boot ‘new linux’
root(hd0,6)
fliesystem type is ext2fs,partition type 0x83
kernel /vmlinuz-2.4.2 ro root=/ vga 0x0317
Error 15: Flile not found
這個論壇很好。希望各位有編譯經(jīng)驗者給解答一下: |
|