LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-08-2004, 06:12 AM   #1
theonebeyond
Member
 
Registered: Aug 2004
Location: Germany
Distribution: Slackware 10.0
Posts: 258

Rep: Reputation: 30
System.map ???


Hi there!

I compiled one of my first kernels with openMosix patch relatively successfully ... nearly worked all right... just the sound isn't working ... but that's not so worse...

I added an entry for my new Kernel in /etc/lilo.conf ... now, I wonder what the System.map - file is all about and if I can add a line in lilo.conf to tell the System.map for a section without having to change the links in /boot


So, my questions are:
1) What is System.map? What does it do? Is it know to cause problems if used with other kernels?

2) Can I tell lilo to use a different System.map for every entry or do I have to change the link in /boot ?

Thanks a lot, Sascha
 
Old 09-08-2004, 06:59 AM   #2
chakkerz
Member
 
Registered: Dec 2002
Location: Brisbane, Australia
Distribution: a few...
Posts: 654

Rep: Reputation: 32
ok, last time i answered a question about this i got it wrong ... let me see if i can find the link ... here we go : http://www.linuxquestions.org/questi...669#post381669

I have as yet, never had an issue with System map, even when i go back to an older kernel. The bigger issue i've seen when doing this is that the modules are screwed up. But what i generally do is copy the new System.map file to the /boot directory and append the filename with the same string as the vmlinuz file/

As for the defining a separate System map via lilo ... no idea. (edit -> not necessary - check the last link).

for a bit of a gander ... do a
less /boot/System.map

(while root)
sorta interesting really, it looks like it starts with crc signatures, and moves on to addresses ...

For indepth stuff (including a detailed explanation of what System.map is) check out http://www.dirac.org/linux/systemmap.html/

Last edited by chakkerz; 09-08-2004 at 07:04 AM.
 
Old 09-08-2004, 07:01 AM   #3
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
For new kernels I name them and the new System map accordingly. Look at this ->
Code:
mingdao@paul:~$ ls -alc /boot/
total 4129
drwxr-xr-x   3 root root     432 2004-09-04 22:02 ./
drwxr-xr-x  22 root root    1784 2004-09-08 17:32 ../
lrwxrwxrwx   1 root root      37 2004-09-02 03:03 README.initrd -> /usr/doc/mkinitrd-1.0.1/README.initrd
lrwxrwxrwx   1 root root      21 2004-09-02 03:03 System.map -> System.map-ide-2.4.26
-rw-r--r--   1 root root  620999 2004-09-02 03:03 System.map-ide-2.4.26
-rw-r--r--   1 root root  662387 2004-09-04 22:01 System.map-new
-rw-r--r--   1 root root     512 2004-09-02 03:18 boot.0300
lrwxrwxrwx   1 root root      17 2004-09-02 03:03 config -> config-ide-2.4.26
-rw-r--r--   1 root root   41017 2004-09-02 03:03 config-ide-2.4.26
-rw-r--r--   1 root root    5032 2004-09-02 03:03 diag1.img
-rw-------   1 root root   46592 2004-09-04 22:02 map
lrwxrwxrwx   1 root root      18 2004-09-02 03:03 vmlinuz -> vmlinuz-ide-2.4.26
-rw-r--r--   1 root root 1248111 2004-09-02 03:03 vmlinuz-ide-2.4.26
-rw-r--r--   1 root root 1580910 2004-09-04 21:59 vmlinuz-new
 
Old 09-08-2004, 06:19 PM   #4
amf57
LQ Newbie
 
Registered: Feb 2003
Posts: 22

Rep: Reputation: 15
The idea behind the system map is that your root file system is usually located on a file system that is known about via a module. The real root file system can not be mounted if the kernel knows nothing about the file system. That is where a initial ramdisk is used. The system map is a map of consecutive blocks where the kernel is located. It is read by the bios which is allowed to execute code that is in the 1st 256 blocks of a hard drive. Thus your bios reads the block address (system map) which loads the kernel and that initial ram disk.
The initial ram disk typically has a command interpreter named nash, the commands insmod and modprobe, and the modules such as ext.o or scsi.o or lvm.o. The modules get loaded and now the kernel in memory knows about the file system on the hard drive and mounts the "real" root file system.
 
  


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 On
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 rgiggs Mandriva 0 06-27-2004 05:34 PM
What is System.map for? ivanatora Linux - General 2 12-18-2003 04:23 PM
System Map vexer Slackware 3 06-06-2003 07:10 PM
What is System.map for? Rex_chaos Linux - Software 1 04-22-2002 10:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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