# WP76XX SDK 18.1.0 Missing linux/i2c-dev-user.h

**URL:** <https://forum.legato.io/t/wp76xx-sdk-18-1-0-missing-linux-i2c-dev-user-h/3185>\
**Category:** Uncategorized\
**Created:** [March 31, 2018, 8:29am UTC](https://forum.legato.io/t/wp76xx-sdk-18-1-0-missing-linux-i2c-dev-user-h/3185 "2018-03-31T08:29:38Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![dfrey](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/dfrey/32/563_2.png) [@dfrey](https://forum.legato.io/u/dfrey)\
**Post date:** [April 3, 2018, 3:57pm UTC](https://forum.legato.io/t/wp76xx-sdk-18-1-0-missing-linux-i2c-dev-user-h/3185/5 "2018-04-03T15:57:25Z")

</div>

There are a few different issues in play here.

For some reason, the upstream i2c-tools package overwrites the `include/linux/i2c-dev.h` with its own version which adds some header only functions for smbus. I’m not sure why they didn’t just create a separate header called `i2c-dev-smbus.h` or something, but they didn’t.

Yocto (or openembedded?) does something sort of non-standard in that they _don’t_ overwrite the default `i2c-dev.h` file provided by the Linux kernel. Instead they rename the one from i2c-tools to `i2c-dev-user.h`. If you look at `poky/meta/recipes-devtools/i2c-tools/i2c-tools_3.1.2.bb` in the yocto folder for WP76, you will see these lines:

```auto
install -m 0644 include/linux/i2c-dev.h ${D}${includedir}/linux/i2c-dev-user.h
rm -f ${D}${includedir}/linux/i2c-dev.h

```

In December 2017, a commit was made to meta-swi which removed the `i2c-tools` package from the list of package dependencies for the mdm9x28 image. So as a result, you no longer have `i2c-dev-user.h`

---

_[View the full topic](https://forum.legato.io/t/wp76xx-sdk-18-1-0-missing-linux-i2c-dev-user-h/3185)._
