Problem with newly compiled kernel 2.6.39 (initrd.img not being created)
My platform is Intel 32 bit. I am using kernel 2.6.35-22 generic for these steps and the newly compiled kernel is 2.6.39 Here's my steps: $make defconfig $make -j2 CC="ccache gcc" $make modules #make modules_install #make install #update-grub After these sequence of steps, I tried to boot into the new kernel and there was nothing (except for the blinking caps lock) .So I checked and there was no initrd.img in /boot. So I tried using mkinitranfs and it created the ramdisk and then I booted but still it won't work. Though I can boot into recovery mode but the shell prompt is strange like (initramfs)...
On Sat, Jun 11, 2011 at 11:15:38PM +0530, Naman shekhar Mishra wrote:
My platform is Intel 32 bit.
I am using kernel 2.6.35-22 generic for these steps and the newly compiled kernel is 2.6.39
Here's my steps:
Typically, I precede with 'make mrproper', but AFAIK it won't make a difference if you are compiling a brand new source tree, and doing so _within_ it (ie without a separate build directory.)
$make defconfig
I always go over the resulting .config anyway, to ensure -- though I admit that that can be very time-consuming if you have not done it before.
$make -j2 CC="ccache gcc" $make modules #make modules_install #make install #update-grub
After these sequence of steps, I tried to boot into the new kernel and there was nothing (except for the blinking caps lock) .So I checked and there was no initrd.img in /boot. So I tried using mkinitranfs and it created the ramdisk and then I booted but still it won't work. Though I can boot into recovery mode but the shell prompt is strange like (initramfs)...
Typically, when I am getting an 'initramfs' shell-prompt, I have to tackle issues other than mkinitramfs. The solution has (IIRC) always been to add missing options in the .config file. The lines immediately preceding the shell prompt give a hint as to where things (eg which options) croaked! later, ali
Hi.... On Sun, Jun 12, 2011 at 00:45, Naman shekhar Mishra <namanshekharmishra2@yahoo.in> wrote:
My platform is Intel 32 bit. I am using kernel 2.6.35-22 generic for these steps and the newly compiled kernel is 2.6.39 Here's my steps:
try to preceed it with "make mrproper" first...just to make sure you don't inaccidentally use leftover object files from previous compilation....
$make defconfig $make -j2 CC="ccache gcc"
try to leave out ccache temporarily....... just to make sure you use freshly compiled object files.
$make modules #make modules_install #make install
I am not 100% whether "make install" implies "make bzImage". Personally, I suggest this order: make bzImage (check whether you indeed see arch/x86/boot/bzImage....) make modules && make modules_install make install
#update-grub After these sequence of steps, I tried to boot into the new kernel and there was nothing (except for the blinking caps lock) .
Simply blank? no previous message? even grub's kernel selection screen?
So I checked and there was no initrd.img in /boot.
that may or may not be the source of the problem.....
So I tried using mkinitranfs and it created the ramdisk and then I booted but still it won't work. Though I can boot into recovery mode but the shell prompt is strange like (initramfs)...
-- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
participants (3)
-
Ali Bahar -
Mulyadi Santosa -
Naman shekhar Mishra