Cross-compile
Since version 2.8.8 of i2c and lm_sensors, I am discovering that the kernel modules are different sizes when compiled under i686 and under athlon architectures. And what is compiled on i686 doesn't work on athlon, and vice versa. Is this supposed to be happening? Is there any way to compile a generic i386 version that works on both?
Steve Timm
------------------------------------------------------------------
Steven C. Timm, Ph.D (630) 840-8525 [email protected] http://home.fnal.gov/~timm/
Fermilab Computing Div/Core Support Services Dept./Scientific Computing Section Assistant Group Leader, Farms and Clustered Systems Group
Lead of Computing Farms Team
Hi Steven:
Quoted 4 lines · Steven Timm
Since version 2.8.8 of i2c and
lm_sensors, I am discovering that the kernel modules are different sizes when compiled under i686 and under athlon architectures. And what is compiled on
I took a look through lm_sensors2 CVS... I don't see anything that should cause new behavior in this regard since 2.8.7.
Quoted 3 lines
i686 doesn't work on athlon, and vice versa. Is this supposed to be happening? Is there any way to compile a generic i386 version that works on both?
When you compile the kernel modules from the i2c or lm_sensors2 packages, you will need to have the kernel source available and configured for the target system. IOW, the i2c and lm_sensors2 modules build differently (686 vs. athlon) because the kernel source on the systems is configured differently.
(At least, that's what I speculate is happening in your case.)
I don't think there's any way to reliably build the modules to work in both, unless your base kernel is also configured for that (e.g. the RedHat -i386 builds), but that's probably not what you really want.
I hope that helps; Regards,
Signature · 2 lines
Mark M. Hoffman [email protected]
Thanks for the information.. that is pretty much what I had figured. I had got away with just compiling the module and having one module for all hardwares up to 2.8.3.
Steve Timm
------------------------------------------------------------------
Steven C. Timm, Ph.D (630) 840-8525 [email protected] http://home.fnal.gov/~timm/
Fermilab Computing Div/Core Support Services Dept./Scientific Computing Section Assistant Group Leader, Farms and Clustered Systems Group
Lead of Computing Farms Team
Quoted 34 lines · Mark M. Hoffman
Hi Steven:
Quoted 4 lines · Steven Timm
Since version 2.8.8 of i2c and
lm_sensors, I am discovering that the kernel modules are different sizes when compiled under i686 and under athlon architectures. And what is compiled onI took a look through
lm_sensors2CVS... I don't see anything that should cause new behavior in this regard since 2.8.7.Quoted 3 lines
i686 doesn't work on athlon, and vice versa. Is this supposed to be happening? Is there any way to compile a generic i386 version that works on both?
When you compile the kernel modules from the i2c or
lm_sensors2packages, you will need to have the kernel source available and configured for the target system. IOW, the i2c andlm_sensors2modules build differently (686 vs. athlon) because the kernel source on the systems is configured differently.(At least, that's what I speculate is happening in your case.)
I don't think there's any way to reliably build the modules to work in both, unless your base kernel is also configured for that (e.g. the RedHat -i386 builds), but that's probably not what you really want.
I hope that helps; Regards,
Signature · 2 lines
Mark M. Hoffman [email protected]