LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 12-22-2003, 08:46 PM   #1
bokavitch
LQ Newbie
 
Registered: Aug 2003
Location: Salt Lake City, Utah, United States
Distribution: Slackware 9.1
Posts: 8

Rep: Reputation: 0
Kernel 2.6.0 boots and says Kernel 2.4.22


I compiled/installed a linux kernel from source for the first time and i copied and pasted the output to

/boot

for System.map and vmlinuz etc.


I configured lilo and i am able to boot from "linux_2.6.0" on lilo upon restart, except when the kernel boots up and i'm brought to the prompt it says "Kernel 2.4.22" still...

I'm sure i probably just didn't replace something properly or i linked a file badly or something. Does anyone have any suggestions/ideas of what a kernel newb like me might have messed up on??

thanks!
 
Old 12-22-2003, 10:06 PM   #2
spoto
LQ Newbie
 
Registered: Aug 2003
Distribution: Redhat 9, Slackware 9.1
Posts: 2

Rep: Reputation: 0
Check the Makefile in /usr/src/<kernel version>, or whereever your kernel source is. The version info is kept in the first few lines of that file.
 
Old 12-22-2003, 10:19 PM   #3
miaviator278
Member
 
Registered: Dec 2003
Location: Al-Diwania, Iraq (deployed)
Distribution: Slackware ONLY
Posts: 237

Rep: Reputation: 30
go thru your steps..

first run uname -a and make sure your running the old kernel (most likely since the promp you see is uname -a, but be sure)

what commands did you use for compiling the kernel? (did you use make, make install? or make bzimage and manually copy?)

what did you put in lilo.conf?

have you checked the threads on kernel compiling?
 
Old 12-23-2003, 02:36 PM   #4
bokavitch
LQ Newbie
 
Registered: Aug 2003
Location: Salt Lake City, Utah, United States
Distribution: Slackware 9.1
Posts: 8

Original Poster
Rep: Reputation: 0
Hey, thank you for responding. Sorry i should have left more details, i wrote a log of everything i did but i didn't have it on me at the time of posting. But now that it's in front of me i'll post it here for you to analyse.

Unpacked source to home directory /root
"bunzip2 linux-2.6.0.tar.bz2"
"tar -tvf linux-2.6.0.tar"

changed directories too /src/linux directory
"cd /usr/src/linux"

"make mrproper"

"xconfig" saved .config file to the directory

compiled
"make dep clean bzImage"
"make modules"
"make modules_install"

Installation...
"cp arch/i386/boot/bzImage /boot/vmlinux-2.6.0"
"cp System.map /boot/System.map-2.6.0"

Lilo configuration..
opened /etc/lilo.conf

added..

"image=/boot/vmlinux-2.6.0
label=linux_2.6.0
root=/dev/hda5 <-- (same partition as current linux fs)

didn't set as default or anything, saved the file

ran
"/sbin/lilo"


rebooted, chose "linux_2.6.0" from lilo boot selecter screen.
it boots up and then i get the "kernel 2.4.22" message.

oh and afterwords i replaced System.map with the System.map-2.6.0 file and still get the same result.

oh, and i checked the threads on compiling here and elsewhere and havne't been able to find anything that was dramatically different from what i did that would lead me to any answers.

Any thoughts?

Last edited by bokavitch; 12-23-2003 at 02:40 PM.
 
Old 12-23-2003, 02:54 PM   #5
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Rep: Reputation: 45
So what's the output of "uname -r". Also port the content of the file "/etc/issue".

Last edited by qanopus; 12-23-2003 at 02:56 PM.
 
Old 12-23-2003, 03:07 PM   #6
miaviator278
Member
 
Registered: Dec 2003
Location: Al-Diwania, Iraq (deployed)
Distribution: Slackware ONLY
Posts: 237

Rep: Reputation: 30
that is awsome, you kept a log, and checked threads!...

Unpacked source to home directory /root
"bunzip2 linux-2.6.0.tar.bz2"
"tar -tvf linux-2.6.0.tar"

it may be preference, but just so you know, this can be done with the line
tar -jxvf linux-2.6.0.tar.bz2
the -j option filters thru bzip, and the -x option untars.

-----------

stupid questions follow:
is kernel vmlinux-x.x.x in the /boot directory ?
does the lilo config file contain the correct kernel name and directory?
i know this is a dumb question, but are you sure it's 2.6 kernel src? have to ask.. i'm sure it is..
did you untar the 2.6 kernel, make compile, ect, and then copy /usr/src/linux/arch/i386/boot/bzImage, which was linked to your 2.4 kernel (linux -> linux-2.4.x) ?
end stupid questions

it's worth the few seconds to check those, i've done a few..

check on spoto's suggestion.. for one iof the above questions..
Check the Makefile in /usr/src/<kernel version>, or whereever your kernel source is. The version info is kept in the first few lines of that file.

also please send output of uname -a
this will give host and date info, which is useless to us, but it will also give, kernel version and *build number*..
 
  


Reply



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
No console display when new kernel boots phollow Linux - Newbie 9 04-28-2005 05:31 PM
Linux boots very slowly with 2.6 kernel Mikessu Linux - General 6 09-20-2004 07:46 PM
What is the first thing the kernel does after it boots ? xconspirisist Linux - General 3 05-20-2004 09:38 AM
scsi emualtion BEFORE kernel boots wgzero Linux - Hardware 1 05-25-2003 11:58 AM
New kernel doesnt boots.. unmada Linux - General 1 06-23-2002 03:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:54 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
Open Source Consulting | Domain Registration