Skip to contentSkip to conversation

Problem with newly compiled kernel 2.6.39 (initrd.img not being created)

DISCUSSION Naman shekhar Mishra 3 participants 3 messages Jun 11, 2011 – Jun 13, 2011

lore
Share & tools
lore
#0 lore raw

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)...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110611/5926a644/attachment.html

#1 lore raw
Quoted 5 lines · Naman shekhar Mishra

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.)

Quoted 1 line

$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.

Quoted 8 lines

$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

#2 lore raw
In reply to Naman shekhar Mishra

Hi....

Quoted 4 lines · Naman shekhar Mishra

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....

Quoted 2 lines

$make defconfig
$make -j2 CC="ccache gcc"

try to leave out ccache temporarily....... just to make sure you use freshly compiled object files.

Quoted 3 lines

$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

Quoted 3 lines

#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?

Quoted 2 lines

So I checked and there was
no initrd.img in /boot.

that may or may not be the source of the problem.....

Quoted 4 lines

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)...

Signature · 7 lines
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com