Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
System.map Not found on boot up...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Ringo Chen
n00b
n00b


Joined: 07 Sep 2004
Posts: 43

PostPosted: Wed Mar 29, 2006 11:17 pm    Post subject: System.map Not found on boot up... Reply with quote

I'm getting a warning that I haven't seen before and was wondering if anyone else out there has seen this before.
I just recently did a few emerges ... the next time I booted -- got a warning that "system.map" not found..
system runs fine ..(to the best of my knowledge) but can it or will it damage the system in the future?

Thanks
Back to top
View user's profile Send private message
shrimp123
Apprentice
Apprentice


Joined: 02 Sep 2004
Posts: 199
Location: Here!

PostPosted: Wed Mar 29, 2006 11:35 pm    Post subject: Reply with quote

search the forums.... u will find :

if /lib/modules/xx.xx/kernel_build is in a different "partition", then System.map cannot be...

nothing fatal.

solutions:

1. copy System.map from /usr/src/linux-xx.xx/ to relavant position
2. modify the modules.?? file

Kiran.
Back to top
View user's profile Send private message
Ringo Chen
n00b
n00b


Joined: 07 Sep 2004
Posts: 43

PostPosted: Thu Mar 30, 2006 4:16 pm    Post subject: Reply with quote

shrimp123 wrote:
search the forums.... u will find :

if /lib/modules/xx.xx/kernel_build is in a different "partition", then System.map cannot be...

nothing fatal.

solutions:

1. copy System.map from /usr/src/linux-xx.xx/ to relavant position
2. modify the modules.?? file

Kiran.


Thank u, just found them -- interesting read .... I believe mine happened apon emerging baselayout......
Back to top
View user's profile Send private message
StefanP
n00b
n00b


Joined: 18 Apr 2004
Posts: 64
Location: Hamburg, Germany

PostPosted: Sun Apr 02, 2006 10:15 am    Post subject: Reply with quote

Having the same problem here, but don't understand the solution. Where has the file System.map be located, and which modules.?? file has to be modified? In my /lib/modules/2.6.15-gentoo-r1 directory there are many modules.?? files.

My System.map file is located in the boot-partition, which is mounted on boot-time.



Stefan
Back to top
View user's profile Send private message
linuxtuxhellsinki
l33t
l33t


Joined: 15 Nov 2004
Posts: 700
Location: Hellsinki

PostPosted: Sun Apr 02, 2006 10:27 am    Post subject: Reply with quote

Code:
cp /boot/System.map-2.6.15-gentoo-r1 /System.map

_________________
1st use 'Search' & lastly add [Solved] to
the subject of your first post in the thread.
Back to top
View user's profile Send private message
StefanP
n00b
n00b


Joined: 18 Apr 2004
Posts: 64
Location: Hamburg, Germany

PostPosted: Sun Apr 02, 2006 10:34 am    Post subject: Reply with quote

That was the trick, thanks
Back to top
View user's profile Send private message
Olis
Apprentice
Apprentice


Joined: 29 Sep 2004
Posts: 177
Location: Germany

PostPosted: Sun Apr 02, 2006 5:32 pm    Post subject: Reply with quote

linuxtuxhellsinki wrote:
Code:
cp /boot/System.map-2.6.15-gentoo-r1 /System.map


Didn't work for me :(. I have the same problem getting a
Code:
 * System.map not found - unable to check symbols
during startup. /boot is on its own partition and is mounted through /etc/fstab.

Contents of /boot:
Code:
 # ll /boot
insgesamt 7247
-rw-r--r--  1 root root     512 22. Dez 2004  backup_mbr
lrwxrwxrwx  1 root root       1 22. Dez 2004  boot -> .
lrwxrwxrwx  1 root root      23 23. Jan 06:43 config -> config-2.6.15-gentoo-r1
-rw-r--r--  1 root root   35687 16. Dez 07:20 config-2.6.14-gentoo-r5
-rw-r--r--  1 root root   36520 23. Jan 06:43 config-2.6.15-gentoo-r1
lrwxrwxrwx  1 root root      23 16. Dez 07:20 config.old -> config-2.6.14-gentoo-r5
drwxr-xr-x  2 root root    1024 23. Jan 06:45 grub
drwx------  2 root root   12288  4. Sep 2004  lost+found
-rw-r--r--  1 root root   84480 22. Dez 2004  message
lrwxrwxrwx  1 root root      33  2. Apr 19:22 System.map -> /boot/System.map-2.6.15-gentoo-r1
-rw-r--r--  1 root root  701273  2. Apr 19:12 System.map-2.6.14-gentoo-r5
-rw-r--r--  1 root root  711497 23. Jan 06:43 System.map-2.6.15-gentoo-r1
lrwxrwxrwx  1 root root      27 16. Dez 07:20 System.map.old -> System.map-2.6.14-gentoo-r5
lrwxrwxrwx  1 root root      24 23. Jan 06:43 vmlinuz -> vmlinuz-2.6.15-gentoo-r1
-rw-r--r--  1 root root 1734276  8. Dez 21:36 vmlinuz-2.6.14-gentoo-r4
-rw-r--r--  1 root root 1734372 16. Dez 07:20 vmlinuz-2.6.14-gentoo-r5
-rw-r--r--  1 root root 1556461 23. Jan 06:43 vmlinuz-2.6.15-gentoo-r1
lrwxrwxrwx  1 root root      24 16. Dez 07:20 vmlinuz.old -> vmlinuz-2.6.14-gentoo-r5


