diff options
| author | Manuel Traut <manut@mecka.net> | 2011-03-18 14:13:12 +0100 |
|---|---|---|
| committer | Manuel Traut <manut@mecka.net> | 2011-03-18 14:13:12 +0100 |
| commit | 39550bd9ea86090e5fa05f61c36e701ce740487f (patch) | |
| tree | 774869c5b0a2609a66b1c304449b29262167d1b3 /application-devel | |
| parent | 4bc34ce9f7a336a5f176c3f79dfc418d56806fe1 (diff) | |
added stripped down crossdevel chapter
Signed-off-by: Manuel Traut <manut@mecka.net>
Diffstat (limited to 'application-devel')
| -rw-r--r-- | application-devel/cross-devel/pres_cross-devel_de-userspace.tex | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/application-devel/cross-devel/pres_cross-devel_de-userspace.tex b/application-devel/cross-devel/pres_cross-devel_de-userspace.tex new file mode 100644 index 0000000..6ab48d2 --- /dev/null +++ b/application-devel/cross-devel/pres_cross-devel_de-userspace.tex @@ -0,0 +1,64 @@ +\input{configpres} + +\subsection{ARM Cross Development} + +\title{\lq ARM Cross Development\rq} +\maketitle + +\begin{frame} +\frametitle{Übersicht} +\tableofcontents +\end{frame} + +\subsubsection{Cross Übersetzen} +\begin{frame}[containsverbatim] +\frametitle{Cross ''Hello world''} +\begin{lstlisting}[language=c] +/* cross_hello.c */ +#include <stdio.h> + +int main(void) +{ + printf("Hello cross compiling world\n"); + return 0; +} +\end{lstlisting} +\end{frame} + +\begin{frame}[containsverbatim] +\frametitle{Übersetzen für das Zielsystem} +\begin{lstlisting}[language=bash] +# Uebersetzen +$ arm-none-linux-gnueabi-gcc -static \ +-o cross_hello cross_hello.c +\end{lstlisting} +\begin{lstlisting}[language=bash] +# Executable ueberpruefen +$ file cross_hello +cross_hello: ELF 32-bit LSB executable, ARM, +version 1 (SYSV), dynamically +linked (uses shared libs), +for GNU/Linux 2.6.14, not stripped +\end{lstlisting} +\end{frame} + +\subsubsection{Testing auf dem Host} + +\begin{frame} +\frametitle{Qemu als Werkzeug zur Cross Entwicklung} +\begin{alertblock}{Was ist Qemu?} +Qemu ist eine sehr performante Emulations- und Virtualisierungsumgebung für alle +gängigen CPU Architekturen. +\end{alertblock} +\end{frame} + +\begin{frame}[containsverbatim] +\frametitle{Testen eines Executables mit der Qemu user emulation} +\begin{lstlisting}[language=bash] +$ ./cross_hello + : ./cross_hello: cannot execute binary file +$ qemu-arm ./cross_hello +Hello cross compiling world +\end{lstlisting} +\end{frame} +\input{tailpres} |
