Linux 2.6.10-rc3 for 8xx with I2C config enabled fails ...
Hello Alexander:
Quoted 1 line · Povolotsky, Alexander
Hi Mark,
Not sure why you're writing me privately...
Quoted 14 lines
I have FreeScale (Motorola) 8xx custom board with single 24C02 I2C EEPROM, connected to the I2C bus.
Building Linux (latest and greatest ;-) ) 2.6.10-rc3 FAILS for 8xx with I2C config enabled - see attached below -
but it works in Linux 2.4 .So I want to try to port 8xx i2c bus driver code from the 2.4.26 (which works !) to Linux 2.6 ...
In Linux 2.6 distribution I see:
.../drivers/i2c/busses and .../drivers/i2c/algos
Quoted 7 lines
I do not see the same subdirectories in the Linux 2.4 distribution ...
Is there any documentation (or may be you could kindly explain to me) what was the idea behind reorganizing drivers sub-directories between 2.4 and 2.6 ?
It looks like those changes are beyond simply 'cosmetic' improvements ? - am I correct ?
AFAIK, the directory org was just cosmetic.
Quoted 2 lines
- I would highly appreciate this answer, since it would help me to attempt
to try make it work in 2.6 !
If you haven't already, take a look here for documentation:
http://secure.netroedge.com/~lm78/docs.html
And if you have any more questions, please send them to the sensors mailing list which I've CC'ed. BTW: there's no need to subscribe, the list is open.
Quoted 42 lines
-----Original Message-----
From: Jean Delvare [mailto:[email protected]]
Sent: Tuesday, December 14, 2004 4:38 AM
To: [email protected]; [email protected]
Subject: Re: 8xx i2c drivers (cross)compilation errors on Linux 2.6.8Quoted 11 lines · Alexander Povolotsky
Hi,
I have the following .config setup:
(...)CONFIG_I2C_RPXLITE=y
(...)Originally I was getting error:
CCdrivers/i2c/busses/i2c-rpx.odrivers/i2c/busses/i2c-rpx.c:20:32:linux/i2c-algo-8xx.h: No such file or directory - why I am missing it - any hint ?Hm, looks like the 8xx i2c algorithm was never ported to Linux 2.6. Greg, how come that the RPX adapter driver is present in the tree and the algorithm it depends on isn't?
Quoted 3 lines
So I copied the
i2c-algo-8xx.hfile from Linux 2.4.26 distribution ... could I use it ?
(if not - could you send me the correcti2c-algo-8xx.hfile ? - TIA !)I don't think it'll work. The header file is one thing, the algorithm driver is another and you would need to port both (they proabbly won't work out of the box due to important changes in the i2c subsystem between 2.4 and 2.6 kernels). Also, obviously the RPX adapter driver couldn't be used so far so it was possibly never tested. There will probably be much porting and debugging work if you want to get it to work.
Greg, could it be that an arch-specific (m68k? don't know what this rpx/8xx thing is) variant of the Linux tree already has the i2c-algo-8xx driver ported to 2.6? We probably want to import it into the main tree if this is the case (having adapter drivers that won't compile doesn't sound good...)
Quoted 3 lines
Alexander, at any rate, there's not much I can do myself, as I don't have compatible hardware to port/test/debug the i2c-algo-8xx and i2c-rpx drivers. Sorry.
Regards,
Signature · 2 lines
Mark M. Hoffman [email protected]
Quoted 5 lines
(I hope I will be excused - at least I was not soliciting anything but just info and advise, for which in my idealistic judgement there is no money equivalent, since those are ... priceless.
Of course, this is just my private view and other people might have different opinion on this subject ).
Not sure what you mean here, but we welcome hardware donations ;)
Quoted 10 lines
In http://www2.lm-sensors.nu/~lm78/cvs/i2c/doc/summary I see:
..
Adapter drivers
---------------
..
i2c-rpx: RPX board Motorola 8xx I2C device (uses i2c-algo-8xx)
(NOT BUILT BY DEFAULT)
..Does above comment relates to 2.4 or 2.6 or both ?
The "NOT BUILD BY DEFAULT" relates to 2.4 only (or more precisely to the version of i2c which is Linux 2.4 compatible). Non-x86 driver receive very little testing (and are not maintained) because none of us has non-x86 hardware to test on. In the facts, i2c and lm_sensors are very x86-centric.
Quoted 9 lines
As it was discovered, 2.6 distribution lacks (as far as ppc 8xx is concerned)
both:i2c-algo-8xx.handi2c-algo-8xx.cfiles, which are present in 2.4 .Tom Rini suggested to me to bring both files into Linux 2.6 and to merge
i2c-rpx.cwithi2c-algo-8xx.c
into one file (placing it it under the busses subdirectory ? - AP ) - any opinion on that ?
We usually have separate algorithms when one algorithm is shared by several bus drivers. Since it seems that i2c-rpx is the only user of this one, I have no objection to merging i2c-algo-8xx and i2c-rpx. In fact, we don't really care here, the PPC folks can do what they want with their drivers.
Signature · 2 lines
Jean Delvare http://khali.linux-fr.org/
Quoted 1 line
Not sure why you're writing me privately...
Sorry - didn't know about existance of this particular list ... I am new in the area ... - my sincere apologies !
(I hope I will be excused - at least I was not soliciting anything but just info and advise,
for which in my idealistic judgement there is no money equivalent, since
those are ... priceless.
Of course, this is just my private view and other people might have different opinion on this subject ).
In http://www2.lm-sensors.nu/~lm78/cvs/i2c/doc/summary I see:
..
Adapter drivers
---------------
..
i2c-rpx: RPX board Motorola 8xx I2C device (uses i2c-algo-8xx) (NOT
BUILT BY DEFAULT)
..
Does above comment relates to 2.4 or 2.6 or both ?
As it was discovered, 2.6 distribution lacks (as far as ppc 8xx is concerned)
both: i2c-algo-8xx.h and i2c-algo-8xx.c files, which are present in 2.4 .
Tom Rini suggested to me to bring both files into Linux 2.6 and to merge i2c-rpx.c with i2c-algo-8xx.c
into one file (placing it it under the busses subdirectory ? - AP ) - any opinion on that ?
Thanks,
Best Regards,
Alex
-----Original Message-----
From: Mark M. Hoffman [mailto:[email protected]]
Sent: Sunday, December 19, 2004 10:01 AM
To: Povolotsky, Alexander
Cc: Sensors
Subject: Re: Linux 2.6.10-rc3 for 8xx with I2C config enabled fails ...
Hello Alexander:
* Povolotsky, Alexander <[email protected]> [2004-12-18 10:57:38 -0500]:
Quoted 1 line
Hi Mark,
Not sure why you're writing me privately...
Quoted 4 lines
I have FreeScale (Motorola) 8xx custom board with single 24C02 I2C EEPROM, connected to the I2C bus.
Building Linux (latest and greatest ;-) ) 2.6.10-rc3 FAILS for 8xx with
I2C
Quoted 8 lines
config enabled - see attached below -
but it works in Linux 2.4 .So I want to try to port 8xx i2c bus driver code from the 2.4.26 (which works !) to Linux 2.6 ...
In Linux 2.6 distribution I see:
Quoted 8 lines
.../drivers/i2c/busses and .../drivers/i2c/algos
I do not see the same subdirectories in the Linux 2.4 distribution ...
Is there any documentation (or may be you could kindly explain to me) what was the idea behind reorganizing drivers sub-directories between 2.4 and 2.6 ?
It looks like those changes are beyond simply 'cosmetic' improvements ? -
am
Quoted 1 line
I correct ?
AFAIK, the directory org was just cosmetic.
Quoted 1 line
- I would highly appreciate this answer, since it would help me to
attempt
Quoted 1 line
to try make it work in 2.6 !
If you haven't already, take a look here for documentation:
http://secure.netroedge.com/~lm78/docs.html
And if you have any more questions, please send them to the sensors mailing list
which I've CC'ed. BTW: there's no need to subscribe, the list is open.
Quoted 6 lines
-----Original Message-----
From: Jean Delvare [mailto:[email protected]]
Sent: Tuesday, December 14, 2004 4:38 AM
To: [email protected]; [email protected]
Subject: Re: 8xx i2c drivers (cross)compilation errors on Linux 2.6.8
Quoted 12 lines
Quoted 10 lines · Alexander Povolotsky
Hi,
I have the following .config setup:
(...)CONFIG_I2C_RPXLITE=y
(...)Originally I was getting error:
CCdrivers/i2c/busses/i2c-rpx.odrivers/i2c/busses/i2c-rpx.c:20:32:linux/i2c-algo-8xx.h: No such file
or
Quoted 24 lines
Quoted 1 line
directory - why I am missing it - any hint ?
Hm, looks like the 8xx i2c algorithm was never ported to Linux 2.6. Greg, how come that the RPX adapter driver is present in the tree and the algorithm it depends on isn't?
Quoted 3 lines
So I copied the
i2c-algo-8xx.hfile from Linux 2.4.26 distribution ... could I use it ?
(if not - could you send me the correcti2c-algo-8xx.hfile ? - TIA !)I don't think it'll work. The header file is one thing, the algorithm driver is another and you would need to port both (they proabbly won't work out of the box due to important changes in the i2c subsystem between 2.4 and 2.6 kernels). Also, obviously the RPX adapter driver couldn't be used so far so it was possibly never tested. There will probably be much porting and debugging work if you want to get it to work.
Greg, could it be that an arch-specific (m68k? don't know what this rpx/8xx thing is) variant of the Linux tree already has the i2c-algo-8xx driver ported to 2.6? We probably want to import it into the main tree if this is the case (having adapter drivers that won't compile doesn't sound good...)
Quoted 3 lines
Alexander, at any rate, there's not much I can do myself, as I don't have compatible hardware to port/test/debug the i2c-algo-8xx and i2c-rpx drivers. Sorry.
Regards,
Signature · 2 lines
Mark M. Hoffman [email protected]