[FE training-materials-updates] Toolchain lab updates

Michael Opdenacker michael.opdenacker at free-electrons.com
Tue Oct 15 10:59:15 CEST 2013


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

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

>---------------------------------------------------------------

commit e4f611f3f2404de1bf6b0e857601d7b9614e1875
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date:   Tue Oct 15 10:57:02 2013 +0200

    Toolchain lab updates
    
    - Switching to ct-ng 1.19.x
    - Asking to use gdb-7.4.1
      Otherwise, ct-ng fails because it can't find a sufficiently
      old Python installation in Ubuntu 12.04 (looking for 2.4, 2.5 or 2.6)
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at free-electrons.com>


>---------------------------------------------------------------

e4f611f3f2404de1bf6b0e857601d7b9614e1875
 labs/sysdev-toolchain/sysdev-toolchain.tex |   22 +++++++++++++---------
 1 file changed, 13 insertions(+), 9 deletions(-)

diff --git a/labs/sysdev-toolchain/sysdev-toolchain.tex b/labs/sysdev-toolchain/sysdev-toolchain.tex
index 384ab57..6b102a1 100644
--- a/labs/sysdev-toolchain/sysdev-toolchain.tex
+++ b/labs/sysdev-toolchain/sysdev-toolchain.tex
@@ -25,7 +25,7 @@ sudo apt-get install autoconf automake libtool libexpat1-dev \
 
 \section{Getting Crosstool-ng}
 
-Get the latest 1.18.x release of Crosstool-ng at
+Get the latest 1.19.x release of Crosstool-ng at
 \url{http://crosstool-ng.org}. Expand the archive right in the current
 directory, and enter the Crosstool-ng source directory.
 
@@ -64,7 +64,7 @@ We will use the arm-unknown-linux-uclibcgnueabi sample. It can be loaded by issu
 ./ct-ng arm-unknown-linux-uclibcgnueabi
 \end{verbatim}
 
-Then, to refine the configuration, let's run the menuconfig interface:
+Then, to refine the configuration, let's run the \code{menuconfig} interface:
 
 \begin{verbatim}
 ./ct-ng menuconfig
@@ -90,18 +90,22 @@ In \code{Toolchain options}:
 
 In \code{Debug facilities}:
 \begin{itemize}
-\item Enable \code{gdb}, \code{strace} and \code{ltrace}. Remove the
-  other options (\code{dmalloc} and \code{duma}). 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.
-\item {\bf Workaround for ct-ng 1.18.0}: also enable \code{Native gdb}.
+\item Enable \code{gdb}, \code{strace} and \code{ltrace}.
+\item Remove the other options (\code{dmalloc} and \code{duma}).
+\item In \code{gdb} options:
+  \begin{itemize}
+  \item Make sure that the \code{Cross-gdb} and \code{Build a static gdbserver}
+	options are enabled; the other options are not needed.
+  \item Set \code{gdb version} to \code{7.4.1}.
+  \end{itemize}
 \end{itemize}
 
 Explore the different other available options by traveling through the
 menus and looking at the help for some of the options. Don't hesitate
 to ask your trainer for details on the available options. However,
 remember that we tested the labs with the configuration described
-above.
+above. You might waste time with unexpected issues if you customize the
+toolchain configuration.
 
 \section{Produce the toolchain}
 
@@ -163,7 +167,7 @@ correctly been compiled for the ARM architecture.
 
 \section{Cleaning up}
 
-To save almost 2 GB of storage space, do a \code{./ct-ng clean} in the
+To save about 3 GB of storage space, do a \code{./ct-ng clean} in the
 Crosstool-NG source directory. This will remove the source code of the
 different toolchain components, as well as all the generated files
 that are now useless since the toolchain has been installed in



More information about the training-materials-updates mailing list