TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:3310] Modules in devel kernels



Hi
    This is a feature of RedHat 5.1/5.2. Their initscripts( version 3.67
or higher) have been designed such that you get the corresponding modules
directory for every kernel you compiled. However, you need to do something
such that they can work correctly. 
    First, since your system in RedHat 5.1, so your initscripts maybe is
initscripts-3.64. You need to update to initscripts-3.67(you can find it
the update directory of redhat ftp site). 
    Next, you need a file called .rhkmvtag in your /lib/modules/2.1.132/
You can create it by booting the new kernel and doing:
cat /proc/version > /lib/modules/2.1.132/.rhkmvtag
    Finally(this step is not needed for RedHat 5.2 which initscript
already desinged to work with kernel 2.0.* 2.1.* & 2.2.* ), you need to
change /etc/rc.d/rc.sysinit a little bit. Find the line with

mtag=`grep -l "$ktag" /lib/modules/2.0.* ....... 

Change it to 

mtag=`grep -l "$ktag" /lib/modules/*/.rhkmvtag` 2> /dev/null

   After reboot, you new kernel should autoload the modules without
problem.
   Hope this will solve your problem.
                                               Yao-Pin

On Mon, 11 Jan 1999, Yaron wrote:

>   Hi,
> 
> I'm having a weird problem using modules in devel kernels (2.1.132
> currently). I want to get it solved before 2.2, since that will use the
> same system. Currently I don't really need modules, but I'm planning on
> adding a SCSI card and ISDN in the near future, which blows my vmlinuz to
> > 512K, even when bzImaging.
> 
> Anyway, I use make dep ; make clean; make zImage; make modules ; make
> modules_install to build, then I copy zImage to wherever and reinstall
> LILO, then reboot.
> 
> I'm using Red Hat 5.1, and when it does the "Checking module dependencies"
> part, it complains about unresolved symbols in several components (sound.o
> and scsi.o, maybe a couple more). 
> 
> Then, it doesn't autoload modules. I have autoload enabled in the kernel,
> I've manually checked the .config to have KMOD on. I've upgraded to the
> latest modutils. Kerneld is stilll running, and if I manually insmod, it
> works (except for modules with strange unresolved symbols). 
> 
> Any help?
> 
> 
> -Yaron
> 
> --
> Yaron Hemi                        |  I hate every ape I see
> Internal Systems Specialist       |  From chimpan-a to chimpan-zee
> Publishing Business Systems, Inc  |                    -Actor Troy McClure
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tclug-list-unsubscribe@listserv.real-time.com
> For additional commands, e-mail: tclug-list-help@listserv.real-time.com
> Try our website: http://tclug.real-time.com
>