LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-18-2005, 07:52 PM   #1
iaMMai
LQ Newbie
 
Registered: May 2005
Location: Hungary
Distribution: Red Hat
Posts: 6

Rep: Reputation: 0
Compile kernel: System.map?


Hi all,
I'm wondering if I'd like to use 2 kernel(2 different versions), for example I'm not sure whether the new kernel works or not, in this case how should I deal with the System.map? If I change System.map symbolic link to the new kernel's System.map, what'll happen when I boot with the old kernel?
Help me,pliz.
Best regards.
 
Old 05-18-2005, 08:19 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,848

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
Presuming you have things in the correct place, the system will look after itself.
Do some searching, this comes up all the time.

I would also suggest you include your distro - in you profile would be best.
Can certainly affect the answer in this case.
 
Old 05-19-2005, 05:01 AM   #3
iaMMai
LQ Newbie
 
Registered: May 2005
Location: Hungary
Distribution: Red Hat
Posts: 6

Original Poster
Rep: Reputation: 0
oh, sorry, my distro is Red Hat 9. I thought it's a general issue. I've searched in Google, but haven't found the answer yet.

If the system can look after itself,then why have we always copy the corresponding System.map to /boot and change the symbolic link:

$ cp arch/i386/boot/bzImage /boot/bzImage-KERNEL_VERSION
$ cp System.map /boot/System.map-KERNEL_VERSION
$ ln -s /boot/System.map-KERNEL_VERSION /boot/System.map

(from this source http://www.digitalhermit.com/linux/K...l#INSTALLATION )


Last edited by iaMMai; 05-19-2005 at 05:55 AM.
 
Old 05-19-2005, 06:35 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,848

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
Quote:
Originally posted by iaMMai
If the system can look after itself,then why have we always copy the corresponding System.map to /boot and change the symbolic link
Bloody good question for second post.
Unnecessary in your case - RH adjusts the link for you each boot. Hence my request for your distro.
Have a look at /etc/rc.d/rc.sysinit if you're interested.

I never bother with the symlink, but I do like to keep kernel/config/Sysmap together in /boot with the kernel level in the name. Gentoo documents it this way, and it works. I probably have around 6 kernels in /boot at any time - helps if they are self-documenting.
 
Old 05-19-2005, 07:27 AM   #5
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
The System.map is not used by the kernel, but by 'ksymoops' and 'ps -l'. Hereby the System.map will be searched automatically in the following order:
Code:
/boot/System.map-`uname -r`
/boot/System.map
/lib/modules/`uname -r`/System.map
/usr/src/linux/System.map
As you see, if the System.map is named with the kernel version, the symlink will become unnecessary. In general, the System.map is not a vital component of your system.

This information is from my favourite kernel-HowTo ( www.thomashertweck.de/kernel26.html ), which is unfortunately only available in german and italian.
 
Old 05-19-2005, 07:40 AM   #6
iaMMai
LQ Newbie
 
Registered: May 2005
Location: Hungary
Distribution: Red Hat
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks a lot.

Can I ask you another question: what maybe the cause, if the net doesn't work with the new kernel? the network configuration is the same as in case of the old kernel, and I think I have choosen all(or not? :-) ) necessary components for the networking when configuring the kernel in Networking options menu.
 
Old 05-19-2005, 07:41 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,848

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
Try here for an English equivalent (I hope).
 
Old 05-19-2005, 07:47 AM   #8
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
Quote:
Try here for an English equivalent (I hope).
Nice link, thanks!

Quote:
what maybe the cause, if the net doesn't work with the new kernel?
Many potential causes! Start with the hardware first: is the driver present and is it loaded correctly? Continue with the logfiles (bootlog, messages, warn etc.)...sorry, can't be more specific if you aren't as well
 
Old 05-19-2005, 07:51 AM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,848

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
Seems like you missed something - if it was a loadable module, you should still be getting it.
try
Code:
dmesg | less
to see if there are any relevant messages on start-up.
Mind you, RH is a fairly old 2.4 - if you are going to a current kernel, that is quite a jump.
Basically a matter of "eyeballing" the config I suspect.
 
Old 05-19-2005, 09:05 AM   #10
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
If you started out with a different kernel version, (there isn't a .config then in the beginning) you should copy your last .config file and run "make oldconfig" to pick up your old configuration options, and select new options that were not present in the old kernel. Then fine tune it with "make xconfig" or one of the alternatives. Old pro's at this often use an editor to make changes, and then run "make oldconfig" to validate their changes.
 
  


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
No system.map after compile sigma957 Slackware 4 05-09-2004 04:35 AM
Kernel System.map Scorched Linux - Newbie 4 03-02-2004 06:48 PM
Custom Kernel and System.map tmoorman Linux - Software 6 10-23-2003 05:12 PM
Custom kernel and System.map tmoorman Mandriva 1 10-22-2003 09:11 PM
Kernel images and System.map Dark_Helmet Linux - Newbie 4 02-03-2003 11:58 AM


All times are GMT -5. The time now is 10:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration