examples of firmware/capes in the kernel source


I’m new to the world of embedded linux, and I’m trying to get I2C1 working on the BBB. I’ve done a bunch of scouring on the web and came across http://elinux.org/BeagleBone_and_the_3.8_Kernel which lead me to believe that there are capes already made for this.

When I got the latest code from github, I don’t see a “cape” folder in the kernel/firmware. So either I didn’t get the code correctly, or I misunderstood the info in the link above.

The steps I followed were from http://beagleboard.org/linux and are listed below for reference:

~$ git clone git://github.com/beagleboard/kernel.git && cd kernel
~/kernel$ git checkout 3.8
~/kernel$ ./patch.sh

Note that I didn't actually do the build.  Perhaps that's the problem.



Sounds like all you need is a device tree overlay for I2C. try ls -al /lib/firmware on the BBB, and check the results. However, I would recommend watching the latest vide by Derek Molloy on youtube concerning beagelbone and GPIO device tree overlays. It is GPIO, yes, but it is very similar in nature. Perhaps then you’ll have a better understanding.

Just wanted to close the loop on this. Building the kernel allow me to get the sample dts files. BB-I2C1-00A0.dts works like a charm.