diff --git a/books/beaglebone-cookbook/11misc/figures/kernel.org.drivers.png b/books/beaglebone-cookbook/11misc/figures/kernel.org.drivers.png new file mode 100644 index 0000000000000000000000000000000000000000..c83a5d2463b5eb1899b0ab0793af42f6ff1cc84e Binary files /dev/null and b/books/beaglebone-cookbook/11misc/figures/kernel.org.drivers.png differ diff --git a/books/beaglebone-cookbook/11misc/figures/kernel.org.plain.png b/books/beaglebone-cookbook/11misc/figures/kernel.org.plain.png new file mode 100644 index 0000000000000000000000000000000000000000..68b8ba4efe8de9cccb9bb78a0676bdd4b4e40e3d Binary files /dev/null and b/books/beaglebone-cookbook/11misc/figures/kernel.org.plain.png differ diff --git a/books/beaglebone-cookbook/11misc/figures/kernel.org.png b/books/beaglebone-cookbook/11misc/figures/kernel.org.png new file mode 100644 index 0000000000000000000000000000000000000000..a29bf5a42aabd662770c9d2648700e167556de3d Binary files /dev/null and b/books/beaglebone-cookbook/11misc/figures/kernel.org.png differ diff --git a/books/beaglebone-cookbook/11misc/figures/kernel.org.tmp117.png b/books/beaglebone-cookbook/11misc/figures/kernel.org.tmp117.png new file mode 100644 index 0000000000000000000000000000000000000000..8af8e80ea90cb6622329f36944cda75044d1026a Binary files /dev/null and b/books/beaglebone-cookbook/11misc/figures/kernel.org.tmp117.png differ diff --git a/books/beaglebone-cookbook/11misc/misc.rst b/books/beaglebone-cookbook/11misc/misc.rst index 75e50459a7133f3dffcfeecded4ccd889c963d5c..a6a29add2f156852de8bc204e5eff74b89f316d9 100644 --- a/books/beaglebone-cookbook/11misc/misc.rst +++ b/books/beaglebone-cookbook/11misc/misc.rst @@ -434,11 +434,32 @@ Googling tmp006 and tmp007 shows that they are Infrared Thermopile Sensors, not Browse over to http://kernel.org to see if there are tmp114 drivers in the newer versions of the kernel. The first line in the table is **mainline**. Click on the **browse** link on the right. + +.. figure:: figures/kernel.org.png + :align: center + :alt: http://kernel.org + Here you will see the top level of the Linux sourse tree for the *mainline* version of the kernel. + +.. figure:: figures/kernel.org.drivers.png + :align: center + :alt: http://kernel.org drivers + Click on **drivers** and then **iio**. Finally, since tmp114 is a temperture sensor, click on **temperature**. + +.. figure:: figures/kernel.org.tmp117.png + :align: center + :alt: http://kernel.org tmp117 + Here you see all the source code for the iio temperature drivers for the mainline version of the kernel. We've seen tmp006 and tmp007 as before, tmp117 is new. Maybe it will work. Click on **tmp117.c** to see the code. -Looks like it also works for the tmp116 too. Let's try convering it to work with the tmp114. +Looks like it also works for the tmp116 too. + +.. figure:: figures/kernel.org.plain.png + :align: center + :alt: http://kernel.org plain + +Let's try convering it to work with the tmp114. A quick way to copy the code to the bone is to right-click on the **plain** link and select *Copy link address*. Then, on the bone enter **wget** and paste the link. Mine looks like the following, yours will be similar.