diff options
| author | Manuel Traut <manut@linutronix.de> | 2018-11-27 22:57:33 +0100 |
|---|---|---|
| committer | John Ogness <john.ogness@linutronix.de> | 2018-11-29 15:37:16 +0106 |
| commit | 5d9043ce4f07dbc63a2996874e798de4a83538c2 (patch) | |
| tree | ae754cf03c83db31a4bf98cd1a7f443428fe064a /distribution/yocto-example-layer/tcf-agent.tex | |
| parent | 7ae33ef4607d2e17254e8ac1bc02aa9741bbe719 (diff) | |
add 'yocto-layer-example'
This is a first attemp to create a new slideset for day2 of yocto-trainig.
The slideset is based on 'yocto-advanced' but with integration of
'meta-schulung' explanations.
I used a slightly modified version of 'meta-schulung'. The following changes
are currently not available in git:
I don't use linux-yocto in meta-schulung, but use an own kernel-recipe and
integrate the RT-PREEMPT patch.
wic: i can't see the need for the second partition and the need for huge files
in the kconfig. It works for me by adding ' --align 1024 ' to the wic setup.
I decided to use ext2 instead of ext4.
I renamed the rootfs.bb file into schulung-base.bb
I use the u-boot recipe from poky. However i don't use u-boot for anything atm.
But bootloader is on our agenda..
Signed-off-by: Manuel Traut <manut@linutronix.de>
Diffstat (limited to 'distribution/yocto-example-layer/tcf-agent.tex')
| -rw-r--r-- | distribution/yocto-example-layer/tcf-agent.tex | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/distribution/yocto-example-layer/tcf-agent.tex b/distribution/yocto-example-layer/tcf-agent.tex new file mode 100644 index 0000000..a70b506 --- /dev/null +++ b/distribution/yocto-example-layer/tcf-agent.tex @@ -0,0 +1,58 @@ +\subsection{Remote Debugging} +\begin{frame} +\frametitle{Workflow} +\begin{itemize} +\item Introduce 'SCHULUNG\_FEATURES' variable +\item Check feature variable in image recipe +\item Use debugging tools from poky layer +\end{itemize} +\end{frame} + +\begin{frame}[fragile] +\frametitle{Extend image recipe} +\begin{lstlisting} +$ cd ~/poky/meta-schulung +$ pluma recipes-core/image/core-image-schulung.bb +\end{lstlisting} +\begin{verbatim} +[..] +DEVPKGS = "gdbserver tcf-agent procps strace" +CORE_IMAGE_BASE_INSTALL = " \ + schulung-base \ + kernel-modules \ + example \ + ${@bb.utils.contains('SCHULUNG_FEATURES','devel','${DEVPKGS}','', d)} \ +" +[..] +\end{verbatim} +\end{frame} + +\begin{frame}[fragile] +\frametitle{Define SCHULUNG\_FEATURES and rebuild image} +\begin{lstlisting} +$ cd ~/poky/build-schulung +$ pluma conf/local.conf +\end{lstlisting} +\begin{verbatim} +#STATE_DIR ?= "/home/prebuilt/vexpress/sstate-cache" +#BB_NO_NETWORK = "1" +MACHINE ??= "vexpress" +DL_DIR ?= "/home/downloads" +DISTRO ?= "schulung" +PACKAGE_CLASSES ?= "package_ipk" +EXTRA_IMAGE_FEATURES ?= "debug-tweaks" +SCHULUNG_FEATURES = "devel" +USER_CLASSES ?= "buildstats image-mklibs image-prelink" +PATCHRESOLVE = "noop" +CONF_VERSION = "1" +\end{verbatim} +\begin{lstlisting} +$ bitbake core-image-schulung +$ bitbake -c populate_sdk core-image-schulung +\end{lstlisting} +If image is started in qemu tcf-agent needs to be started manually: +\begin{lstlisting} +Please press Enter to activate this console. +/ # /etc/init.d/tcf-agent start +\end{lstlisting} +\end{frame} |
