LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-21-2007, 09:56 AM   #1
EmbeddedSteve
LQ Newbie
 
Registered: Sep 2006
Posts: 17

Rep: Reputation: 0
I2C Header problem with Kernel 2.6


Greetings All!
I work in the Embedded Arena. I've run into an issue that I need some guidance on.
Our current system is a Linux 2.4.21 kernel running on PMPPC440 boards. Everything runs smoothly. So now we're beginning to explore moving to 2.6.x, since that's where customers are headed. So we've put together a 2.6.10 kernel and have this running on the PMPPC440 module.
I've run some "plain" programs that are like simulations of what we do. These seem to work just fine. When I try to compile the "real" programs that are now talking to the hardware, I run into problems.
In the first program, I got lots of undefines and redefines for various internal kernel symbols. After poking around, I found that the bulk of this was cause by the inclusion of "linux/i2c.h" in the test program. Removing this got rid of these particular issues, only to be replaced by undefines that are defined IN this module. This seems rather strange, like someone has re-arranged the header file structures here.
Has anyone else run into this issue? Is there a solution? This appears using the "native" tools on the target system, or with the cross development tools we have on our server. The GCC version is the same in either case, and I get the same results, so this seems to point to a common header inclusion issue.
Any pointers would be greatly appreciated!
TIA for your support.
Regards,
Stephen Beckwith
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
i2c in 2.4.33.3? also need driver via686a for same kernel Tux-Slack Slackware 1 05-16-2007 01:40 PM
Matchup of kernel header and source, and apt-get problem fallen3019 Linux - Kernel 2 05-06-2007 06:27 AM
Debian kernel header problem and missing folder draggin Debian 11 08-22-2005 05:09 PM
vmware problem with kernel C header files on SuSE 9.1 spariggio82 Linux - General 12 09-02-2004 03:19 PM
kernel compiling error on i2c lak Linux - Software 0 11-07-2003 11:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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