* Re: [lm-sensors] Motherboard Fujitsu D-3076-S
2013-08-08 8:55 [lm-sensors] Motherboard Fujitsu D-3076-S Holger Bürger
@ 2013-08-08 9:50 ` Hans de Goede
2013-08-08 11:05 ` Holger Bürger
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Hans de Goede @ 2013-08-08 9:50 UTC (permalink / raw)
To: lm-sensors
Hi,
On 08/08/2013 10:55 AM, Holger Bürger wrote:
> Hello,
>
> I try to get a Fujitsu D-3076-S Motherboard working with Centos 5.9.
> Therefore I try to get the BMC working with lm-sensors.
>
>
> Can you show me, where I can get actual sources, which can be compiled
> against kernel 2.6.18-348.3.1.el5PAE?
>
> The website http://www.lm-sensors.org/wiki/Devices linked
> the chip SCH5636 with driver sch5636 against the public folder ( of
> Hans De Goede) http://people.fedoraproject.org/~jwrdegoede/sch56xx/, but
> this doesn't exists anymore.
Ah, I did not know we still had a link to that. I've restored it from
my local copy. Note that 2.6.18 is quite old I've no idea if the
standalone sch56xx version will work with it, but it is back up now.
Regards,
Hans
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [lm-sensors] Motherboard Fujitsu D-3076-S
2013-08-08 8:55 [lm-sensors] Motherboard Fujitsu D-3076-S Holger Bürger
2013-08-08 9:50 ` Hans de Goede
@ 2013-08-08 11:05 ` Holger Bürger
2013-08-08 11:12 ` Hans de Goede
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Holger Bürger @ 2013-08-08 11:05 UTC (permalink / raw)
To: lm-sensors
Hi,
> ...
> ... 2.6.18 is quite old ...
> ...
I tried to compile this:
"
make -C /lib/modules/2.6.18-348.el5/build M=/root/test modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-348.12.1.el5-i686'
CC [M] /root/test/sch56xx-common.o
/root/test/sch56xx-common.c: In function »sch56xx_device_add«:
/root/test/sch56xx-common.c:795: Fehler: Implizite Deklaration der
Funktion »acpi_check_resource_conflict«
make[2]: *** [/root/test/sch56xx-common.o] Fehler 1
make[1]: *** [_module_/root/test] Fehler 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-348.12.1.el5-i686'
make: *** [all] Fehler 2
"
Is there a way to fix this?
Regards
Holger Bürger
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [lm-sensors] Motherboard Fujitsu D-3076-S
2013-08-08 8:55 [lm-sensors] Motherboard Fujitsu D-3076-S Holger Bürger
2013-08-08 9:50 ` Hans de Goede
2013-08-08 11:05 ` Holger Bürger
@ 2013-08-08 11:12 ` Hans de Goede
2013-08-08 11:24 ` Holger Bürger
2013-08-08 12:32 ` Hans de Goede
4 siblings, 0 replies; 6+ messages in thread
From: Hans de Goede @ 2013-08-08 11:12 UTC (permalink / raw)
To: lm-sensors
Hi,
On 08/08/2013 01:05 PM, Holger Bürger wrote:
> Hi,
>
>> ...
>> ... 2.6.18 is quite old ...
>> ...
>
> I tried to compile this:
>
> "
> make -C /lib/modules/2.6.18-348.el5/build M=/root/test modules
> make[1]: Entering directory `/usr/src/kernels/2.6.18-348.12.1.el5-i686'
> CC [M] /root/test/sch56xx-common.o
> /root/test/sch56xx-common.c: In function »sch56xx_device_add«:
> /root/test/sch56xx-common.c:795: Fehler: Implizite Deklaration der
> Funktion »acpi_check_resource_conflict«
> make[2]: *** [/root/test/sch56xx-common.o] Fehler 1
> make[1]: *** [_module_/root/test] Fehler 2
> make[1]: Leaving directory `/usr/src/kernels/2.6.18-348.12.1.el5-i686'
> make: *** [all] Fehler 2
> "
>
> Is there a way to fix this?
Yes you can simply remove the line in question, and the 2 lines remove
it, so remove the following lines:
err = acpi_check_resource_conflict(&res);
if (err)
goto exit_device_put;
This is not something which I would normally advise, but at the
Fujitsu board in question it is safe to remove the check.
Regards,
Hans
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [lm-sensors] Motherboard Fujitsu D-3076-S
2013-08-08 8:55 [lm-sensors] Motherboard Fujitsu D-3076-S Holger Bürger
` (2 preceding siblings ...)
2013-08-08 11:12 ` Hans de Goede
@ 2013-08-08 11:24 ` Holger Bürger
2013-08-08 12:32 ` Hans de Goede
4 siblings, 0 replies; 6+ messages in thread
From: Holger Bürger @ 2013-08-08 11:24 UTC (permalink / raw)
To: lm-sensors
Hi,
> Yes you can simply remove the line in question, and the 2 lines remove
> it, so remove the following lines:
But I have more errors then.
make -C /lib/modules/2.6.18-348.el5/build M=/root/test modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-348.12.1.el5-i686'
CC [M] /root/test/sch56xx-common.o
CC [M] /root/test/sch5636.o
/root/test/sch5636.c: In function »show_in_value«:
/root/test/sch5636.c:189: Fehler: Implizite Deklaration der Funktion
»DIV_ROUND_CLOSEST«
/root/test/sch5636.c: In function »sch5636_remove«:
/root/test/sch5636.c:392: Warnung: Übergabe des Arguments 1 von
»hwmon_device_unregister« von inkompatiblem Zeigertyp
/root/test/sch5636.c: In function »sch5636_probe«:
/root/test/sch5636.c:505: Warnung: Zuweisung von inkompatiblem Zeigertyp
make[2]: *** [/root/test/sch5636.o] Fehler 1
make[1]: *** [_module_/root/test] Fehler 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-348.12.1.el5-i686'
make: *** [all] Fehler 2
Regards
Holger Bürger
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [lm-sensors] Motherboard Fujitsu D-3076-S
2013-08-08 8:55 [lm-sensors] Motherboard Fujitsu D-3076-S Holger Bürger
` (3 preceding siblings ...)
2013-08-08 11:24 ` Holger Bürger
@ 2013-08-08 12:32 ` Hans de Goede
4 siblings, 0 replies; 6+ messages in thread
From: Hans de Goede @ 2013-08-08 12:32 UTC (permalink / raw)
To: lm-sensors
Hi,
On 08/08/2013 01:24 PM, Holger Bürger wrote:
> Hi,
>
>
>> Yes you can simply remove the line in question, and the 2 lines remove
>> it, so remove the following lines:
>
> But I have more errors then.
Yes, it now passes building sch56xx-common.c, and moves on to another
file which has other issues.
>
> make -C /lib/modules/2.6.18-348.el5/build M=/root/test modules
>
>
> make[1]: Entering directory `/usr/src/kernels/2.6.18-348.12.1.el5-i686'
>
>
> CC [M] /root/test/sch56xx-common.o
> CC [M] /root/test/sch5636.o
> /root/test/sch5636.c: In function »show_in_value«:
> /root/test/sch5636.c:189: Fehler: Implizite Deklaration der Funktion
> »DIV_ROUND_CLOSEST«
To fix this replace (at line 189):
val = DIV_ROUND_CLOSEST(
data->in[attr->index] * SCH5636_REG_IN_FACTORS[attr->index],
255);
With:
val = data->in[attr->index] * SCH5636_REG_IN_FACTORS[attr->index] / 255;
> /root/test/sch5636.c: In function »sch5636_remove«:
> /root/test/sch5636.c:392: Warnung: Übergabe des Arguments 1 von
> »hwmon_device_unregister« von inkompatiblem Zeigertyp
> /root/test/sch5636.c: In function »sch5636_probe«:
> /root/test/sch5636.c:505: Warnung: Zuweisung von inkompatiblem Zeigertyp
These 2 warnings can be ignored.
You likely need to make the same change in sch5627.c
Regards,
Hans
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 6+ messages in thread