i2c in android
#1
Hi,

Has anyone had luck using i2c in android ?
#2
(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.
#3
Rather I'm running the 7.0 build. I think I tried 6.0 but didn't have access to the GPIO pins.
#4
Yep, pretty certain that it's just the kernel build lacking i2c opts in the Android images we've been using. There might be the angle to compile the module by itself and insmod it during runtime (I think this was how community samba/cifs support was pulled off in old Android versions), or more likely to just compile a new kernel and drop it into the image, I think would be successful.

I2C works fine out of the box with both armbian mainline and dev kernels.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Android 6.0 Tablet and TV (release candidate, maintained) ayufan 228 381,680 12-29-2020, 01:13 AM
Last Post: firmwarefile
Shocked Remote for Android? liodra 18 29,148 12-23-2020, 06:11 AM
Last Post: Learnincurve
  Adding an accelerometer to Android modsbyus 11 16,517 11-02-2020, 08:12 PM
Last Post: Little_Johnny
  Android Things OS dqvsra 2 6,861 12-03-2019, 09:52 AM
Last Post: hangglider
  Is there another link for Android images? Maalth 3 6,930 10-10-2019, 07:57 AM
Last Post: tophneal
Question Android SDK Oreo NGC6691 2 5,516 07-15-2019, 08:29 PM
Last Post: dazza5000
  Putting Android 9 RockPro64 source into easier to manage repositories dazza5000 0 3,289 07-15-2019, 08:29 PM
Last Post: dazza5000
  Android 5.1.1 TV (old-stable, no longer maintained) ayufan 194 253,704 03-12-2019, 04:53 PM
Last Post: neosapien
  Issues with SD Card and Running Android Twistedx 0 3,492 02-26-2019, 11:58 AM
Last Post: Twistedx
  Android 7.1 (PINE A64(+)) pineadmin 59 103,755 02-10-2019, 07:44 PM
Last Post: mmmarcus

Forum Jump:


Users browsing this thread: 1 Guest(s)