Skip to contentSkip to conversation

lm93 porting questions

lm-sensors D.J. Barrow 2 participants 3 messages Oct 23, 2006

lore
Share & tools
lore
#0 lore raw

Hi Mark/Eric & others,
I am looking at backporting the lm93 driver
( lm93-driver-2.6.13-rc3-mm3-0001.bin ) to Linux version 2.6.9-34 Red Hat Enterprise Linux 4 to meet a customer requirement.

The biggest problem with the port to date seems to be incompatible sysfs apis. The attr stuff below being the primary source of the problems I think.
struct device_attribute *attr

	struct sensor_device_attribute *s_attr = to_sensor_dev_attr(attr);

How would one go about dealing with this?

sensors -v is reporting the following version sensors version 2.8.7 with libsensors version 2.8.7

Do the kernel drivers & the user applications libsensors have to be matched, is the driver interface exposed to libsensors stable?
Is backporting a bad idea as the libsensors etc. now
have to be modified to support the new lm93 driver & left the same in parts to suppport the older sensor drivers.

If you advise we move to the latest kernel & sensors user applications we will need to upgrade other drivers, do any of you know if there will be glibc compatibility issues on upgrading the kernel.

Thanks in advance for your help,
D.J. Barrow

D.J. Barrow Linux kernel developer
email: dj_barrow at ariasoft.ie
email(work) denis.barrow at thalescomputers.fr
Work: +33-498-163412
Home: +353-22-47196.
Mobile (IRL) +353-(0)86 1715438

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

#1 lore raw

I do believe we already have a patch where I work. I'll send it to the list in a moment. In need to hunt it down. If we don't have one I'll let you know, but I'm pretty sure we do...james

Quoted 45 lines · D.J. Barrow

Hi Mark/Eric & others,
I am looking at backporting the lm93 driver
( lm93-driver-2.6.13-rc3-mm3-0001.bin ) to Linux version 2.6.9-34 Red Hat Enterprise Linux 4 to meet a customer requirement.

The biggest problem with the port to date seems to be incompatible sysfs apis. The attr stuff below being the primary source of the problems I think.
struct device_attribute *attr

       struct sensor_device_attribute *s_attr = to_sensor_dev_attr(attr);

How would one go about dealing with this?

sensors -v is reporting the following version sensors version 2.8.7 with libsensors version 2.8.7

Do the kernel drivers & the user applications libsensors have to be matched, is the driver interface exposed to libsensors stable?
Is backporting a bad idea as the libsensors etc. now
have to be modified to support the new lm93 driver & left the same in parts to suppport the older sensor drivers.

If you advise we move to the latest kernel & sensors user applications we will need to upgrade other drivers, do any of you know if there will be glibc compatibility issues on upgrading the kernel.

Thanks in advance for your help,
D.J. Barrow

D.J. Barrow Linux kernel developer
email: dj_barrow at ariasoft.ie
email(work) denis.barrow at thalescomputers.fr
Work: +33-498-163412
Home: +353-22-47196.
Mobile (IRL) +353-(0)86 1715438

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

_______________________________________________
lm-sensors mailing list
lm-sensors at lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#2 lore raw
In reply to D.J. Barrow
Quoted 4 lines · James Olin Oden

I do believe we already have a patch where I work. I'll send it to the list in a moment. In need to hunt it down. If we don't have one I'll let you know, but I'm pretty sure we do...james

OK, Its not in our source control (we were on the RHEL4 kernel for a short period of time). The guy you want to talk to is Jeff Johnson, whose email address is:

"Jeff Johnson" <n3npq.jbj at gmail.com>

Who I've forwarded a copy of this email to. He did do a port, which
may not be perfect, but is likely to be a good place from which to start.

Cheers...james