SlackwareThis Forum is for the discussion of Slackware Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
hey all, finaly made it to slack 10.0 (previously using suse 9.1...and years ago it seems red hat 5 )
the 2.4.26 kernel works fine for me, but i had to update to a 2.6.7+ for the WG511 card i bought, i wanted it to be supported..not wrapped.
*which works awsome btw*
so anywho, i'm new to kernel compiling and i think i've worked out most of the bugs, but i still get a make error and i think this is causing my 10/100 net card to not function....which it does in 2.4.26
btw i decided to go with the latest 2.6.9...which i know is not the most stable option, but this is my 2nd laptop...so it's no crucial to me...just trying to learn
this is the error:
make: *** No rule to make target 'net/ipv4/netfilter/ipt_ecn.c', needed by 'net/ipv4/netfilter/ipt_ecn.o'
make: *** [net/ipv4/netfilter] Error 2
make: *** [net/ipv4] Error 2
make: *** [net] Error 2
the first time i compiled the kernel took about 35 mins for this error to popup...when i recompile this happens in about 3 minutes....i'm assuming when you recompile it does something different...like just changes the overlaps and gaps ?
It always stops after this error.
Do i even need what it's trying to do here? ( i think it's just something i selected out of stupidity )
I don't know if this actually stops the process...or just tosses that error our at the end, but when that error hits, it does no further
and i have a few errors when the kernel loads also,:
Device 'i823650' does not have a release() function, it is broke nand must be fixed.
Warning: Could not open /lib/modules/2.6.9/modules.dep
"" just means it says the same thing, but prefixed with fatal 3 times instead of warning.
^that seems to happen in two places
the strange thing is....the only thing not functioning is the damn 10/100 card. lol...o yea and the sound, but thats pretty low on my list of fixes right now...didn't even bother with it yet
This is my first (by hand) kernel compile so i'm sure i have way too much stuff in there, and probably some stuff i need. slowly parsing through it all.
any help would be greatly appreciated, i've already search through the forums to fix what seems to be the rest of the issues.
next post will have dmesg...gonna go home where i can connect to wireless and copy paste it....@ work right now where the 10/100 won't work and the wireless requires PEAP.
should i post the .config i'm using also ?
once all of this is cleared up...xsupplicant is my next hump to get over...which i could not get to work with linux ant or ndiswrapper in suse 9.1....so i bought this card ( WG511 ) and lept over to slack...hopefully both of these moves will help....network on campus uses PEAP.
well, the problem may be an incompatible config file, did you copy it over from the 2.4 kernel? it's best to start from scratch as there are a lot of options which don't translate.
that said, if I were you I'd hose out /usr/src, get the latest stable from kernel.org, unzip, link to /usr/src/linux. then cd /usr/src/linux, make menuconfig, set options,
anyway the reason it takes a while to come up with the error the first time is all the objects have to be compiled, and the second time all the objects are already compiled. Unless you "make clean" or "make mrproper" those files will still be there. As suggested I'd clean it all out though and start over.
k thanks...i will do try that right now...and yes it is moved over from 2.4.26 but i tried a clean one and i was too far over my head with knowing what i need...i mean i can guess my devices and hardware and stuff....but some of it is just simply not intuitive....so let me try to make mrproper and redo it...knowing what i know now and i'll post back.
1 /* iptables module for the IPv4 and TCP ECN bits, Version 1.2
3 * (C) 2002 by Harald Welte <email@example.com>
5 * This software is distributed under GNU GPL v2, 1991
7 * ipt_ECN.c,v 1.4 2002/08/05 19:36:51 laforge Exp
10 #include <linux/module.h>
11 #include <linux/skbuff.h>
12 #include <linux/ip.h>
13 #include <net/checksum.h>
15 #include <linux/netfilter_ipv4/ip_tables.h>
16 #include <linux/netfilter_ipv4/ipt_ECN.h>
20 /* set ECT codepoint from IP header.
21 * return 0 in case there was no ECT codepoint
22 * return 1 in case ECT codepoint has been overwritten
23 * return < 0 in case there was error */
from which i surmise that you're trying to compile an iptables module in, but leaving out a neccessary dependency. i'm no expert, but it looks like what you're trying to compile in is 'net/ipv4/netfilter/ipt_ecn.o', and what's missing is 'net/ipv4/netfilter/ipt_ecn.c'. in fact, it almost looks like it can't find any directory named 'net', but i don't know, i'm not familiar with error syntax. so i guess i would look for something with ipt_ecn.o in the name, paying special attention to anything regarding iptables. sorry i can't be more help!
When you do make menuconfig, the dependencies should mostly be resolved for you... ipv4 is straight up TCP/IP, you need it if you want to go online at all. Ipchains is a firewall, I don't know much about it.
In menuconfig, help is available for most options even if some of it is totally cryptic. Basically I can only recommend going through and building a kernel and figuring out what works and what doesn't, make sure you keep a record for next time either in your head or on paper. if something doesn't work, go back through make menuconfig and check/uncheck relevant stuff and try again. this is time consuming but it will teach you a lot (:
did something super nooby...used winrar to extract the kernel onto a disc...to save time....and winrar doesn't see a difference between ENC and enc.... heh so it overwrote lots of files....i extracted it in linux, and i've been compiling ever since trying to get all the bugs out.
something i'm having trouble with is......
when i just wana re-compile how can i have it not make the current kernel the vmlinuz.old
because if i recompile then i have a new kernel, and the old one just loads the previous new one...
i have 2.4.26, and i'm compilier 2.6.9
so now i have 2.6.9 and 2.4.66 ( vmlinuz and vmlinuz.old )
if i recompile i get 2.6.9 and 2.6.9 ( the version from above ) sooo yea... i don't know how to explain what i am saying, but i'm sure people know what i mean.
Yes, but if you don't run 'make install' (and you should not run it) the new kernel is not automatically copied in /boot.
For my part I prefer do it by hand:
cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.x
cp System.map /boot/System.map-2.6.x
I give the same suffix to both file (2.6.x) so vmlinuz-2.6.x will use right System.map
Usually, I make a new entry for the kernel in bootloader conf (mine is grub.conf as I use grub not lilo)
and after that I reboot, if all run well, then I delete the entry for old kernel in bootloader conf.
For lilo, you need to run lilo after change lilo.conf, to update MBR accordingly.
Instead of naming your kernel vmlinuz-2.6.x you'd better named it vmlinuz-2.6.9-1. Same applies to the System.map file. But that's something to remember next time. the -1 is something I use for versioning.
But to answer your question: there is no need to adjust the Makefile when you manually copy the kernel (which you are doing) .
The kernel build commands should be something like
cp arch/i386/boot/bzImage /boot/vmlinuz-<version>
cp System.map /boot/System.map-<version>