Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ive downloaded linux-2.4.20.tar.gz from www.kernel.org and have plenty of instructions on how to compile the new kernel.
As I understand when you want to included something in the kernel you either select Y or M. Im unsure in what instances I should select Y and where I should M.
I know what to select in the kernel to get my various cards working. The thing Im not too sure about is my motherboard (ABit KT7A RAID). Its got AGP, APM, ACPI, PCI and USB, is that enough knowledge of the product to get me through the compile? It also has an ISA slot and RAID controllers but as I dont use these I wont need to configure them will I?
When you compile the kernel are there defaults loaded and you just add to them? Or do you have to select everything yourself?
I bet you cant tell this is the first time I compile the kernel
Hi,
1. Y means that it is compiled into the kernel.
M means to compile it as a module. that means that that feature will be
compiled as a module to loaded by the kernel at some time, either
at boot up or later when it is needed.
2. the more you know about your hardware the better. try to find out
what chipset you have. Also, know what make and model sound and
video cards you have. Just because you don't see you exact hardware in
the kernel does not mean it wont work but if you see a support feature
for it then all the cooler, use it.
3. You can try to not include support for items you dont need but if
something does work rite, try including support for them and see if
that fixes whatever is broke.
4. Yes, there are defualts. It's generaly safe to leave them but use the helps.
The helps will usually tell you about that feature and if you should
include it or not.
hope this help. if you need more help let us know.
good luck
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
the only stuff you really have to have built into the kernel
is the stuff that you need to have to boot and load your
filesystem. other stuff like sound cards, and lpt port
support can be modules. you have to the filesystem
support for your filesystem, and generally support for
your motherboard chipset, but usually the kernel would
boot anyway, you just wouldn't have dma and other
features available.
expect to compile many times. as soon as you get your
new kernel booting, start figuring out what stuff doesn't
work, and start figuring out what you need to get that
stuff to work.
does it always take ages?
i downloaded the 2.5.59 kernel and tried to compile it - i did the gzip command, and lots of stuff came up on the screen - took about 10 minutes for all the screens to complete. then i did something called make config or something like that - and it asked the same questions. the thing i dont understand is - how comes there are loads and loads of questions - i am trying to install my usb adsl modem - so am sorta unsure about which ones to select which ones to not - is it better/worse to just type M or Y for everything - or is that bad?
It depends on your computer. The more GHz and RAM the better. Even on
a fast machine it can take 15 minutes or more. Don't use "make config"
anymore, use "make menuconfig" it much better. Also, No dont just say Y/M to everything. use the helps. Highligh the item your interested in and go over to help. read it. It will often tell if you need it or not.
I would of used the old config file but my hard disk totally died the other day so I cant and the person who compiled it for me last time has moved away.
Thanks for the tip about knowing the boards chipset. I looked through the motherboard manual and found that the chipset is VIA Apollo KT133 (VT836A and VT82C686B).
Whats nicer to use make xconfig or make menuconfig?
I plan to recompile it on Tuesday so I'll post to say how I got on. If anyone has anymore tips please post them, I'll keep checking the forum.
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
i like xconfig better, but i have before had compiled
kernels that didnt' work or wouldn't compile and and
redid them with menuconfig, and it worked. so i'll still
use xconfig, but if i run into problems, i'll use
menuconfig.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.