LinuxQuestions.org
Visit Jeremy's Blog.
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 04-16-2015, 12:21 AM   #1
pilliskanth
LQ Newbie
 
Registered: May 2011
Posts: 3

Rep: Reputation: 0
Question how to write new i2c device driver?


HI i am looking to write new i2c driver for SI-4754 FM Receiver. so please any one help me to start/write programming.give me some tips or please give some sample programs/guidlines.
 
Old 04-16-2015, 12:28 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
we have no idea on your skills
-- you have not stated that

so start here
https://www.howtoforge.com/beginners_guide_to_cplusplus
 
Old 04-16-2015, 12:53 AM   #3
jheengut
Member
 
Registered: Sep 2006
Location: Providence, Moka Mauritius
Distribution: Slackware, Lubuntu
Posts: 352
Blog Entries: 16

Rep: Reputation: 51
Thumbs down C++

Quote:
Originally Posted by John VV View Post
we have no idea on your skills
-- you have not stated that

so start here
https://www.howtoforge.com/beginners_guide_to_cplusplus
but still the kernel is not even written C++
 
Old 04-16-2015, 07:20 AM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
@jeengut: You can write a Linux driver in C or C++

@pilliskanth:

You cross posted this question in two forums. This is not helpful.

It appears that since you didn't receive any satisfactory replies to your first post, you created a second post to engender those responses.

Please understand that people are not here to provide "on demand" support.

Since you ask how to start, I suggest you start by reading about Linux device drivers and how to write them. Here is a reference for Linux device drivers. In your reading there will be code examples, just not exact ones matching the particular device driver you're looking at. An added suggestion is to contact the manufacturer of that device and ask if they have a Linux device driver, any examples, or any code they can share.

If that reference is too difficult for you, then you need to start at a more rudimentary level, and it would therefore be helpful for you to relate your experience level with programming and Linux as well as any experience with the Linux kernel.

People will help you get started, and progress, but they will not do the work for you. What you've been given here and by John VV are some starting points.

Last edited by rtmistler; 04-16-2015 at 07:21 AM. Reason: clarification
 
Old 04-17-2015, 06:02 PM   #5
DJ Shaji
Member
 
Registered: Dec 2004
Location: Yo Momma's house
Distribution: Fedora Rawhide, ArchLinux
Posts: 518
Blog Entries: 15

Rep: Reputation: 106Reputation: 106
What I love about these posts is that this is probaly like this guy's job. I bet OP has a degree in software engineering and got some job where he is required to write kernel device drivers. But the beauty of the thing is that judging from the pure noobiness of the question, he's got absolutely no clue. Threads like this are like stand up comedy for nerds.

Here you go, pal! Buy this book and get all your questions answered! Writing a kernel driver isn't something explained in a single post. Read and tinker away!

Linux Device Drivers by Jonathan Corbet, Alessandro Rubini, Greg Kroah-Hartman
https://books.google.co.in/books?id=M7RHMACEkg4C
 
1 members found this post helpful.
  


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 access i2c device driver node farrukh_arshad Linux - Kernel 7 12-19-2012 10:05 PM
How to forward IOCTL's from i2c-dev.c to adapter driver (i2c-rt3352.c) elonica.pl Linux - Kernel 2 08-23-2011 02:03 AM
How to write a i2c chip driver which handles different addresses avyadavnitw Linux - Embedded & Single-board computer 0 06-15-2009 11:57 AM
I2C device driver mylinuxdna Linux - General 0 10-10-2005 02:16 AM
how to write a device driver raghu mitra Linux - Software 1 07-22-2004 02:26 PM

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

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