LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-13-2009, 09:38 AM   #1
pops13
LQ Newbie
 
Registered: Aug 2009
Posts: 11

Rep: Reputation: 0
Red face How to configure & build kernel tree on kernel version 2.6.X(RHEL-5)?


Hello there,

I m writing device driver for Linux(rather learning how to write them)
I m referring book from http://lwn.net/Kernel/LDD2/ URL(Linux Device Drivers)

As per requirement to run examples from this book, I need to hv kernel 2.6.x

I installed RHEL-5(kernel ver 2.6.18)

Now the problem is,

1. how i can proceed with kernel tree configuration ??
What's the need to configure kernel tree as it may be configured at installation time (OR might not be)??


2. Please explain, what they exactly mean by configuring & building kernel tree?(What happens internally ..??)
 
Old 08-14-2009, 11:48 PM   #2
epilitimus
Member
 
Registered: Jul 2009
Distribution: Slackware
Posts: 35

Rep: Reputation: 17
First off if I may gently suggest, if you don't understand what is involved in building a kernel you need to do a lot more research before you try writing device drivers.

The quick answers to your questions are:

1. Try make menuconfig. That's the easiest method in my opinion. Then do make clean, followed by make, and then install the kernel and associated modules.

2. Under the hood you are setting up what parts of the kernel will be built and then doing the actual compiling/assembling/linking. A more detailed explanation involves a lot more basic info.
 
  


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
How to build a individual module in the kernel tree avyadavnitw Linux - Embedded & Single-board computer 2 06-15-2009 01:21 AM
Unable to build kernel modules outside the kernel tree Rovalk Programming 2 01-19-2008 01:18 AM
How to build the kernel tree on the system? Nishant Desai Linux - Kernel 24 12-01-2006 08:05 PM
LXer: Howto: build Linux kernel module against installed kernel w/o full kernel source tree LXer Syndicated Linux News 0 09-03-2006 08:21 PM
Unable to build NVIDIA kernel module / determin kernel version Night Ink Fedora 2 05-31-2004 04:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:21 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