Debian内核从3.2.0.4-amd64升级到3.12.0

时间:2017-05-11 21:11:40

标签: kernel debian upgrade

我尝试按照以下说明从3.2.0.4到3.12.0创建内核。

cd /usr/src/linux
tar -xvjf linux-3.12.tar.bz2
cd /usr/src/linux/linux-3.12 
make defconfig
make menuconfig
cd /usr/src/linux/linux-3.12/
make clean    
make bzImage
make modules
make modules_install
cp /usr/src/linux/linux-3.12/arch/x86/boot/bzImage /boot/bzImage-neu
cp /usr/src/linux/linux-3.12/System.map /boot/System.map-neu
cd /usr/src/linux/linux-3.12
update-initramfs -c -k 3.12.0

vi /etc/grub.d/40_custom

#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.


menuentry "bzImage-neu" {
        set root=(hd0,1)
        linux /bzImage-neu root=UUID=9f4c876a-d160-4c04-8093-53925f00121f ro
        initrd /initrd.img-3.12.0
}


update-grub

不幸的是,我收到以下错误消息

Gave up waiting root device.  Common problems:
 - Boot args (cat /proc/cmdline)
  - Check rootdelay= (did the system wait long enough?)
  - Check root= (did the system wait for the right device?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  /dev/disk/by-uuid/9f4c876a-d160-4c04-8093-53925f00121f does not exist
Dropping to a shell!

有人可以帮助我解决问题吗?

0 个答案:

没有答案