Solved

Modules and 2.1.X kernel

Posted on 1998-05-19
5
265 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
  • 3
  • 2
5 Comments
 
LVL 19

Accepted Solution

by:
xterm earned 100 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

803 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