LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack Search this Thread
Old 06-25-2004, 12:06 PM   #1
cuco76
Member
 
Registered: Oct 2003
Location: Tucson
Distribution: Fedora, RHEL 5
Posts: 220

Rep: Reputation: 31
Grub and System.map


Question!

I have several distros on my box and I am always adding things. Well, my questions is that I see in the /boot/grub/menu.lst there are all my different distros aand kernel version for each, but there is always just one System.map in the /boot. How is this created(i know that it is created during kernel compilation but what is it for?) and say if I were to install a distro like Linux from scratch should I replace the System .map that I compiled from that version of the kernel. The reason I am asking is that I have noticed oddities with my hardware. Like cdroms not showing up in the dev directory and I was thinking that it had to do with the system.map.

If I use the System.map from the latest kernel on whatever distro, is that backwards compatible with my other distros with prior kernel versions?

Thanls in advance!
 
Old 06-25-2004, 12:32 PM   #2
Irving
Member
 
Registered: May 2004
Distribution: Gentoo - KDE 3.2.2
Posts: 57

Rep: Reputation: 15
When you copy over your System.map after each compilation, you're supposed to rename it just like you do with the kernel (i.e. kernel-2.6.5-gentoo and System.map-2.6.5-gentoo). If it's working fine so far, maybe it's not that big of a deal, but I would suggest doing this with every distro you compile from now on.
 
Old 06-25-2004, 12:35 PM   #3
cuco76
Member
 
Registered: Oct 2003
Location: Tucson
Distribution: Fedora, RHEL 5
Posts: 220

Original Poster
Rep: Reputation: 31
That sound logical. So if I rename it then how does my kernel know what one to use? Is there a pointer somewhere that I should also change?

Thanks.
 
Old 06-25-2004, 12:42 PM   #4
Irving
Member
 
Registered: May 2004
Distribution: Gentoo - KDE 3.2.2
Posts: 57

Rep: Reputation: 15
Well, in the grub.conf you specify which kernel to use... if your System.map has the same ending on it (notice my example in the last post) the system would know that way.

Although if you have multiple kernels with different filenames, only one System.map, and everything is working fine, then I'm thinking it's not that important.
 
Old 06-25-2004, 12:58 PM   #5
cuco76
Member
 
Registered: Oct 2003
Location: Tucson
Distribution: Fedora, RHEL 5
Posts: 220

Original Poster
Rep: Reputation: 31
OK I did some googling and found that in fact it is best to have System.map-2.x.x for each kernel. I also found that this is the reason why some of my hardware is not working under different kernels. The system.map addresses out symbols. Which can reference different hardware mem locations etc..

So If any anone ever searches this thread out! Everytime you compile a kernel you should add -(whatever is after your kernel)

Example:

vmlinuz-2.4.22-1.2115.nptlsmp
System.map-2.4.22-1.2115.nptlsmp

Have Fun!
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
need to access /boot/grub/menu.lst and /boot/grub/device.map neouto Linux - Newbie 8 09-04-2005 11:45 AM
Suse Grub map? devojo Linux - Newbie 3 04-10-2005 01:52 AM
What is System.map and where should it go? blish_blash Linux - General 4 10-23-2004 12:23 PM
System.map rgiggs Mandriva 0 06-27-2004 05:34 PM
System Map vexer Slackware 3 06-06-2003 07:10 PM


All times are GMT -5. The time now is 05:34 PM.

Main Menu
 
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
Open Source Consulting | Domain Registration