Nick Lee doesn't have a personal statement currently.
Gender Not Set
Joined: 30-July 10
Profile Views: 672*
Last Seen: 5th August 2010 - 12:24 AM
Local Time: Jan 18 2017, 05:01 AM
2 posts (0 per day)
* Profile views updated each hour
2 Aug 2010
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!
Nick Lee has no visitors to display.
Other users have left no comments for Nick Lee.
There are no friends to display.
|Lo-Fi Version||Time is now: 17th January 2017 - 08:01 PM|