LinuxQuestions.org
Help answer threads with 0 replies.
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 04-19-2004, 07:43 PM   #1
DB03
Member
 
Registered: Mar 2004
Distribution: Fedora Core 1
Posts: 48

Rep: Reputation: 15
Building a Kernel


Ok, I'm really sorry if this is a dumb question:

1) Can somebody please walk me through building and installing a new kernel (Fedora Core 1, current version 2.4, yes I have source installed) or reccomend a good website for a total linux-kernel-building n00b that totally explains it step-by-step?

2) I am installing a driver for my wireless card. It like patches the kernel or something, but it says I need to rebuild the kernel with the option of modules enabled. I can do this, but it asks me like 10,000 other questions, of which 10,000 of them I don't understand. I noticed that if you just press enter it accepts it. Is it using a default? Is it safe to do that?

Thanks,
DB03


[azqaz]
 
Old 04-19-2004, 08:22 PM   #2
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
The Linux Kernel HOWTO is a pretty good place to start. I don't know of a step-by-step walkthrough, but once you get to the point of configuring it, the built-in documentation for each kernel configuration option should help you; for every config option, you can choose "help" to see a detailed explanation of what that option is for. It's best to learn by doing, I think.

If I understand your second question correctly, you're saying that you need to "enable support for modules"... is that correct? If so, you are probably OK; every standard distribution kernel already has modules enabled. However, if you're saying that the kernel needs to be patched, and a module needs to be built, then that would be part of the procedure of compiling your own kernel.

Is the "10,000 other questions" you refer to the config options of the kernel? For those, I think a default configuration is provided, but it's very probable that the default does not include many important things.

Anyhow, check out that HOWTO. I think it'll answer some of your questions.
 
Old 04-19-2004, 08:26 PM   #3
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
NO.. if you use default options, you are going to cripple your system !
for example, default says to compile without ppp (dialup) support !!!!!

use "make menuconfig" or "make xconfig" to configure the kernel, then select load configureation file.enter the path '/boot/config-2.4.22-1.2115.nptl' (or similar depending on your system)

this file contains all the config options used to compile the fedora core 1 default kernel.

simple go into the network section, and add support for your card, but dont touch anything else (unless you understand what you are doing)

then your compiled kernel will be identile to your origonal, PLUS the wireless lan driver.

HOWEVER..... you will probably find that because you are re-compiling the same kernel version, you will over write your old kernel.... so maybe it is best to leave all other options alone.

may i also recomend you try a 2.6 kernel, i understand they have much greater support for wireless lan.

however if you do upgrade to 2.6, you will not be able to use the above method to configure... you will need to learn... READ READ READ and more READ !

hope i helped.

there are some great guides on compiling kernels on this site, read them.
but unfortunatly, you will not find a step by step guide for the configure stage...

every-one has different hardware, and needs different configureations.
 
Old 04-19-2004, 09:01 PM   #4
DB03
Member
 
Registered: Mar 2004
Distribution: Fedora Core 1
Posts: 48

Original Poster
Rep: Reputation: 15
ok thanks but when you say leave the stuff alone, how do I do that without doing y or n? is it jsut pressing enter?
 
Old 04-20-2004, 06:34 AM   #5
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
lol....

to configure the ekrnel options.. use
"make xconfig"
or
"make menuconfig"

that will give you a graphical interface for the configure options,
after you load the configure file from /boot jump straight to the network section and into the network adapters area.

only change it so that your network card is supported.
 
Old 04-21-2004, 02:24 PM   #6
DB03
Member
 
Registered: Mar 2004
Distribution: Fedora Core 1
Posts: 48

Original Poster
Rep: Reputation: 15
ok thanks i'll try that
 
Old 06-12-2004, 08:41 AM   #7
Villain
LQ Newbie
 
Registered: Jan 2004
Location: Munich,Germany
Distribution: Slackware 10 - 2.6.7
Posts: 25

Rep: Reputation: 15
Hi there
Id like to add a question here

I dont have enough experience to know what I need and what i dont, although I chose help and read it. I dont understand it sometimes.
That causes the kernel being too big (1,9MB doesnt fit on a 1,4MB floppy what you might have noticed).

Isnt there any more detailed explanation, which says sth like "you dont need this if you dont want that" in an easy way?

is there any use in "Math emulation" for instance

thanks

Last edited by Villain; 06-12-2004 at 10:41 AM.
 
  


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
Building Kernel spaaarky21 Fedora 0 02-06-2005 07:50 PM
Building kernel module from multiple source file in 2.6 kernel yogeshwar_s Programming 1 12-20-2004 09:31 AM
Problems building a simple kernel module for kernel 2.6.7 atticman Linux - Software 2 12-13-2004 03:35 PM
need help building kernel 2.6.3 c24chan Slackware 4 04-05-2004 10:47 PM
Building kernel mods for an existing kernel ugenn Linux - Software 2 10-06-2003 01:25 PM

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

All times are GMT -5. The time now is 06:28 PM.

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