2003-05-28 16:09:08

by John Covici

[permalink] [raw]
Subject: what happened to i2c-proc

I am trying to compile appropriate modules for lm sensors in 2.5.70,
but there seems to be no way to configure i2c-proc -- it seems to be
there for other architectures, but not for i386.

Any assistance would be appreciated.

--
John Covici
[email protected]


2003-05-28 20:16:11

by Jose Luis Domingo Lopez

[permalink] [raw]
Subject: Re: what happened to i2c-proc

On Wednesday, 28 May 2003, at 12:22:23 -0400,
John Covici wrote:

> I am trying to compile appropriate modules for lm sensors in 2.5.70,
> but there seems to be no way to configure i2c-proc -- it seems to be
> there for other architectures, but not for i386.
>
And this is probably the cause of my hardware sensors (it87.ko) not
working :-). Here is what modules.dep for my 2.4.20 kernel says:
/lib/modules/2.4.20-xfsip/kernel/drivers/sensors/it87.o:
/lib/modules/2.4.20-xfsip/kernel/drivers/i2c/i2c-core.o \
/lib/modules/2.4.20-xfsip/kernel/drivers/i2c/i2c-proc.o

And here what it says for my 2.5.70 kernel:
/lib/modules/2.5.70/kernel/drivers/i2c/chips/it87.ko: /lib/modules/2.5.70/kernel/drivers/i2c/i2c-sensor.ko /lib/modules/2.5.70/kernel/drivers/i2c/i2c-core.ko

Or maybe something changed in the meantime, and problems are in
user-space, the fact is it doesn't work:

server:~# sensors -v
sensors version 2.6.5

As seen on lm_sensors' home page, it seems the are still porting i2c and
lm_sensors to recent 2.5.x kernels, so maybe the problem is there. They
advise against trying to compile both i2c and lm_sensors for 2.5.x
kernels, because probably they won't work.

Hope this helps.

--
Jose Luis Domingo Lopez
Linux Registered User #189436 Debian Linux Sid (Linux 2.5.70)

2003-05-28 23:07:33

by Jan Dittmer

[permalink] [raw]
Subject: Re: what happened to i2c-proc

Jose Luis Domingo Lopez wrote:
> On Wednesday, 28 May 2003, at 12:22:23 -0400,
> John Covici wrote:
>
>
>>I am trying to compile appropriate modules for lm sensors in 2.5.70,
>>but there seems to be no way to configure i2c-proc -- it seems to be
>>there for other architectures, but not for i386.
>>
>
> Or maybe something changed in the meantime, and problems are in
> user-space, the fact is it doesn't work:
>
> server:~# sensors -v
> sensors version 2.6.5
>

The sensors proc interface didn't make it to 2.5. You have to use sysfs
to check the sensors (/sys/devices/legacy/...). Userspace didn't get
converted yet, so all libsensor based programs (ie. all) don't work anymore

Jan

2003-05-30 16:06:21

by Greg KH

[permalink] [raw]
Subject: Re: what happened to i2c-proc

On Wed, May 28, 2003 at 12:22:23PM -0400, John Covici wrote:
> I am trying to compile appropriate modules for lm sensors in 2.5.70,
> but there seems to be no way to configure i2c-proc -- it seems to be
> there for other architectures, but not for i386.

i2c-proc is no longer a separate compile option. The i2c interface is
now through sysfs, not /proc for 2.5.

thanks,

greg k-h