* set up new kernel with grub
@ 2007-04-04 16:36 Michael
2007-04-04 15:53 ` linux-os (Dick Johnson)
0 siblings, 1 reply; 7+ messages in thread
From: Michael @ 2007-04-04 16:36 UTC (permalink / raw)
To: linux-kernel
Hi,
I compiled a new kernel: 2.6.20.3, and hope to test it without removing
my old kernel.
Here is what I did by following
http://searchenterpriselinux.techtarget.com/tip/0,289483,sid39_gci1204148,00.html :
I built the kernel in a local directory, say "mydir", with kernel
"bzImage-2.6.20.3" and map file "System.map".
>su (#become a root)
>cp mydir/bzImage-2.6.20.3 /boot/bzImage-2.6.20.3
>cp mydir/System.map /boot/System.map-2.6.20.3
>cd /boot
>ln -s /boot/bzImage-2.6.20.3 /boot/bzImage
>ln -s /boot/System.map-2.6.20.3 /boot/System.map
>vi grub/menu.lst
add a new entry as
**************************************
title Red Hat Linux (2.6.20.3)
root (hd0, 0)
kernel /boot/bzImage ro root=LABEL=/
initrd /boot/initrd-2.6.20.3.img
**************************************
>create an initial ram disk image by
mkinitrd -k /boot/bzImage -i /boot/initrd-2.6.20.3
It reports wrong usage of "mkinitrd", and no initrd-2.6.20.3.img is
created.
Any idea about what's wrong with the "mkinitrd" command ?
Thanks.
Mike
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: set up new kernel with grub
2007-04-04 16:36 Michael
@ 2007-04-04 15:53 ` linux-os (Dick Johnson)
2007-04-05 17:28 ` Michael
0 siblings, 1 reply; 7+ messages in thread
From: linux-os (Dick Johnson) @ 2007-04-04 15:53 UTC (permalink / raw)
To: Michael; +Cc: linux-kernel
On Wed, 4 Apr 2007, Michael wrote:
> Hi,
>
> I compiled a new kernel: 2.6.20.3, and hope to test it without removing
> my old kernel.
You don't need to remove your old kernel. Log in as root.
# cd /usr/src/linux-2.6.20.3
If your current kernel is 2.6.20.3, edit the Makefile to
add some character after "EXTRAVERSION" as EXTRAVERSION= 3x
# cp .config ..
# make distclean
# cp ../.config .
# make oldconfig
# make
# make modules_install
# make install
The result will put the new kernel in the GRUB menu so you can
always go back to the old one if the new one doesn't work.
Cheers,
Dick Johnson
Penguin : Linux version 2.6.16.24 on an i686 machine (5592.65 BogoMips).
New book: http://www.AbominableFirebug.com/
_
\x1a\x04
****************************************************************
The information transmitted in this message is confidential and may be privileged. Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to DeliveryErrors@analogic.com - and destroy all copies of this information, including any attachments, without reading or disclosing them.
Thank you.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: set up new kernel with grub
2007-04-04 15:53 ` linux-os (Dick Johnson)
@ 2007-04-05 17:28 ` Michael
2007-04-06 3:15 ` WANG Cong
0 siblings, 1 reply; 7+ messages in thread
From: Michael @ 2007-04-05 17:28 UTC (permalink / raw)
To: linux-os (Dick Johnson); +Cc: linux-kernel
Hi, Dick,
Your steps work beautifully. Thanks.
If you could explain a little about what happens in each step, that
would be even better.
> # cd /usr/src/linux-2.6.20.3
> If your current kernel is 2.6.20.3, edit the Makefile to
> add some character after "EXTRAVERSION" as EXTRAVERSION= 3x
> # cp .config ..
> # make distclean
> # cp ../.config .
> # make oldconfig
> # make
> # make modules_install
> # make install
Regards,
Mike
----- Original Message -----
From: "linux-os (Dick Johnson)" <linux-os@analogic.com>
To: "Michael" <gonwg@hotmail.com>
Cc: <linux-kernel@vger.kernel.org>
Sent: Wednesday, April 04, 2007 10:53 AM
Subject: Re: set up new kernel with grub
>
> On Wed, 4 Apr 2007, Michael wrote:
>
>> Hi,
>>
>> I compiled a new kernel: 2.6.20.3, and hope to test it without
>> removing
>> my old kernel.
>
> You don't need to remove your old kernel. Log in as root.
>
> # cd /usr/src/linux-2.6.20.3
> If your current kernel is 2.6.20.3, edit the Makefile to
> add some character after "EXTRAVERSION" as EXTRAVERSION= 3x
> # cp .config ..
> # make distclean
> # cp ../.config .
> # make oldconfig
> # make
> # make modules_install
> # make install
>
> The result will put the new kernel in the GRUB menu so you can
> always go back to the old one if the new one doesn't work.
>
> Cheers,
> Dick Johnson
> Penguin : Linux version 2.6.16.24 on an i686 machine (5592.65
> BogoMips).
> New book: http://www.AbominableFirebug.com/
> _
> \x1a\x04
>
> ****************************************************************
> The information transmitted in this message is confidential and may be
> privileged. Any review, retransmission, dissemination, or other use
> of this information by persons or entities other than the intended
> recipient is prohibited. If you are not the intended recipient,
> please notify Analogic Corporation immediately - by replying to this
> message or by sending an email to DeliveryErrors@analogic.com - and
> destroy all copies of this information, including any attachments,
> without reading or disclosing them.
>
> Thank you.
> -
> To unsubscribe from this list: send the line "unsubscribe
> linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: set up new kernel with grub
2007-04-05 17:28 ` Michael
@ 2007-04-06 3:15 ` WANG Cong
2007-04-06 14:23 ` Michael
0 siblings, 1 reply; 7+ messages in thread
From: WANG Cong @ 2007-04-06 3:15 UTC (permalink / raw)
To: Michael; +Cc: linux-os (Dick Johnson), linux-kernel
On Thu, Apr 05, 2007 at 12:28:03PM -0500, Michael wrote:
>Hi, Dick,
>
>Your steps work beautifully. Thanks.
>
>If you could explain a little about what happens in each step, that
>would be even better.
>
>> # cd /usr/src/linux-2.6.20.3
>> If your current kernel is 2.6.20.3, edit the Makefile to
>> add some character after "EXTRAVERSION" as EXTRAVERSION= 3x
>> # cp .config ..
Save your existing config file in the parent directory.
>> # make distclean
Clean the files generated by last compiling.
>> # cp ../.config .
Copy your .config back here.
>> # make oldconfig
"The make oldconfig command causes the kernel configuration process to read in your existing configuration information and then prompt you for a value for any kernel configuration variables that were not provided set the existing kernel configuration file."
>> # make
Check all changed object files, and do the final kernel image link.
>> # make modules_install
Reinstall the newly-compiled modules.
>> # make install
Copy the kernel image and system.map to /boot and modify /boot/grub/menu.lst (or lilo.conf) properly.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: set up new kernel with grub
2007-04-06 3:15 ` WANG Cong
@ 2007-04-06 14:23 ` Michael
2007-04-06 13:34 ` WANG Cong
0 siblings, 1 reply; 7+ messages in thread
From: Michael @ 2007-04-06 14:23 UTC (permalink / raw)
To: WANG Cong; +Cc: linux-os (Dick Johnson), linux-kernel
Hi, Wang,
Thanks for replying. So which step is doing the compilation of each
module , "make oldconfig" or "make" ? For compilation, I mean the step
to compile the source code to .o file.
Regards,
Mike
----- Original Message -----
From: "WANG Cong" <xiyou.wangcong@gmail.com>
To: "Michael" <gonwg@hotmail.com>
Cc: "linux-os (Dick Johnson)" <linux-os@analogic.com>;
<linux-kernel@vger.kernel.org>
Sent: Thursday, April 05, 2007 10:15 PM
Subject: Re: set up new kernel with grub
> On Thu, Apr 05, 2007 at 12:28:03PM -0500, Michael wrote:
>>Hi, Dick,
>>
>>Your steps work beautifully. Thanks.
>>
>>If you could explain a little about what happens in each step, that
>>would be even better.
>>
>>> # cd /usr/src/linux-2.6.20.3
>>> If your current kernel is 2.6.20.3, edit the Makefile to
>>> add some character after "EXTRAVERSION" as EXTRAVERSION= 3x
>>> # cp .config ..
>
> Save your existing config file in the parent directory.
>
>>> # make distclean
>
> Clean the files generated by last compiling.
>
>>> # cp ../.config .
>
> Copy your .config back here.
>
>>> # make oldconfig
>
> "The make oldconfig command causes the kernel configuration process to
> read in your existing configuration information and then prompt you
> for a value for any kernel configuration variables that were not
> provided set the existing kernel configuration file."
>
>>> # make
>
> Check all changed object files, and do the final kernel image link.
>
>>> # make modules_install
>
> Reinstall the newly-compiled modules.
>
>>> # make install
>
> Copy the kernel image and system.map to /boot and modify
> /boot/grub/menu.lst (or lilo.conf) properly.
>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe
> linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: set up new kernel with grub
2007-04-06 14:23 ` Michael
@ 2007-04-06 13:34 ` WANG Cong
0 siblings, 0 replies; 7+ messages in thread
From: WANG Cong @ 2007-04-06 13:34 UTC (permalink / raw)
To: Michael; +Cc: linux-os (Dick Johnson), linux-kernel
On Fri, Apr 06, 2007 at 09:23:38AM -0500, Michael wrote:
>Hi, Wang,
>
>Thanks for replying. So which step is doing the compilation of each
>module , "make oldconfig" or "make" ? For compilation, I mean the step
>to compile the source code to .o file.
>
>Regards,
>
>Mike
>
'Make' does that. 'Make oldconfig' just checks and ajusts the .config file.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-04-06 13:31 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <fa.BNamKVxrrt25RRODKJNDbnxNoSs@ifi.uio.no>
2007-04-04 23:34 ` set up new kernel with grub Robert Hancock
2007-04-04 16:36 Michael
2007-04-04 15:53 ` linux-os (Dick Johnson)
2007-04-05 17:28 ` Michael
2007-04-06 3:15 ` WANG Cong
2007-04-06 14:23 ` Michael
2007-04-06 13:34 ` WANG Cong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox