?
Solved

Modules and 2.1.X kernel

Posted on 1998-05-19
5
Medium Priority
?
272 Views
Last Modified: 2013-12-15
I tried to compile some part of my 2.1.9 kernel as modules but I get:
unresolved symoble in... (some sound modules and scsi modules)
Everything works if I compile in thos in the kernel using make bzimage.
I have upgraded to modutils 2.1.85 and I made a rm -rf /lib/modules/2.1.99

before make modules and make modules_install

How do I get the modules to work???
0
Comment
Question by:n94magho
[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
  • 3
  • 2
5 Comments
 
LVL 19

Accepted Solution

by:
xterm earned 200 total points
ID: 1627217
If you are re-compiling 2.1.99 (in other words, you have
an existing 2.1.99 kernel) then do the following:

cd /usr/src/linux
rm -rf /lib/modules/2.1.99
make dep
make clean
make modules
make modules_install
make zImage

mv /usr/src/linux/arch/i386/boot/zImage /boot
  (replace /boot with wherever you generally keep your
   kernels)

vi /etc/lilo.conf (and make sure the first label is pointing
                   to /boot/zImage - make a duplicate label
                   which points to your current kernel, just
                   in case.)

/sbin/lilo
shutdown -r now

When it comes back up, you shouldn't get module
errors.


0
 

Author Comment

by:n94magho
ID: 1627218
I did exactly as you said but it complains over sound.o anyway andit doesn't load my scsi modules,. I have to do modprobe -a /lib/modules/2.1.99/scsi/*

One more thing. When I compile the kernel with pnp support do I have to use isapnptools to get my soundcard to work???
How do I tell the kernel the irq and dma for my soundcard?

0
 
LVL 19

Expert Comment

by:xterm
ID: 1627219
Thats strange - try "/sbin/depmod -a 2.1.99" (that should
create a file called modules.dep in /lib/modules/2.1.99)

In order to configure isapnp, run "isapnp > /etc/isapnp.conf"
(back up your old one first if one exists...)  Then just go
through and uncomment what applies to you, and comment out
what does not.  Then it should run automatically the next
time you boot (assuming its somewhere in your rc.*)


0
 

Author Comment

by:n94magho
ID: 1627220
the modules.dep file already exist and contains the path to the modules. It doesn't load the printer module either...

isapnp > /etc/isapnp.conf gives me :

[root@tjo /root]# isapnp > /etc/isapnp.conf
$Id: isapnp.y,v 1.11 1997/07/14 22:33:15 fox Exp $
This is free software, see the sources for details.
For latest information, see http://www.roestock.demon.co.uk/isapnptools/
This software has NO WARRANTY, use at your OWN RISK

Usage: isapnp configfile

0
 
LVL 19

Expert Comment

by:xterm
ID: 1627221
Ooops.. I think its "pnpdump > /etc/isapnp.conf"
Then after fixing the file, run "isapnp" (it defaults
to /etc/isapnp.conf"

Sorry about that :>
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month12 days, 13 hours left to enroll

777 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