xfs
[Top] [All Lists]

Re: Module loading problems

To: Dave Sill <ds-linux-xfs@xxxxxxxxxxxxxxxxx>
Subject: Re: Module loading problems
From: Keith Owens <kaos@xxxxxxxxxxxxxxxxx>
Date: Thu, 29 Mar 2001 01:52:07 +1000
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: Your message of "Wed, 28 Mar 2001 10:40:49 EST." <15042.1537.463368.336615@sws5.ctd.ornl.gov>
Sender: owner-linux-xfs@xxxxxxxxxxx
On Wed, 28 Mar 2001 10:40:49 -0500 (EST), 
Dave Sill <ds-linux-xfs@xxxxxxxxxxxxxxxxx> wrote:
>I checked out the current kernel source using CVS, copied over a
>.config file provided by Eric Sandeen, configured in the IRIX
>partition support, then did:
>
>  make dep
>  make bzImage
>  make modules
>  make modules_install
>  make install
>  mkinitrd /boot/initrd-2.4.2-XFS.img 2.4.2-XFS

Unless you are building a kernel that has to run on multiple machines
with different hardware (i.e. a distribution) I strongly recommend that
you do not use mkinitrd.  Build your root driver and filesystem into
the kernel, load other objects as modules after boot and forget initrd.
It is good for distributors but a pain in the neck for everybody else.

>Everything seemed to go pretty smoothly during the build. When I boot
>the new kernel, it's unable to load any modules. For example, if I
>try:
>
># insmod /lib/modules/2.4.2-XFS/kernel/drivers/block/loop.o 
>/lib/modules/2.4.2-XFS/kernel/drivers/block/loop.o: unresolved symbol dput
>/lib/modules/2.4.2-XFS/kernel/drivers/block/loop.o: unresolved symbol 
>register_disk

Use modprobe loop, not insmod /full/path/name.o.  modprobe is a high
level command which automatically loads any other modules that are
required to satisfy missing symbols, insmod is a low level command
which does exactly what you say and no more.


<Prev in Thread] Current Thread [Next in Thread>