LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-21-2004, 07:16 AM   #1
greythorne
Member
 
Registered: Apr 2004
Posts: 363

Rep: Reputation: 30
System.map & config files


may i know what is the use of System.map and config files in the boot folder. i had compiled kernel-2.6.6 i tried symlinks for both files(System.map and config) like this:-

ln -s /boot/System.map-2.6.6 /boot/System.map for System.map.

ln -s /boot/config-2.6.6 /boot/config for config.

but it says file exist for both files.

but when i mouse over the 2 files in the boot folder it says:-

"config->config-ide-2.4.22 Plain Text Document (link)"

"System.map->System.map-ide-2.4.22 Plain Text Document (link)"

im not sure whether am i using the correct System.map and config files for the new kernel-2.6.6 and also i want to know the use of this files when booting with the new kernel-2.6.6. will it affect my new kernel such as missing out some compiled options which i wanted to be in.

for your infor i used shilo's "This is how i do it all -- Time for a New Kernel" post.

thanks and regards.
 
Old 05-21-2004, 07:57 AM   #2
pitt30
Member
 
Registered: Jan 2004
Posts: 53

Rep: Reputation: 16
i believe its because there is already a sym link pointing to the old sytem and config files.
i think if you do a rm -f config and a rm -f system.map it will remove the link then you can do your ln -s to point to the new files.
hope this helps, im a newbie too so if im wrong someone please chime in
 
Old 05-21-2004, 12:10 PM   #3
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 47
System.map info: Click

Copying your kernel's .config into /boot is just like backing up your current kernel config, so that you need not reconfigure from scratch if let's say you've deleted your kernel sources and it's .config file.

That's all there is to it.
 
Old 05-21-2004, 02:17 PM   #4
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
Quote:
Originally posted by Azmeen
System.map info: Click
great link - thanks Azmeen!

 
Old 05-21-2004, 04:28 PM   #5
At0mic_PC
Member
 
Registered: Jul 2003
Location: Mississippi
Distribution: Slack9.1
Posts: 159

Rep: Reputation: 30
cd /boot
mv System.map System.map.old
mv config config.old
mv vmlinuz vmlinuz.old

cd /usr/src/linux
cp .config /boot/config-ide-2.X.X
cp System.m arch/i386/boot/bzImage /boot/vmlinuz-ide-2.X.X
cp arch/i386/boot/bzImage /boot/vmlinuz-ide-2.X.X

cd /boot
ln -s vmlinuz-ide-2.X.X vmlinuz
ln -s System.map-ide-2.X.X System.map
ln -s config-ide-2.X.X config

This will allow you to add the old kernel in lilo incase your new (read untested) one doesn't work. Just add a section like the linux one in there already and add .old to the label and the image.
 
Old 05-21-2004, 08:49 PM   #6
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 47
Quote:
Originally posted by Genesee
great link - thanks Azmeen!

Glad to be of help
 
Old 05-22-2004, 08:11 AM   #7
greythorne
Member
 
Registered: Apr 2004
Posts: 363

Original Poster
Rep: Reputation: 30
hi Azmeen thats a great info about System.map. according to that infor i guess i can leave the System.map-2.6.6 file as it is and boot with the newly compiled kernel-2.6.6 and let it find the correspoding System.map file on its own

here is the infor extracted for the links given by Azmeen.

"System.map also has versioning information, and klogd intelligently searches for the correct map file. For instance, suppose you're running kernel 2.4.18 and the associated map file is /boot/System.map. You now compile a new kernel 2.5.1 in the tree /usr/src/linux. During the compiling process, the file /usr/src/linux/System.map is created. When you boot your new kernel, klogd will first look at /boot/System.map, determine it's not the correct map file for the booting kernel, then look at /usr/src/linux/System.map, determine that it is the correct map file for the booting kernel and start reading the symbols."

may i also ask what is klogd?

thanks and regards.
 
Old 05-23-2004, 12:34 AM   #8
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 47
Quote:
Originally posted by greythorne
may i also ask what is klogd?
Kernel Log Daemon
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
What is System.map and where should it go? blish_blash Linux - General 4 10-23-2004 12:23 PM
System.map ??? theonebeyond Linux - General 3 09-08-2004 06:19 PM
System.map rgiggs Mandriva 0 06-27-2004 05:34 PM
.config and System.map Berhanie Slackware 6 12-24-2003 09:04 PM
What is System.map for? Rex_chaos Linux - Software 1 04-22-2002 10:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10: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