I'm using debianutils and "make install" to copy the kernel and System.map to /boot and create the appropriate symbolic links. I tried to replace the link System.map with a copy of System.map-2.6.15-gentoo-r1 and also tried copying System.map-2.6.15-gentoo-r1 to /System.map, but I still get this "System.map not found..." warning during startup.

Any ideas?
Back to top
View user's profile Send private message
gen2fox
Guru
Guru


Joined: 25 May 2004
Posts: 544

PostPosted: Sun Apr 02, 2006 6:01 pm    Post subject: Reply with quote

There is a long thread on the issue, with several other solutions.
_________________
python>>> q="'";s='q="%c";s=%c%s%c;print s%%(q,q,s,q)';print s%(q,q,s,q)
blog
Back to top
View user's profile Send private message
Olis
Apprentice
Apprentice


Joined: 29 Sep 2004
Posts: 177
Location: Germany

PostPosted: Sun Apr 02, 2006 9:06 pm    Post subject: Reply with quote

gen2fox wrote:
There is a long thread on the issue, with several other solutions.


Thanks for the link, haven't seen that one. According to this thread the only solution is to use unstable baselayout 1.2. Since the error isn't critical for me I'll stay with the stable baselayout 1.11 and wait...

Olis
Back to top
View user's profile Send private message
gen2fox
Guru
Guru


Joined: 25 May 2004
Posts: 544

PostPosted: Sun Apr 02, 2006 10:17 pm    Post subject: Reply with quote

It's been a while since I read that thread, so upgrading to unstable baselayout is the only option? I see.

By the way, I've had the System.map error message for a while now, and never bothered to fix it either.
_________________
python>>> q="'";s='q="%c";s=%c%s%c;print s%%(q,q,s,q)';print s%(q,q,s,q)
blog
Back to top
View user's profile Send private message
Olis
Apprentice
Apprentice


Joined: 29 Sep 2004
Posts: 177
Location: Germany

PostPosted: Wed Apr 05, 2006 5:23 am    Post subject: Reply with quote

gen2fox wrote:
It's been a while since I read that thread, so upgrading to unstable baselayout is the only option? I see.

By the way, I've had the System.map error message for a while now, and never bothered to fix it either.


The problem is in /sbin/modules-update:

Code:
# We also call depmod here to stop insmod from complaining that modules.conf
# is more recent then modules.dep
#
if [ -d "`depdir`" -a -f /proc/modules ]
then
        if [ -f /usr/src/linux/System.map ]; then
                depmod -a -F /usr/src/linux/System.map ${KV}
        else
                ewarn "System.map not found - unable to check symbols"
        fi
fi


I have /usr on a separate filesystem and since /sbin/modules-update is executed before all other filesystems are mounted it will not find /usr/src/linux/System.map and print the warning.

What I did to fix it (using the current stable baselayout-1.11.14-r6):

Code:
1. boot the system with "init=/bin/bash" so /usr doesn't get mounted.
2. "mount -o rw,remount /" to get write access to / filesystem
3. "mount /boot" to get access to my /boot/System.map
4. "mkdir -p /usr/src/linux"
5. "cp /boot/System.map /usr/src/linux"

Now I have /usr/src/linux/System.map on my root filesystem and /sbin/modules-update will find a valid System.map although /usr isn't mounted yet.
Major drawback: you have to go through all the steps (except 4.) again if compiling a new kernel...

Olis
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Wed Apr 05, 2006 8:07 am    Post subject: Reply with quote

Please follow up to the thread gen2fox mentioned.

Moved from Other Things Gentoo to Duplicate Threads.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum