[NTLUG:Discuss] Redhat 7.1 and Kernel Modules Compiling issues
Jack Snodgrass
idiotboy at cybermail.net
Thu May 17 15:46:23 CDT 2001
if you can boot...
uname -r says what your kernel is 'named'.
the rc.sysinit stuff will look in
/lib/modules/`uname -r`
directory for modules.
the rc.sysinit stuff also does a depmod -a to update your
module dependancies list. that data gets put into the
/lib/modules/x.x.x directory too. See if that is getting
updated.
Your /usr/src/linux/.config file should have
CONFIG_MODULES=y
make sure that it does.
Just a couple of things to check. Maybe the modules are being
put into the wrong /lib/module/x.x.x. directory. maybe your
kernel isn't configured for modules.... maybe the depmod thing
is not running at boot time.
lastly... if you do a
insmod filename
for one of your modules... what happens.
jack
----- Original Message -----
From: "Will Senn" <wsenn at postfuture.com>
To: "NTLUG" <discuss at ntlug.org>
Sent: Thursday, May 17, 2001 3:22 PM
Subject: [NTLUG:Discuss] Redhat 7.1 and Kernel Modules Compiling issues
> Hi all,
>
> I need some help. Here is the situation:
>
> Distro: Redhat 7.1
> Kernel: 2.4.2 or 2.4.4
> Hardware: Pentium MMX 200mhz, 128 MB Ram
>
> I am unable to successfully compile and install a kernel/modules.
> Here is a summary of the steps that I took for the 2.4.2 and then the
2.4.4
> kernel...
> * cd /usr/src/linux
> (a symlink to /usr/src/linux-2.4.4 which contains the source
> that shipped with RH 7.1)
> * make mrproper
> to clean the tree
> * make oldconfig
> supposedly will duplicate the shipped configuration if
> .config not found?
> * vi /usr/src/linux/Makefile
> modified EXTRAVERSION to reflect the date for tracking purposes
> with the 2.4.4 source I also modified gcc to refer to kgcc instead
> * make dep
> * make clean
> * make bzImage
> * make modules
> * make modules_install
> * vi /etc/lilo.conf
> added the new image as linux-new
> * lilo
> ran lilo to update the mbr
> * rebooted
>
> What happened is that when the kernel rebooted it reported module not
found
> errors for my Intel EtherPro 100, ipchains, lp etc...
>
> I am at a total loss as to what I should do. I have followed the
> instructions at
>
http://redhat.com/support/manuals/RHL-7.1-Manual/customization-guide/kernel-
> modularized.html
> to the letter. The instructions there line up with the HOWTO.
>
> Any and all assistance will be greatly appreciated!
>
>
> Thanks,
> Will Senn
> Lead Engineer
> Postfuture, Inc.
> voice: 972.889.2226
> fax: 972.235.4162
> mailto:wsenn at postfuture.com
> http://postfuture.com
>
> =====Privacy and Confidentiality Notice=====
> The information contained in this note is intended
> solely for the recipient(s) addressed herein and contains
> privileged and confidential information. If you are not an
> intended recipient, you are strictly prohibited from using,
> copying, distributing, or taking any action in reliance on
> such information. If you have received this document in error,
> please notify the author immediately.
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
>
More information about the Discuss
mailing list