xfs
[Top] [All Lists]

Re: Module loading problems

To: Dave Sill <ds-linux-xfs@xxxxxxxxxxxxxxxxx>
Subject: Re: Module loading problems
From: Bryan-TheBS-Smith <thebs@xxxxxxxxxxx>
Date: Wed, 28 Mar 2001 10:57:58 -0500
Cc: linux-xfs@xxxxxxxxxxx, elg-eluglist@xxxxxxxx
Organization: (Personal)
References: <15042.1537.463368.336615@sws5.ctd.ornl.gov>
Reply-to: thebs@xxxxxxxxxxx, b.j.smith@xxxxxxxx
Sender: owner-linux-xfs@xxxxxxxxxxx
Dave Sill wrote:
> Everything seemed to go pretty smoothly during the build. When I boot
> the new kernel, it's unable to load any modules.  <... cut ...>

Hmmm, try running "depmod -a" -- but I think your "make
modules_install" may have failed to overwrite older modules.

Hence why I always recommend the use of "EXTRAVERSION" in an
alternate "makefile" to "tag" a new kernel with a label _different_
than the existing kernel.  That way you can boot either kernel (new
or old) and not have to worry about modules conflicting with each
other.

Next time, create a file called "makefile" in your /usr/src/linux
directory:

   # Include main Makefile -- add kernel tag to EXTRAVERSION
   include Makefile
   EXTRAVERSION:=$(EXTRAVERSION)-MYBUILD

Then run "make config ..." as normal.  Your kernel
files/modules/dires will be tagged with "-MYBUILD" at the end (or
replace "MYBUILD" with whatever you want).

I have a set of scripts to automate this.  You can find them here:
http://lists.leap-cf.org/pipermail/leaplist/2001-February/009641.html

[ They are a little out of date.  I'll send updated ones directly to
you if you'd like ]

I'm also working on a ncurses-based menuing system that automates
this.  Here's a preliminary screenshot:
http://www.smithconcepts.com/files/conmenu/conmenu_kernel.jpg

-- TheBS

CC: ELUG

--
Bryan "TheBS" Smith          chat:thebs413 @AOL/MSN/Yahoo
Engineer      mailto:b.j.smith@xxxxxxxx,thebs@xxxxxxxxxxx
*********************************************************
"Never apply a Star Trek solution to a Babylon 5 problem"
                                    -- Nicholas C. Weaver

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