LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 10-21-2003, 10:54 AM   #1
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Rep: Reputation: 30
Question 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
 
Old 10-21-2003, 11:19 AM   #2
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30
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
 
Old 10-21-2003, 11:23 AM   #3
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Original Poster
Rep: Reputation: 30
Ive done that, but the uname -r still says 2.4.21-0.13mdk, which is the default kernel, and not my custom one.
 
Old 10-21-2003, 11:28 AM   #4
morbeis
LQ Newbie
 
Registered: Oct 2003
Location: Ireland
Distribution: Slackware
Posts: 17

Rep: Reputation: 0
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 ?
 
Old 10-21-2003, 11:37 AM   #5
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
.... or alternatively - did you actually make an entry for your new kernel in your bootloader configuration file?
 
Old 10-21-2003, 11:51 AM   #6
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Original Poster
Rep: Reputation: 30
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.
 
Old 10-21-2003, 11:59 AM   #7
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
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?
 
Old 10-21-2003, 12:03 PM   #8
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30
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
 
Old 10-21-2003, 12:03 PM   #9
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Original Poster
Rep: Reputation: 30
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
 
Old 10-21-2003, 12:13 PM   #10
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

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

John
 
Old 10-21-2003, 01:43 PM   #11
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Original Poster
Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
When to make custom kernel trnsfrmrsr Linux - Hardware 1 10-05-2005 04:40 PM
cannot make a custom kernel work dannyk1 Linux - General 5 06-12-2005 08:20 AM
how can i make a custom linux vito_huang Linux - Newbie 2 12-01-2004 11:21 AM
Compiled Custom Kernel booting problem _flaab_ Mandriva 3 11-13-2003 07:34 AM
how to make modifications to a custom kernel build? h/w Linux - Newbie 2 11-09-2003 04:47 PM


All times are GMT -5. The time now is 04:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration