dme1737 under CentOS 2.6.18 kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jaroslav,


On Mon, May 26, 2008 at 12:08 PM, Jaroslav Vacha <vacha at email.cz> wrote:

> Hi,
>   I'm trying to compile dme1737 driver under  CentOS 5.1 with
> 2.6.18-53.1.21.el5 kernel to support VIA EPIA-SN 18000G motherboard sensors.
>   Followed Juerg's instruction from post
> http://lists.lm-sensors.org/pipermail/lm-sensors/2007-December/022166.html
>
>   Code compiled with warnings:
>
> #make all
> make -C /lib/modules/`uname -r`/build M=/install/lm_sensors/driver modules
> make[1]: Entering directory `/usr/src/kernels/2.6.18-53.1.21.el5-i686'
>   CC [M]  /install/lm_sensors/driver/dme1737.o
> /install/lm_sensors/driver/dme1737.c:55: warning: initialization discards
> qualifiers from pointer target type
> /install/lm_sensors/driver/dme1737.c: In function 'dme1737_i2c_detect':
> /install/lm_sensors/driver/dme1737.c:2139: warning: assignment from
> incompatible pointer type
> /install/lm_sensors/driver/dme1737.c: In function
> 'dme1737_i2c_detach_client':
> /install/lm_sensors/driver/dme1737.c:2172: warning: passing argument 1 of
> 'hwmon_device_unregister' from incompatible pointer type
> /install/lm_sensors/driver/dme1737.c: In function 'dme1737_isa_probe':
> /install/lm_sensors/driver/dme1737.c:2324: warning: assignment from
> incompatible pointer type
> /install/lm_sensors/driver/dme1737.c: In function 'dme1737_isa_remove':
> /install/lm_sensors/driver/dme1737.c:2348: warning: passing argument 1 of
> 'hwmon_device_unregister' from incompatible pointer type
>   Building modules, stage 2.
>   MODPOST
>   CC      /install/lm_sensors/driver/dme1737.mod.o
>   LD [M]  /install/lm_sensors/driver/dme1737.ko
> make[1]: Leaving directory `/usr/src/kernels/2.6.18-53.1.21.el5-i686'
> [root at server driver]#
>
>   dme1737.ko module is created and copied in
> /lib/modules/2.6.18-53.1.21.el5/kernel/drivers/hwmon path. But when I tried
> to insert this module into kernel, module is not loaded with following error
> message:
>
> #insmod dme1737.ko
> insmod: error inserting 'dme1737.ko': -1 Unknown symbol in module
>
> Do you have any idea where is a mistake? Thanks for your reply
>

The dme1737 driver depends on i2c-core and hwmon-vid. My guess is one or
both of those aren't loaded. Do 'depmod -a' and then 'modprobe dme1737
probe_all_addr=1' to load the driver an all the modules it depends upon.
Note that for the driver to correctly work on a SN18000 board, you need to
have the following patch applied (hence the probe_all_addr option):
http://lists.lm-sensors.org/pipermail/lm-sensors/2008-April/022802.html

...juerg



> Jaroslav
>
>
>
> _______________________________________________
> lm-sensors mailing list
> lm-sensors at lm-sensors.org
> http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20080526/0fe86faf/attachment.html 


[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux