The source rpm for the kernel is not installed.  You should be able to find
it at any mirror sight there is only one.  You may want to grab all the
kernel-* packages.  RH installs the kernel source into the directory
/usr/src/linux-<version>

But for your problem you most likely only need to install the module not
build the kernel.  Check the man and info pages for lsmod, insmod, rmmod,
and modprobe.  also take a look at the file /etc/modules.conf

If you would like to make your own kernel.  You can do so easily by coping
the correct config file from the directory
/usr/src/linux-2.4.9-31/configs/<Your_platform> to /usr/src/.config and then
run make config, make menuconfig, or make xconfig.  You should have the base
kernel config for the RH distro.  From here follow the kernel howtos.  One
thing to be aware of is after you complete the make config command you
should also edit /usr/src/linux-2.4.9-31/Makefile and alter the line
EXTRAVERSION = -31custom to something like EXTRAVERSION = -21mykernel. This
helps in identification of multiple kernels.  You should search for rh
specific kernel howtos for more information.

-----Original Message-----
From: Caleb Chaplin [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 10, 2002 5:02 PM
To: [EMAIL PROTECTED]
Subject: newbie kernel help


Kind of an embarrasing question here.  I'm trying to modify/optimize the
stock kernel that shipped with redhat; I've used up2date to get the
kernel to 2.4.9-31 (i think that's the latest) but i'd like to make some
small changes - and generally learn more about some of the kernel
options. 

However after digging around and looking at various kernel howtos I'm
stuck early on; each one mentions that I should begin with the source in
/usr/src/linux (or wherever) but that folder is empty on my machine -
I've got nothing in /usr/src.  I'm assuming that the kernel headers and
stuff are elsewhere but I have no idea where they would be.

All I want to do is try loading some different modules (for my cable
modem) but I can't even find the directory where I should begin.  And
even so, is it safe for me to just run 'make xconfig' in that directory
or will it leave me with a "blank slate" afterwhich I'll have to choose
all the correct options? 

And one last question: I know I'm supposed to copy over the System.map
afterwards but what about the initrd.img and module-info files; where do
I copy those from?

Sheesh, so many questions at once!  I'd really appreciate any help I
could get.



Caleb Chaplin





_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to