OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

> Hardware Monitoring, Thermal Zone Drivers
Nick Lee
post Aug 2 2010, 01:19 AM
Post #1





Group: Members
Posts: 2
Joined: 30-July 10
Member No.: 83,187



I'm trying to include the driver for National Semiconductor's LM63 chip in our build and am having trouble getting it to work. I've selected the following in the kernel configuration:

(*) I2C Support
(*) I2C Device Interface
(*) Autoselect Pertinent Helper Modules
(M) Hardware Monitoring Support
(M) National Semiconductor LM63
(M) Generic Thermal sysfs driver
(*) Hardware Monitoring Support

In bitbake, I've added kernel-modules and lmsensors-apps. The latter seems to exclude all the required libraries from the final image, even though they get built - but when I copy them manually to the board, I can run i2cdump, etc. Running i2cdump on the correct address for the sensor I'm trying to read gives me the temperature, as expected. However, when I link a program to libsensors (which also has to be copied across manually, which is probably a clue to what the problem is), and attempt to read from the sensor using the interface provided by lmsensors, it fails with an error code which I've traced to the part of the source code that reads from sysfs. Looking in sysfs, there appears to be no entry for the temperature sensor, though I'm not entirely sure where it should be! I've done modprobe lm63 and modprobe thermal_sys.

Should there be an entry somewhere in /dev or /sys/fs for the various sensors supported by the LM63 module?
How do I correctly add support for this module in bitbake / kernel config, as I'm convinced there are bits missing?

Hope I've provided enough information - if there is anything missing, please ask!

Ta,

Nick
Go to the top of the page
 
+Quote Post

Posts in this topic
Nick Lee   Hardware Monitoring   Aug 2 2010, 01:19 AM
Nick Lee   Ok, I've made some progress. I've added k...   Aug 3 2010, 06:11 AM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 2nd September 2014 - 03:40 AM