Solved

upgrading kernel, module-info, and system-map

Posted on 1998-10-21
4
241 Views
Last Modified: 2013-12-15
I've just upgraded my kernel for the first time (from 2.0.31 to 2.0.35)
I am using Redhat 5.0 distribution, and by default, at /boot,  I have:

  system-map -> system-map-2.0.31
  module-info -> module-info-2.0.31
  vmlinuz -> vmlinuz-2.0.31

Ok, I have copied the new kernel to /boot, and named it vmlinuz-2.0.35 and
changed the symbolic link for vmlinuz to point to vmlinuz-2.0.35

I also have done 'make modules' and 'make modules_install' and this will place
all modules at /lib/modules/2.0.35/

Now, I have no idea how to do with system-map and module-info at /boot
because after building the kernel, I didn't get the files module-info-2.0.35
and system-map-2.0.35. Do I need to delete the system-map and module-info
symbolic links, or just leave them? Or, should I create files
module-info-2.0.35 and system-map-2.0.35? If yes, HOW?

Also, at /lib/modules, i have 2.0.31 modules. How can I know for sure that kernel will not look for module at old 2.0.31 module?
0
Comment
Question by:kobo100198
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 

Author Comment

by:kobo100198
ID: 1631157
Edited text of question
0
 
LVL 1

Expert Comment

by:fmismetti
ID: 1631158
After configuration of your kernel (make menuconfig or make config), just execute:

make dep ; make clean
make
make modules
make modules_install
make zlilo

The last line will take care of installing the new kernel and setting up the LInux LOader.

This is true for Slackware and should be true to RedHat. I don't have way to test in RedHat, so I'm posting this as a comment.

Let me know if it works...
0
 

Author Comment

by:kobo100198
ID: 1631159
I have done what you said before. Your comment is unrelated with my question. Here I post my question again:

I have no idea what to do with system-map and module-info that I found at /boot
because after building the kernel (this includes ALL make modules, make modules_install, do LILO stuff), I didn't get the files module-info-2.0.35
and system-map-2.0.35. Do I need to delete the system-map and module-info
symbolic links, or just leave them there ? Or, should I create files module-info-2.0.35 and system-map-2.0.35? If yes, HOW?
0
 
LVL 19

Accepted Solution

by:
xterm earned 50 total points
ID: 1631160
You can just copy the System.map file from the top directory
of the kernel source tree to /boot as is.  Don't worry about
the module-info file in /boot - you can rm it if you want.

When you boot 2.0.35 it won't load the modules in the 2.0.31
directory - in fact, after you've safely tested your new
kernel you can whack /lib/modules/2.0.31 - If I'm not mistaken
kerneld will do a uname before loading modules, so it won't
mix up versions.

As a side note, RH5.1 puts a symlink in /lib/modules called
"preferred" which points to the current kernel version
module directory.  
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question