Here is the kernel details
Linux version 3.10.98-poky-edison+ xxxxxxxxxxx SMP PREEMPT Mon Jul 4 11:42:37 IST 2016
root@edison:~# dmesg | grep Linux
[ 0.000000] Linux version 3.10.98-poky-edison+ xxxxxxxxxxx #1 SMP PREEMPT Mon Jul 4 11:42:37 IST 2016
[ 0.000289] SELinux: Initializing.
[ 0.000351] SELinux: Starting in permissive mode
[ 0.208363] media: Linux media interface: v0.10
[ 0.208443] Linux video capture interface: v2.00
[ 0.208516] pps_core: LinuxPPS API ver. 1 registered
[ 0.214744] Advanced Linux Sound Architecture Driver Initialized.
[ 0.686486] SELinux: Registering netfilter hooks
[ 0.706256] Linux agpgart interface v0.103
I believe the hts221 does not require to add a driver to the image in order to control it. I mean, this is an I2C sensor, that can be controlled by following the instructions in http://www.st.com/content/ccc/resource/technical/document/technical_note/group0/82/97/c8/ab/c6/da/41/ed/DM00208001/files/DM00208001.pdf/jcr:content/translations/en.DM00208001.pdf.
I found an example tested on a Raspberry Pi for this sensor https://github.com/ControlEverythingCommunity/HTS221/blob/master/C/HTS221.c. This code will require modifications, so I'd suggest you to read and understand the document I mentioned above in order to learn control the sensor.
Hi Peter ,I was able to compile Edison image and Installed successfully on target.
HTS221 Driver compilation.
Copied the hts221 driver code on driver location
i2c obj file location
I copied the hts221 driver code both places and modified the make file to compile Edison Image.I was trying to get the obj file on above location.
My change in make file are not reflected, make file is override by top make file.
I was unable to compile the hts221 driver.
Make file changes
# Makefile for the i2c core.
obj-$(CONFIG_I2C_BOARDINFO) += i2c-boardinfo.o
obj-$(CONFIG_I2C) += i2c-core.o
obj-$(CONFIG_I2C_SMBUS) += i2c-smbus.o
obj-$(CONFIG_I2C_CHARDEV) += i2c-dev.o
obj-$(CONFIG_I2C_MUX) += i2c-mux.o
obj-y += algos/ busses/ muxes/
obj-y += hts221.o
obj-$(CONFIG_I2C_STUB) += i2c-stub.o
could you please help out how to compile the driver and which make file need to modify ?
As I mentioned before, I don't think this sensor needs a driver. As you can see in the document I posted before (http://www.st.com/content/ccc/resource/technical/document/technical_note/group0/82/97/c8/ab/c6/da/41/ed/DM00208001/files/DM00208001.pdf/jcr:content/translations/en.DM00208001.pdf), the instructions are described in sections 1 and 2. They even include example codes, those codes might not work out of the box for you, but if you implement the mraa library on them you might be able to make them work.
When I looked for the hts221 driver the only thing I found was its firmware. Where did you read that you needed to use a driver with this sensor and where did you get the driver?