User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Kernels and Modules section within the Tech Talk category of DaniWeb, a massive community of 374,036 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,849 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Kernels and Modules advertiser: Lunarpages Linux Web Hosting
Views: 458 | Replies: 3
Reply
Join Date: Jun 2007
Posts: 3
Reputation: zsj is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
zsj zsj is offline Offline
Newbie Poster

kernel source tree configuration

  #1  
May 14th, 2008
hi
i hav recently started working with red hat linux .i want to start driver programming.
but i dont't know how to set up or configure kernel source tree. and that is the first requirement as mentioned in the device driver programming book.
help wud be much appreciated.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2006
Location: Canada
Posts: 4,394
Reputation: John A is a glorious beacon of light John A is a glorious beacon of light John A is a glorious beacon of light John A is a glorious beacon of light John A is a glorious beacon of light 
Rep Power: 15
Solved Threads: 260
Moderator
Staff Writer
Featured Blogger
John A's Avatar
John A John A is offline Offline
Vampire Moderator

Re: kernel source tree configuration

  #2  
May 14th, 2008
The official download site for the Linux kernel is kernel.org. You can also get kernel source through your package manager, although keep in mind that Red Hat Linux is an old and outdated distro, so you probably won't be able to get an up to date kernel with it. In fact, I'd recommend upgrading to Fedora or Red Hat Enterprise Linux, or simply moving on to another distro. Especially when you're developing stuff for the kernel, it's important that you develop using modern interfaces and technologies.
tuxation.com - Linux articles, tutorials, and discussions
Reply With Quote  
Join Date: Jun 2007
Posts: 3
Reputation: zsj is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
zsj zsj is offline Offline
Newbie Poster

Re: kernel source tree configuration

  #3  
May 21st, 2008
hi there!
but i m still confused.
1: exactly "what" is meant by "configure source tree"
2: i hav installed linux red hat 9. wud that be ok for driver development.
3: won't i get kernel source automatically if i hav installed the OS.
i m totally lost.
help wud be appreciated
Reply With Quote  
Join Date: Apr 2006
Location: Canada
Posts: 4,394
Reputation: John A is a glorious beacon of light John A is a glorious beacon of light John A is a glorious beacon of light John A is a glorious beacon of light John A is a glorious beacon of light 
Rep Power: 15
Solved Threads: 260
Moderator
Staff Writer
Featured Blogger
John A's Avatar
John A John A is offline Offline
Vampire Moderator

Re: kernel source tree configuration

  #4  
May 21st, 2008
>exactly "what" is meant by "configure source tree"
You need a configuration file before you can build your kernel. A Linux kernel configuration contains instructions for which modules to build, which modules to exclude, and which modules to compile directly into the kernel image itself. The kernel source is usually configured with menuconfig or xconfig .

>i hav installed linux red hat 9. wud that be ok for driver development.
It's certainly possible to do driver development with it, but it's far from ideal. Let's see... Red Hat Linux was discontinued 4 years ago, and support has been dropped for it for over a year. More importantly, why are you using such an outdated distro given the hundreds of others that exist out there?

>won't i get kernel source automatically if i hav installed the OS.
No.

Perhaps you should learn how to compile and install a kernel first before attempting to write drivers and modules for it.
tuxation.com - Linux articles, tutorials, and discussions
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Kernels and Modules Marketplace
Thread Tools Display Modes

Other Threads in the Kernels and Modules Forum

All times are GMT -4. The time now is 11:49 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC