LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   How do I make sure Im booting onto my custom kernel? (http://www.linuxquestions.org/questions/linux-general-1/how-do-i-make-sure-im-booting-onto-my-custom-kernel-106710/)

Kramer 10-21-2003 10:54 AM

How do I make sure Im booting onto my custom kernel?
 
Ive compiled a kernel with some stuff I need, taking out some stuff I dont need. How do I make sure that Im booting onto the new kernel? I think Im still botting onto the old:(

jkobrien 10-21-2003 11:19 AM

After "make dep", if you added in some text, like "-custom", to the "EXTRAVERSION" line in the Makefile then "uname -r" will print the kernel release. e.g. "2.4.20-20.0-custom".

John

Kramer 10-21-2003 11:23 AM

Ive done that, but the uname -r still says 2.4.21-0.13mdk, which is the default kernel, and not my custom one.

morbeis 10-21-2003 11:28 AM

Are you using LILO ? are there 2 kernels in the list to choose from ? what did you name your new kernel and is it in the list ?

Skyline 10-21-2003 11:37 AM

.... or alternatively - did you actually make an entry for your new kernel in your bootloader configuration file?

Kramer 10-21-2003 11:51 AM

Quote:

Originally posted by Skyline
.... or alternatively - did you actually make an entry for your new kernel in your bootloader configuration file?
Yeah, I did that, but its still wrong. I took the standard Linux boot at the top, copied, and labeled it -old. The new one is supposed to point at my new kernel, but the path is still the same as -old. Its still pointing at "vmlinuz" also. How can I find out where my custom kernel went as well? Its not in usr/src anymore.

Skyline 10-21-2003 11:59 AM

Typically you'd use a line like:

cp arch/i386/boot/bzImage /boot/bzImage-2.4.22

to copy your new kernel to your /boot directory - then use an image line like

image=/boot/bzImage-2.4.22

(in LILO)

Did you actually copy your new kernel anywhere?

jkobrien 10-21-2003 12:03 PM

After compiling, did you (paths may vary)...

cp /usr/src/linux/arch/i386/bzImage /boot/vmlinuz-custom

It's not clear whether you're using LILO or grub. In /etc/lilo.conf you should leave the entries for your original kernel alone. Copy them, as you have, but edit one to point at your new kernel, e.g. "image = /boot/vmlinuz-custom" and "label = linux-custom".

John

Kramer 10-21-2003 12:03 PM

Im not sure, Im a little new at compiling, but not to Linux as a whole, so that shouldnt be that hard. Ill check it out later on

EDIT: I am using LILO

jkobrien 10-21-2003 12:13 PM

Ok, have a look at the how-to's for a good description.

John

Kramer 10-21-2003 01:43 PM

Hmmm, well it looks like Im going to have to compile again tonight anyway, since I forgot to put something in on the first time. Also, I cant seem to find my new kernel. I dont know where it went :confused:


All times are GMT -5. The time now is 02:35 PM.