Re: set up new kernel with grub

2007-04-06 Thread WANG Cong
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.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: set up new kernel with grub

2007-04-06 Thread Michael

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" <[EMAIL PROTECTED]>

To: "Michael" <[EMAIL PROTECTED]>
Cc: "linux-os (Dick Johnson)" <[EMAIL PROTECTED]>; 


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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: set up new kernel with grub

2007-04-06 Thread Michael

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 [EMAIL PROTECTED]

To: Michael [EMAIL PROTECTED]
Cc: linux-os (Dick Johnson) [EMAIL PROTECTED]; 
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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: set up new kernel with grub

2007-04-06 Thread WANG Cong
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.

-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: set up new kernel with grub

2007-04-05 Thread WANG Cong
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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: set up new kernel with grub

2007-04-05 Thread Michael

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)" <[EMAIL PROTECTED]>

To: "Michael" <[EMAIL PROTECTED]>
Cc: 
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/
_



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 [EMAIL PROTECTED] - 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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: set up new kernel with grub

2007-04-05 Thread WANG Cong
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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: set up new kernel with grub

2007-04-05 Thread Michael

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) [EMAIL PROTECTED]

To: Michael [EMAIL PROTECTED]
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/
_



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 [EMAIL PROTECTED] - 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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: set up new kernel with grub

2007-04-04 Thread Robert Hancock

Michael wrote:

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 


Those instructions are way out of date. All you should need to do is 
"make modules_install install".


--
Robert Hancock  Saskatoon, SK, Canada
To email, remove "nospam" from [EMAIL PROTECTED]
Home Page: http://www.roberthancock.com/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: set up new kernel with grub

2007-04-04 Thread linux-os \(Dick Johnson\)

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/
_



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 
[EMAIL PROTECTED] - 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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


set up new kernel with grub

2007-04-04 Thread Michael

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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


set up new kernel with grub

2007-04-04 Thread Michael

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

-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: set up new kernel with grub

2007-04-04 Thread linux-os \(Dick Johnson\)

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/
_



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 
[EMAIL PROTECTED] - 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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: set up new kernel with grub

2007-04-04 Thread Robert Hancock

Michael wrote:

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 


Those instructions are way out of date. All you should need to do is 
make modules_install install.


--
Robert Hancock  Saskatoon, SK, Canada
To email, remove nospam from [EMAIL PROTECTED]
Home Page: http://www.roberthancock.com/

-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/