[FE training-materials-updates] yocto: labs: add instructions to connect the nunchuk
Antoine Ténart
antoine.tenart at free-electrons.com
Fri Nov 7 14:56:53 CET 2014
Repository : git://git.free-electrons.com/training-materials.git
On branch : master
Link : http://git.free-electrons.com/training-materials/commit/?id=3b5e40876a5638b5b436894368e022d979d59592
>---------------------------------------------------------------
commit 3b5e40876a5638b5b436894368e022d979d59592
Author: Antoine Tenart <antoine.tenart at free-electrons.com>
Date: Fri Nov 7 14:43:01 2014 +0100
yocto: labs: add instructions to connect the nunchuk
Signed-off-by: Antoine Tenart <antoine.tenart at free-electrons.com>
>---------------------------------------------------------------
3b5e40876a5638b5b436894368e022d979d59592
labs/yocto-extend-recipe/yocto-extend-recipe.tex | 25 ++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/labs/yocto-extend-recipe/yocto-extend-recipe.tex b/labs/yocto-extend-recipe/yocto-extend-recipe.tex
index 69a3770..9b47b40 100644
--- a/labs/yocto-extend-recipe/yocto-extend-recipe.tex
+++ b/labs/yocto-extend-recipe/yocto-extend-recipe.tex
@@ -61,6 +61,31 @@ bitbake virtual/kernel
This method is the common one when surcharging recipes.
+\section{Connect the nunchuk}
+
+Take the nunchuk device provided by your instructor.
+
+We will connect it to the second I2C port of the CPU (\code{i2c1}),
+with pins available on the \code{P9} connector.
+
+Identify the 4 pins of the nunchuk connector:
+
+\begin{center}
+\includegraphics[width=4cm]{labs/kernel-i2c-device-model/nunchuk-pinout.pdf}
+\end{center}
+
+Connect the nunchuk pins:
+\begin{itemize}
+\item The \code{GND} pin to P9 pins 1 or 2 (\code{GND})
+\item The \code{PWR} pin to P9 pins 3 or 4 (\code{DC_3.3V})
+\item The \code{CLK} pin to P9 pin 17 (\code{I2C1_SCL})
+\item The \code{DATA} pin to P9 pin 18 (\code{I2C1_SDA})
+\end{itemize}
+
+\begin{center}
+\includegraphics[width=12cm]{labs/kernel-i2c-device-model/bbb-connect-nunchuk.pdf}
+\end{center}
+
\section{Test the Nunchuk}
Copy the newly generated kernel and device tree images into the first SD card
More information about the training-materials-updates
mailing list