Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 08-13-2009, 10:38 AM   #1
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 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-15-2009, 12:48 AM   #2
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 02:21 AM
Unable to build kernel modules outside the kernel tree Rovalk Programming 2 01-19-2008 02:18 AM
How to build the kernel tree on the system? Nishant Desai Linux - Kernel 24 12-01-2006 09: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 09:21 PM
Unable to build NVIDIA kernel module / determin kernel version Night Ink Fedora 2 05-31-2004 05:54 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:32 AM.

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