I have driver for HTS221 I2C driver.I want to compile and install the third party driver (hts221)along with Intel Edison.
We are using this link .http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel-edison/about meta-intel-edison - Layer for the Intel Edison Development Platform
I was able to compile and install the image successfully.
Could you please provide the details steps for compile and install the third party driver (hts221) along with Intel Edison.
Steps for Edison image compilation and flash it on board are attached for your reference./message/405552
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... http://www.st.com/content/ccc/resource/technical/document/technical_note/group0/82/97/c8/ab/c6/da/41....
I found an example tested on a Raspberry Pi for this sensor https://github.com/ControlEverythingCommunity/HTS221/blob/master/C/HTS221.c 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...), 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?