LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-23-2003, 10:21 AM   #1
polar
LQ Newbie
 
Registered: May 2003
Posts: 20

Rep: Reputation: 0
kernel compile


Hi,

I need to recompile my debian kernel.

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
 
Old 05-23-2003, 10:59 AM   #2
youngstorm
Member
 
Registered: May 2003
Location: USA
Distribution: Fedora 21, RHEL 5,6&7, Windoze 7
Posts: 235

Rep: Reputation: 31
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
 
Old 05-23-2003, 02:07 PM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
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.
 
Old 05-23-2003, 03:21 PM   #4
5aboy
Member
 
Registered: May 2003
Posts: 30

Rep: Reputation: 15
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?
 
Old 05-23-2003, 03:50 PM   #5
youngstorm
Member
 
Registered: May 2003
Location: USA
Distribution: Fedora 21, RHEL 5,6&7, Windoze 7
Posts: 235

Rep: Reputation: 31
5aboy,

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.
 
Old 05-23-2003, 08:53 PM   #6
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 47
Avoid the questions altogether with...

make menuconfig

You can now configure your kernel with nicely menu'd screen.
 
Old 05-24-2003, 07:57 AM   #7
quietguy47
Member
 
Registered: Mar 2003
Location: Everett
Distribution: Slackware
Posts: 805

Rep: Reputation: 35
You can use your old config file for your new kernel but just typing
make oldconfig
 
Old 05-24-2003, 09:33 AM   #8
polar
LQ Newbie
 
Registered: May 2003
Posts: 20

Original Poster
Rep: Reputation: 0
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.
 
Old 05-24-2003, 03:34 PM   #9
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
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.
 
Old 05-24-2003, 04:24 PM   #10
quietguy47
Member
 
Registered: Mar 2003
Location: Everett
Distribution: Slackware
Posts: 805

Rep: Reputation: 35
I prefer the plain and simple text based make config
Here is a site that will help with the compile http://www.tldp.org/HOWTO/Kernel-HOWTO/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
upgraded kernel, won't let me compile kernel once Suspend2 patches are applied microsoft/linux Linux - Laptop and Netbook 3 10-02-2005 02:37 PM
I want to compile 2.6 kernel and keep everything from 2.4 intact (dual kernel system) sina_kish Linux - Software 7 02-02-2005 09:01 AM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 06:02 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 03:05 PM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 01:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration