I am using ubuntu 11.04
I have a custom 2.6.36.4 kernel source (say in linux_src
)
Did make mrproper
Copied my current configuration from /boot
to linux_src/.config
Did a make menuconfig
, instructed it to load the configuration file .config
.
In general setup, I added the string rr
to the kernel version number.
Exited the configuration.
Did a make && make modules_install && make install
as superuser.
This created the vmlinuz-2.6.36.4rr image in /boot; the corresponding directory in /lib/modules. System.map in /boot, but not initrd image
So I ran the following command :
cd /boot && sudo mkinitramfs -k -o initrd.img-2.6.36.4rr
Finally I ran sudo update-grub
. Grub found my new linux image and the new initrd image.
On booting, the newly installed kernel was listed in my boot options. I selected it, and then the screen went blank (but not black, it just showed some default ubuntu theme colored blank screen) and stuck there.
I suspect the makeinitramfs process was the culprit.
On the other hand when I had installed the same kernel using make-kpkg
and dpkg
I had to do no other thing, (not even initramfs) and the kernel had booted perfectly (I don't want to use this method to install kernel).
Please help.
EDIT : I made some progress
Instead of using :
cd /boot && sudo mkinitramfs -k -o initrd.img-2.6.36.4rr
I used
cd /boot && sudo mkinitramfs -k -o initrd.img-2.6.36.4rr 2.6.36.4rr
which i believe is the correct way to use mkinitramfs.
However, now my boot process ends at "gave up waiting for the root device" and an initramfs prompt
quiet
andslash
from the kernel command line, and addinit=/bin/sh
?c
while in grub boot menu (when booting).