summaryrefslogtreecommitdiff
path: root/application-devel/cross-devel/pres_cross-devel_de-userspace.tex
blob: 6ab48d235e93840636cde7974ea7cf59a7016e4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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}