Solved

upgrading kernel, module-info, and system-map

Posted on 1998-10-21
4
242 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

Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

734 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