LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 07-23-2007, 10:21 PM   #1
faris10
Member
 
Registered: Nov 2005
Location: High Point,NC
Distribution: SUSE 10.1
Posts: 89

Rep: Reputation: 15
linux device driver


Hi all,
I have been searching for writing a linux device driver.
Can anyone give me a hint on how to write a driver? What need to be configured for this process.
Thanks
 
Old 07-24-2007, 09:49 AM   #2
VampireL0rd
Member
 
Registered: Dec 2004
Distribution: Slackware 10.2
Posts: 37

Rep: Reputation: 15
Yes, I have also begun learning to write drivers as well. The industry standard book is Linux Device Drivers by O'Reilly. The book is now in third edition and you will need it if you want to write drivers for the latest kernel 2.6.* or an eariler book for the 2.4*, but he does often mention the older kenrel system calls in the book. You can actually find a link to download second editon for free at www.freescale.com website, you have to make an account. Just look around in the Codewarrior for linux documentation and you should see it
 
Old 07-24-2007, 12:57 PM   #3
faris10
Member
 
Registered: Nov 2005
Location: High Point,NC
Distribution: SUSE 10.1
Posts: 89

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by VampireL0rd
Yes, I have also begun learning to write drivers as well. The industry standard book is Linux Device Drivers by O'Reilly. The book is now in third edition and you will need it if you want to write drivers for the latest kernel 2.6.* or an eariler book for the 2.4*, but he does often mention the older kenrel system calls in the book. You can actually find a link to download second editon for free at www.freescale.com website, you have to make an account. Just look around in the Codewarrior for linux documentation and you should see it
HI I have the third edition of the book. I installed the fedora 6 . but even the simple example does not work. Do I need to have source of the kernel? My point is about the preparation before start the writing process
 
Old 07-24-2007, 07:50 PM   #4
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 114Reputation: 114
Oh, you absolutely have to have the kernel source. Yes, indeedy.
 
Old 07-25-2007, 09:51 AM   #5
faris10
Member
 
Registered: Nov 2005
Location: High Point,NC
Distribution: SUSE 10.1
Posts: 89

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jiml8
Oh, you absolutely have to have the kernel source. Yes, indeedy.
Ok I was reading around on how to build the simplest device driver program. I see that I have to build a kernel tree. For that I have downloaded the last version of kernel from kernel.org and I have to build the new kernel in /usr/src/linux-2.6.X .
I do see that most of the documentations talk about the lilo. I dont have that on my system. I have the grub, so that should work the same almost, right?
 
  


Reply


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
Scull (Linux Device Driver) harsh_electro Linux - Newbie 3 11-07-2008 05:39 AM
Linux Device Driver malacma Linux - Software 10 10-09-2007 06:14 AM
Linux Device Driver Bible? yspm Programming 2 01-03-2006 09:30 PM
Linux Device Driver Development aslv Linux - Certification 0 09-27-2004 08:42 AM
Info about Linux Device Driver rajatnaik Linux - Software 2 07-28-2003 04:07 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration