* Problem with newly compiled kernel 2.6.39 (initrd.img not being created)
@ 2011-06-11 17:45 Naman shekhar Mishra
2011-06-12 1:38 ` Ali Bahar
2011-06-13 1:13 ` Mulyadi Santosa
0 siblings, 2 replies; 3+ messages in thread
From: Naman shekhar Mishra @ 2011-06-11 17:45 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Problem with newly compiled kernel 2.6.39 (initrd.img not being created)
2011-06-11 17:45 Problem with newly compiled kernel 2.6.39 (initrd.img not being created) Naman shekhar Mishra
@ 2011-06-12 1:38 ` Ali Bahar
2011-06-13 1:13 ` Mulyadi Santosa
1 sibling, 0 replies; 3+ messages in thread
From: Ali Bahar @ 2011-06-12 1:38 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Problem with newly compiled kernel 2.6.39 (initrd.img not being created)
2011-06-11 17:45 Problem with newly compiled kernel 2.6.39 (initrd.img not being created) Naman shekhar Mishra
2011-06-12 1:38 ` Ali Bahar
@ 2011-06-13 1:13 ` Mulyadi Santosa
1 sibling, 0 replies; 3+ messages in thread
From: Mulyadi Santosa @ 2011-06-13 1:13 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-06-13 1:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-11 17:45 Problem with newly compiled kernel 2.6.39 (initrd.img not being created) Naman shekhar Mishra
2011-06-12 1:38 ` Ali Bahar
2011-06-13 1:13 ` Mulyadi Santosa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).