LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Installing Kernel Source (https://www.linuxquestions.org/questions/fedora-35/installing-kernel-source-426656/)

eggoz 03-20-2006 01:13 PM

Installing Kernel Source
 
I am in need to update iptables. In order to do this, I must first get the kernel sources. To my surprise FC 3 does not bring them. I am reading the directions from the Fedora website. http://fedora.redhat.com/docs/release-notes/fc3/x86/

I have gotten to step 3. I know this is a dumb questions, but how do I find what arc I am using? I did uname -p and got i686. I suppose this is correct and went ahead and ran the command.

Step 4 totally lost me. Here is what I ran:
cp kernel-2.6.9-i686.config ./.config
It asks me to overwrite the exsisting file. I said yes.

Step 5. make oldconfig gives me this error:
make: *** No rule to make target `oldconfig'. Stop.

Then the directions say continue like normal. Where excatly do I go from here?

I tried the patch-o-matic just to see what I got. First it asks me for the kernel source dir. I tell it: /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9, which it has no problem with. But when I go to install an update from patch-o-matic I get this:
Do you want to apply this patch [N/y/t/f/a/r/b/w/q/?] T
Testing patch submitted/02_2.4.20.patch...
Warning - no help text file could be found in either
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/net/ipv4/netfilter/Config.help
or /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/Documentation/Configure.help
Failed to patch copy of /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9

I am completely lost. Any help would be great. Thanks.

Lenard 03-20-2006 02:16 PM

Quote:

Step 4 totally lost me. Here is what I ran:
cp kernel-2.6.9-i686.config ./.config
It asks me to overwrite the exsisting file. I said yes.

Step 5. make oldconfig gives me this error:
make: *** No rule to make target `oldconfig'. Stop.
You need to install the kernel development rpm packages first.

What is this patch-o-matic thing??? Does not sound good IMHO, since this just might be a bad patch (Testing patch submitted/02_2.4.20.patch...) for a 2.4 kernel maybe????

Why do you think you need to patch update the old FC3 kernel for iptables????

Visit; http://www.fedoralegacy.org/ and learn how to install/use yum to update your system instead.

From http://download.fedoralegacy.org/fedora/3/updates/i386/ for example;

kernel-2.6.12-2.3.legacy_FC3.i686.rpm 20-Feb-2006 19:33 18M

eggoz 03-21-2006 01:28 PM

Yup. I was using the 2.4 program. Idiot. But I still got a problem. Time for a new post.


All times are GMT -5. The time now is 12:36 PM.