09-03-2017, 06:42 AM
(03-09-2017, 06:24 AM)Skivholme Wrote: Hi,
Has anyone had luck using i2c in android ?
So, I've been trying to play with this, mostly from within a chroot linux environment for better visibility into what's going on... I really want to extend via i2c more than GPIO, and perhaps daisy chain sensors or arduinos off of it...
I'm running ayufan's 6.0 android build with a Kali chroot inside linux deploy. The pine64 GPIO pins are supported fine from both 'environments', but from looking at dmesg, /dev/ and messing with i2c-utils, I don't think that the built kernel has the i2c dev support.
I started considering how to just rebuild a custom kernel for the image, just adding i2c device support to the .config... but got sidetracked. I didn't confirm that this is the actual cause or solution; I'm just going off of the fact there's no /dev/i2c* . May they just need mknod'ed, if the config is already in there; Haven't verified at all.