LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-07-2004, 03:19 AM   #1
inescapeableus
Member
 
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319

Rep: Reputation: 30
Kernel Version Issue


Hello I have sucessfully recompiled my kernel. I was running 2.6.8 provided by Yoper but K3B Doesn't work so I downloaded and compiled the 2.6.7. Now everything seems fine just that in the kde control the kernel is reading as 2.6.8.1-3. Now this seems really funny to me. I used the guide from http://www.thelinuxbox420.com/kernelguide.html. This worked well on my older machine today so I know how to compile etc. Just something that comes to my attention in the lilo.conf is the folllowing

image=/boot/vmlinuz-2.6.7
label=YOS-2.6.7
read-only
root=/dev/hda5
append = "splash=silent "
initrd=/boot/initrd-2.6.8.1-3.img

**take note at the last line, what is this telling me? It wasn't explained to me anywhere. Should I remove that ? I do beleive I am running 2.6.7 but I am not sure can somebody help me out? thanks again.
 
Old 11-07-2004, 11:40 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
The initrd (initial ram disk image) doesn't match the kernel you compiled. Just make a new one and put it in /boot, then edit the lilo.conf to point to it. Google up some instructions.
 
Old 11-07-2004, 12:19 PM   #3
inescapeableus
Member
 
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319

Original Poster
Rep: Reputation: 30
How would I do that? I have the kernel source still in /usr/src. what would I have to do to make the new image?
 
Old 11-07-2004, 12:30 PM   #4
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Rep: Reputation: 33
The command to use would be mkinitrd , but you shouldn't really even need it unless you're running RAID or SCSI.

rm -rf /boot/initrd-2.6.8.1-3.img

/sbin/mkinitrd /boot/initrd-2.6.7.img 2.6.7

Last edited by Linux~Powered; 11-07-2004 at 12:46 PM.
 
Old 11-07-2004, 12:32 PM   #5
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Don't know in Yoper, but in SuSE it works like this:

once the kernel and System.map have been copied to /boot do

cd /boot
mkinitrd -k vmlinuz-2.6.7 -i initrd-2.6.7.img

You may need to specify the modules you want to include (filesystem, driver etc.) with option -m <modules>.
 
Old 11-07-2004, 12:58 PM   #6
inescapeableus
Member
 
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319

Original Poster
Rep: Reputation: 30
alright, thanks alot guys, I will let you know as soon as I get home
 
Old 11-08-2004, 12:47 AM   #7
inescapeableus
Member
 
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319

Original Poster
Rep: Reputation: 30
I am still getting the same kernel read in the kde center. This makes no sense to me. I followed the same steps to recompile my kernel on my other yoper based machine and that works well in every regard I am only having issues on my primary machine. If the kernel did no sucessfully compile and install I don't believe I would be talk to you right now. Are there any thoughts or suggestions?

By the way I did a:

cat /proc/version

and I get the following

Linux version 2.6.8.1-3 (root@yos) (gcc version 3.4.1) #1 SMP Wed Aug 25 11:18:30 Pacific/Auckland 2004


how can this be? lol and ideas besides the lack of my knowlege.

Last edited by inescapeableus; 11-08-2004 at 12:57 AM.
 
Old 11-08-2004, 07:25 AM   #8
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Try to review your lilo.conf! It seems like you still load the wrong kernel. Unfortunately, I don't know much about lilo, so I can't help.

Be sure that you have copied the correct kernel binary into the /boot directory and give it a unique version number. Create a initrd with the same versin number and copy also the System.map from the kernel-build directory to /boot.

Then be sure that you have two options in lilo.conf that point to the respective kernels. And run lilo to install the bootloader after you've made the changes!
 
Old 11-08-2004, 11:15 PM   #9
inescapeableus
Member
 
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319

Original Poster
Rep: Reputation: 30
Alright I will give that a try, man I really want to burn my tunes lol
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding distribution + kernel version + gcc version + glib version. JCipriani Linux - General 8 04-19-2008 03:54 PM
Kernel version Source Version mismatch after recompile chuckleberry Linux - Software 1 06-20-2005 07:37 PM
redhat fedora gcc version (compiled for 2.4.20) doesn't match kernel version 2.4.22 start1000 Linux - Software 0 03-16-2004 09:17 PM
Xfree prob radeon.o kernel module version is 1.1.1 but version 1.5.0 or newer needed. jimdaworm Slackware 0 10-01-2003 07:27 PM
Sample Driver Module incompatibility with Kernel version (or gcc version) jvs Linux - General 1 06-07-2002 02:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:45 PM.

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