I am using BeagleBoard Rev C3 running Ubuntu 11.04. I need to use an i2c sensor, for my project. By default, i2c-2 channel is disable by the OS, which is available in the expansion header. Is it possible to use the i2c-2 channel without recompiling the kernel? Please give me your suggestions.
The bus names are a bit confusing, but the BBB's i2c-2, on pins P19/20,
can be sometimes labeled i2c-1 in Linux.
Anyway, this usually does the trick to get the third i2c bus:
root@arm:~# echo BB-I2C1 > /sys/devices/bone_capemgr.8/slots
root@arm:~# ls -l /sys/bus/i2c/devices/i2c-*
lrwxrwxrwx 1 root root 0 Nov 3 21:49 /sys/bus/i2c/devices/i2c-0 -> ../../../devices/ocp.2/44e0b000.i2c/i2c-0
lrwxrwxrwx 1 root root 0 Nov 3 21:49 /sys/bus/i2c/devices/i2c-1 -> ../../../devices/ocp.2/4819c000.i2c/i2c-1
lrwxrwxrwx 1 root root 0 Nov 3 21:50 /sys/bus/i2c/devices/i2c-2 -> ../../../devices/ocp.2/4802a000.i2c/i2c-2
I did a blog post about it here: http://datko.net/2013/11/03/bbb_i2c/
But I am using BeagleBoard. Let me see if it works for Beagle Board also.