Using i2c channel without recompiling the kernel

57 views
Skip to first unread message

milkyway

unread,
Apr 14, 2014, 2:46:21 AM4/14/14
to beagl...@googlegroups.com
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.

Joshua Datko

unread,
Apr 14, 2014, 11:02:43 AM4/14/14
to public-beagleboard-/...@plane.gmane.org



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/

Josh


Muhamed Noufal

unread,
Apr 14, 2014, 11:03:07 PM4/14/14
to beagl...@googlegroups.com

But I am using BeagleBoard. Let me see if it works for Beagle Board also.

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/sIKh84qfOiM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages