[FE training-materials-updates] sysdev: use buildroot to install debugging tools

Alexandre Belloni alexandre.belloni at free-electrons.com
Thu Jul 31 09:30:43 CEST 2014

Repository : git://git.free-electrons.com/training-materials.git

On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=6c0e63db252a2b0a732b45ae96cc02650cf5260c


commit 6c0e63db252a2b0a732b45ae96cc02650cf5260c
Author: Alexandre Belloni <alexandre.belloni at free-electrons.com>
Date:   Wed Jul 30 20:45:19 2014 +0200

    sysdev: use buildroot to install debugging tools
    Signed-off-by: Alexandre Belloni <alexandre.belloni at free-electrons.com>


 .../sysdev-application-debugging.tex               |   23 +++++++++++---------
 labs/sysdev-buildroot/sysdev-buildroot.tex         |    3 ++-
 labs/sysdev-toolchain/sysdev-toolchain.tex         |    6 ++---
 3 files changed, 18 insertions(+), 14 deletions(-)

diff --git a/labs/sysdev-application-debugging/sysdev-application-debugging.tex b/labs/sysdev-application-debugging/sysdev-application-debugging.tex
index 52d783b..f1f009a 100644
--- a/labs/sysdev-application-debugging/sysdev-application-debugging.tex
+++ b/labs/sysdev-application-debugging/sysdev-application-debugging.tex
@@ -15,18 +15,21 @@ Boot your ARM board over NFS on the filesystem produced in the {\em
 \section{Setting up gdbserver, strace and ltrace}
-\code{gdbserver}, \code{strace} and \code{ltrace} have already been
-compiled for your target architecture as part of the cross-compiling
-toolchain. Find them in the installation directory of your
-toolchain. Copy these binaries to the \code{/usr/bin/} directory in
-the root filesystem of your target system.
+\code{gdbserver} has already been compiled for your target
+architecture as part of the cross-compiling toolchain. It has been
+copied in your target filesystem thanks to the
+\code{Copy gdb server to the Target} option.
+Buildroot can also help you compile debugging tools. Select the
+\code{strace} and \code{ltrace} packages.
 Unfortunately, the latest \code{ltrace} release is quite old and is
-not working on recent kernels. You can go back to Buildroot, apply the
-patch named \code{0001-ltrace-use-current-master.patch}, select the
-\code{ltrace} package and build. this will build a fairly recent
-version of \code{ltrace} that you can now install in your NFS
+not working on recent ARM kernels. This is the one that will be
+compiled by the Buildroot version you are using. You can apply the
+patch named \code{0001-ltrace-use-current-master.patch} to compile a
+more recent \code{ltrace} version.
+Now, you can compile and install everything in your root filesystem.
 \section{Using strace}
diff --git a/labs/sysdev-buildroot/sysdev-buildroot.tex b/labs/sysdev-buildroot/sysdev-buildroot.tex
index 15c15c0..bb7f8c2 100644
--- a/labs/sysdev-buildroot/sysdev-buildroot.tex
+++ b/labs/sysdev-buildroot/sysdev-buildroot.tex
@@ -86,6 +86,7 @@ Set the following options:
     WCHAR support?}, \code{Toolchain has SSP support?} and
     \code{Toolchain has C++ support?}.
     Buildroot will check these parameters anyway.
+  \item Select \code{Copy gdb server to the Target}
 \item \code{Target packages}
@@ -100,7 +101,7 @@ Set the following options:
          \item Select alsamixer
          \item Select speaker-test
-    \item Select \code{vorbis-utils}
+    \item Select \code{vorbis-tools}
 \item \code{Filesystem images}
diff --git a/labs/sysdev-toolchain/sysdev-toolchain.tex b/labs/sysdev-toolchain/sysdev-toolchain.tex
index 25d7ede..c5572c8 100644
--- a/labs/sysdev-toolchain/sysdev-toolchain.tex
+++ b/labs/sysdev-toolchain/sysdev-toolchain.tex
@@ -99,9 +99,9 @@ In \code{Toolchain options}:
 In \code{Debug facilities}:
-\item Make sure that \code{gdb}, \code{strace} and \code{ltrace} are
-      enabled.
-\item Remove the other options (\code{dmalloc} and \code{duma}).
+\item Make sure that \code{gdb} is enabled.
+\item Remove the other options (\code{dmalloc}, \code{duma}),
+      \code{strace} and \code{ltrace}
 \item In \code{gdb} options, make sure that the \code{Cross-gdb} and
       \code{Build a static gdbserver} options are enabled; the other
       options are not needed.

More information about the training-materials-updates mailing list