LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-02-2006, 03:16 PM   #1
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 365

Rep: Reputation: 30
Simple compile questions


A few compile questions
  • A simple question with a non-simple answer, posed numerous times
    is what do I do with System.map?

    I am getting ready to compile the 2.6.13 kernel from source and
    I want to be sure that I can get back to my old kernel 2.4.31 should
    something go wrong. My present /boot (rearranged slightly for readability) is:

    lrwxrwxrwx 1 root root 21 2006-03-05 09:30 System.map -> System.map-ide-2.4.31
    -rw-r--r-- 1 root root 608033 2005-06-05 22:37 System.map-ide-2.4.31
    lrwxrwxrwx 1 root root 18 2006-03-05 09:30 vmlinuz -> vmlinuz-ide-2.4.31
    -rw-r--r-- 1 root root 1256566 2005-06-05 22:37 vmlinuz-ide-2.4.31
    lrwxrwxrwx 1 root root 17 2006-03-05 09:30 config -> config-ide-2.4.31
    -rw-r--r-- 1 root root 41760 2005-06-05 22:37 config-ide-2.4.31
    -rw-r--r-- 1 root root 512 2006-03-05 09:44 boot.0300
    -rw-r--r-- 1 root root 512 2006-03-05 09:44 boot.0340
    -rw-r--r-- 1 root root 209 2006-03-05 09:44 boot_message.txt
    -rw-r--r-- 1 root root 5032 2004-05-21 02:19 diag1.img
    -rw------- 1 root root 45056 2006-03-26 22:32 map
    -rw-r--r-- 1 root root 1313069 2006-03-16 20:18 newlinux

    You'll notice that symlinks haven't been changed from the original kernel and
    the newly compiled kernel (newlinux) has no associated 'System.map' or 'config'.
    This doesn't pose a problem since klogd will search the following for System.map:

    1. /boot/System.map
    2. /System.map
    3. /usr/src/linux/System.map

    Any other programs that need System.map access will presumably do the same.

    However, if I compile a new 2.6.13 kernel, I will either have to copy the System.map
    to /boot or change the symlink /usr/src/linux to point to /usr/src/linux-2.6.13
    instead of /usr/src/linux-2.4.31 in order for klogd (& any others) to find the
    2.6.13 System.map. Either way, I wish to keep my ability to load either kernel
    with the applicable System.maps.

    What is the best way to insure this?

    1. Copy all System.maps to boot with version nos? What about symlinks?
    2. Put the 2.6.13 kernel and associated System.map in another directory?
    3. Something else?

  • Anyone know what the 'map' file is?

  • Do I need an initrd if I compile everything I need into the new 2.6.13?
    I assume this is only needed if you load a stock 2.6.13 kernel and say
    have a Reiser fs.

TIA
 
Old 04-02-2006, 03:32 PM   #2
dopehouse
Member
 
Registered: May 2004
Location: Hildesheim(Germany)
Distribution: Debian Etch with Kernel 2.6.x (latest vanila)
Posts: 62

Rep: Reputation: 15
The System.map is used for debug. So if you don't want to debug your kernel, than you don't need to copy or symlink the System.map
 
  


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
Simple program wont compile BACTRATE Linux - Software 14 07-24-2008 12:57 PM
Simple C++ code won't compile on 2 out of 3 systems JimChristiansen Programming 4 12-06-2005 04:52 PM
Simple Questions...Hopfully Simple Answers. caps_phisto Linux - General 3 12-21-2004 12:40 PM
simple kernel compile question Zerodark Slackware 2 09-08-2003 10:23 PM
Why doesn't this simple program compile? SparceMatrix Programming 4 08-27-2002 03:37 AM

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

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