From dd7ffd32de0818d29fdc1a35386708da3746f5c8 Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Mon, 21 Feb 2011 23:50:21 +0100 Subject: vorlesung1 ready :) make vorlesung to build presentation and handout Signed-off-by: Manuel Traut --- .../what-is-linux/handout_what-is-linux_de.tex | 21 ++++++++------------- .../what-is-linux/pres_what-is-linux_de.tex | 2 +- 2 files changed, 9 insertions(+), 14 deletions(-) (limited to 'linux-basics') diff --git a/linux-basics/what-is-linux/handout_what-is-linux_de.tex b/linux-basics/what-is-linux/handout_what-is-linux_de.tex index a6c3a8e..2ae9b03 100644 --- a/linux-basics/what-is-linux/handout_what-is-linux_de.tex +++ b/linux-basics/what-is-linux/handout_what-is-linux_de.tex @@ -1,13 +1,8 @@ -\documentclass{lxarticle} -\usepackage{german} -\usepackage[utf8]{inputenc} -\usepackage{lxheaders} +\input{confighandout} -\begin{document} +\subsection{Was ist Linux?} -\section*{Was ist Linux?} - -\subsection*{Geschichtlicher Hintergrund} +\subsubsection{Geschichtlicher Hintergrund} Frühe elektronische Rechner, wie der in Abbildung \ref{img:eniac} gezeigte ENIAC, waren nicht frei programmierbar. Sie wurden für einen bestimmten @@ -112,7 +107,7 @@ Der Begriff ``Linux'' bezeichnet also streng genommen nur den Kernel. Allerdings hat es sich mittlerweile im Sprachgebrauch eingebürgert, das komplette System aus Programmen und Kernel als ``Linux'' zu bezeichnen. -\subsection*{Ein Betriebssystem für Großrechner} +\subsubsection{Ein Betriebssystem für Großrechner} Unix war von Anfang an ein Betriebssystem, das für den Betrieb auf Großrechnern ausgelegt ist. Das verwundert nicht weiter, den zur Zeit @@ -133,7 +128,7 @@ selben Source-Code kann ein Kernel für einen Server mit 1024 CPU-Kernen oder ein Kernel für ein kleines Embedded-System konfiguriert und erzeugt werden. -\subsection*{Multiuser-Betrieb} +\subsubsection{Multiuser-Betrieb} Eine weitere wichtige Eigenschaft von Linux, die sich aus der Großrechner-Tradition ergibt, ist die Multitasking- und Multiuser-Fähigkeit. @@ -159,7 +154,7 @@ von Linux hier ebenfalls von Vorteil. Proprietäre Betriebssysteme haben schon aus Lizenzgründen ein Problem damit, wenn mehrere Anwender einen Rechner nutzen können. -\subsection*{Login} +\subsubsection{Login} Beim Hochfahren eines Linux-Systems werden üblicherweise alle für den Systemstart vorgesehenen Programme automatisch gestartet, ohne dass dazu @@ -207,7 +202,7 @@ und nicht etwa auf dem Rechner, an dem Sie gerade sitzen. \newpage -\subsection*{Kontrollfragen} +\subsubsection{Kontrollfragen} \begin{enumerate} \item Wie alt ist das Unix-Konzept mittlerweile? @@ -217,4 +212,4 @@ und nicht etwa auf dem Rechner, an dem Sie gerade sitzen. \item Was passiert beim Login-Vorgang? \end{enumerate} -\end{document} +\input{tailhandout} diff --git a/linux-basics/what-is-linux/pres_what-is-linux_de.tex b/linux-basics/what-is-linux/pres_what-is-linux_de.tex index 4283349..873d807 100644 --- a/linux-basics/what-is-linux/pres_what-is-linux_de.tex +++ b/linux-basics/what-is-linux/pres_what-is-linux_de.tex @@ -93,7 +93,7 @@ komplette Liste: http://directory.fsf.org/GNU/ \begin{itemize} \item wenig Bandbreite notwendig \item scriptbar -\item resourcenschonend +\item ressourcenschonend \end{itemize} \end{description} \end{frame} -- cgit v1.2.3 From 84882eb4d1cd6b53bd3ebff96136da4461955cc8 Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Fri, 8 Apr 2011 14:29:20 +0200 Subject: handout_filesystems added (far from complete) Signed-off-by: Manuel Traut --- linux-basics/filesystems/handout_filesystems_en.tex | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 linux-basics/filesystems/handout_filesystems_en.tex (limited to 'linux-basics') diff --git a/linux-basics/filesystems/handout_filesystems_en.tex b/linux-basics/filesystems/handout_filesystems_en.tex new file mode 100644 index 0000000..8446cb2 --- /dev/null +++ b/linux-basics/filesystems/handout_filesystems_en.tex @@ -0,0 +1,16 @@ +\input{confighandout} + +\subsection{Filesystems} + +\subsubsection{block, flash, network} + +Different kinds of memory, need different filesystems. The Linux kernel basicly +distinguishes between these types: + +\begin{description} +\item[Block Devices] Hard-disk Drives, Compact-Flash Cards, USB Sticks, \dots +\item[Flash Devices] NAND, NOR, oneNAND, \dots +\item[Network Shares] SMB, CIFS, NFS, \dots +\end{description} + +\input{tailhandout} -- cgit v1.2.3 From fe4b1b187ab159ca052707fb89202c02a0e432bf Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Mon, 25 Apr 2011 21:08:33 +0200 Subject: vorl5: RFS generation added Signed-off-by: Manuel Traut --- Makefile | 8 +-- handout.tex | 2 + handout5.tex | 4 ++ index.txt | 32 +++++++++++ linux-basics/fromscratch_vs_debian/Makefile | 9 ++++ .../pres_fromscatch_vs_debian_en.tex | 63 ++++++++++++++++++++++ vorl.tex | 4 ++ vorl5.tex | 8 +++ 8 files changed, 126 insertions(+), 4 deletions(-) create mode 100644 handout5.tex create mode 100644 linux-basics/fromscratch_vs_debian/Makefile create mode 100644 linux-basics/fromscratch_vs_debian/pres_fromscatch_vs_debian_en.tex create mode 100644 vorl5.tex (limited to 'linux-basics') diff --git a/Makefile b/Makefile index 7608a6b..dd47277 100644 --- a/Makefile +++ b/Makefile @@ -24,8 +24,8 @@ vorlesung:: touch configpres.tex mv tailpres.tex _tailpres.tex touch tailpres.tex - pdflatex vorl4.tex - pdflatex vorl4.tex + pdflatex vorl5.tex + pdflatex vorl5.tex pdflatex vorl.tex pdflatex vorl.tex rm configpres.tex tailpres.tex @@ -35,8 +35,8 @@ vorlesung:: touch confighandout.tex mv tailhandout.tex _tailhandout.tex touch tailhandout.tex - TEXINPUTS=`pwd`/wise:.:$(TEXINPUTS) pdflatex handout4.tex - TEXINPUTS=`pwd`/wise:.:$(TEXINPUTS) pdflatex handout4.tex + TEXINPUTS=`pwd`/wise:.:$(TEXINPUTS) pdflatex handout5.tex + TEXINPUTS=`pwd`/wise:.:$(TEXINPUTS) pdflatex handout5.tex TEXINPUTS=`pwd`/wise:.:$(TEXINPUTS) pdflatex handout.tex TEXINPUTS=`pwd`/wise:.:$(TEXINPUTS) pdflatex handout.tex rm confighandout.tex tailhandout.tex diff --git a/handout.tex b/handout.tex index abb85de..6df688f 100644 --- a/handout.tex +++ b/handout.tex @@ -2,6 +2,7 @@ \section{Grundlagen} \input{./linux-basics/what-is-linux/handout_what-is-linux_de.tex} \input{./linux-basics/boot-process/handout_boot-process_de.tex} +\input{./linux-basics/filesystem-structure/handout_file-system-structure_de.tex} \section{Kernel-Grundlagen} \input{./kernel-devel/kernel-basics/handout_kernel-basics_de.tex} \input{./kernel-devel/kernel-best-practices/handout_kernel-best-practices_en.tex} @@ -11,3 +12,4 @@ \input{./flash-memory/mtd/handout_mtd_de.tex} \input{./flash-memory/ubi/handout_ubi_de.tex} \input{tailmasterhandout} +\input{configmasterhandout} diff --git a/handout5.tex b/handout5.tex new file mode 100644 index 0000000..b363516 --- /dev/null +++ b/handout5.tex @@ -0,0 +1,4 @@ +\input{configmasterhandout} +\section{Linux Basics} +\input{./linux-basics/filesystem-structure/handout_file-system-structure_de.tex} +\input{tailmasterhandout} diff --git a/index.txt b/index.txt index aaaa5a4..9f9ad3e 100644 --- a/index.txt +++ b/index.txt @@ -266,6 +266,38 @@ http://www.winters-hotel-berlin-city-messe.de/ RV ab Di, 10.05. 21:04, Berlin an Mi, 11.05. 07:20 (2 x umsteigen) 234 EUR Berlin ab So, 15.05. 12:42, RV an So, 15.05. 21:07 (3 x umsteigen) 359 EUR +Hinfahrt Bahnhof/Haltestelle Datum Uhrzeit Produkte Reservierungswunsch + Ravensburg +Ulm Hbf Di, 10.05.2011 21:04 +21:58 IRE 3363 Reservierung nicht möglich + Ulm Hbf +Mannheim Hbf Di, 10.05.2011 22:04 +23:42 ICE 990 5 Plätze in der 2. Klasse, Großraum mit Tisch, Ruhebereich + Mannheim Hbf +Berlin Hbf (tief) Di, 10.05.2011 23:59 +07:20 CNL 1259 Reservierungspflichtiger Zug, 5 Plätze in der 2. Klasse +Rückfahrt Bahnhof/Haltestelle Datum Uhrzeit Produkte Reservierungswunsch + Berlin Hbf (tief) +Nürnberg Hbf So, 15.05.2011 12:42 +17:24 ICE 109 5 Plätze in der 2. Klasse, Großraum mit Tisch, Ruhebereich + Nürnberg Hbf +Aalen So, 15.05.2011 17:39 +19:01 IC 2062 5 Plätze in der 2. Klasse, Großraum mit Tisch + Aalen +Ulm Hbf So, 15.05.2011 19:07 +19:54 IRE 3235 Reservierung nicht möglich + Ulm Hbf +Ravensburg So, 15.05.2011 20:12 +21:07 IRE 4215 Reservierung nicht möglich +Ihr Ticket HIN- UND RÜCKFAHRT, 5 Erw., 2. Klasse, Hin: Sitzplatz, 5 Personen im Ruhesessel Großraumwagen, Ravensburg - Berlin, Berlin - Ravensburg +Sparpreis +Zugbindung. Umtausch/Erstattung 15 EUR; ab 1. Geltungstag ausgeschlossen +Inkl. Nachtzugaufpreis, reservierungspflichtiger Zug enthalten (Preis inkl. Res.), Anschlussreservierung kostenpflichtig 593,00 EUR +Reservierung Hinfahrt: +Rückfahrt: 12,50 EUR +12,50 EUR +Gesamtpreis 618,00 EUR + Damit läge die Zugfahrt bei ca. 118 EUR / Person + 60 EUR übernachtung (im Doppelzimmer) + 16 EUR Eintritt Linuxtag + ca. 15 EUR U-Bahn Tickets (Gruppentageskarte 5 Pers. 15 EUR * 5 Tage) diff --git a/linux-basics/fromscratch_vs_debian/Makefile b/linux-basics/fromscratch_vs_debian/Makefile new file mode 100644 index 0000000..d641258 --- /dev/null +++ b/linux-basics/fromscratch_vs_debian/Makefile @@ -0,0 +1,9 @@ +all: + for pdf in `ls -1 *.tex` ; do \ + TEXINPUTS=`pwd`/../..:.:..:$(TEXINPUTS) pdflatex $$pdf; \ + TEXINPUTS=`pwd`/../..:.:..:$(TEXINPUTS) pdflatex $$pdf; \ + done + +clean: + rm -f *.aux *.log *.pdf *.log *.snm *.toc *.vrb *.nav *.out + diff --git a/linux-basics/fromscratch_vs_debian/pres_fromscatch_vs_debian_en.tex b/linux-basics/fromscratch_vs_debian/pres_fromscatch_vs_debian_en.tex new file mode 100644 index 0000000..9ca3b9d --- /dev/null +++ b/linux-basics/fromscratch_vs_debian/pres_fromscatch_vs_debian_en.tex @@ -0,0 +1,63 @@ +\input{configpres} + +\title{Rootfilesystem from scratch vs. Debian based system} +\maketitle + +\subsection{Rootfilesystem from scratch} + +\subsubsection{Overview} +\begin{frame} +\frametitle{RFS from scratch} +Advantage: +\begin{itemize} +\item smallest footprint +\end{itemize} +Disadvantages: +\begin{itemize} +\item manual dependency tracking +\item hard to maintain (track bugs for each source) +\end{itemize} +Okay for systems that have less than 16 MB flash. +\end{frame} + +\begin{frame} +\frametitle{RFS from scratch} +HOWTO: see app-devel/cross-devel section +\end{frame} + + +\subsection{Debian based system} + +\subsubsection{Overview} +\begin{frame} +\frametitle{Debian based system} +Advantages +\begin{itemize} +\item Bugtracking is made by Debian +\item Dependencytracking is made by Debian +\item easy to add new packages +\end{itemize} +Disadvantages +\begin{itemize} +\item standard system is about 100 MB +\end{itemize} +\end{frame} + +\subsubsection{HOWTO} +\begin{frame}[containsverbatim] +\frametitle{cross debootstrap} +\begin{lstlisting} +sudo rm -rf /tmp/debian-rfs +sudo /usr/sbin/debootstrap --verbose --arch armel --foreign squeeze \ + /tmp/debian-rfs http://debian.tu-bs.de/debian +sudo rm -rf var/cache/* +sudo rm -rf debootstrap +sudo rm -rf usr/share/doc/* +sudo rm -rf usr/share/man/* +\end{lstlisting} +\end{frame} + + + + +\input{tailpres} diff --git a/vorl.tex b/vorl.tex index afff0fb..58782cb 100644 --- a/vorl.tex +++ b/vorl.tex @@ -3,6 +3,9 @@ \input{./linux-basics/what-is-linux/pres_what-is-linux_de.tex} \input{./linux-basics/boot-process/pres_boot-process_de.tex} \input{./linux-basics/filesystems/pres_filesystems_en.tex} +\input{./linux-basics/filesystem-structure/pres_file-system-structure_de.tex} +\input{./linux-basics/udev-basics/pres_udev_en.tex} +\input{./linux-basics/fromscratch_vs_debian/pres_fromscatch_vs_debian_en.tex} \input{./flash-memory/section} \input{./flash-memory/mtd/pres_mtd_en.tex} \input{./flash-memory/ubi/pres_ubi_en.tex} @@ -13,4 +16,5 @@ \input{./kernel-devel/kernel-basics/pres_kernel-basics_de.tex} \input{./application-devel/section} \input{./application-devel/devel-environment/pres_devel-environment_de_short.tex} +\input{./application-devel/cross-devel/pres_cross-devel_de.tex} \input{tailmasterpres} diff --git a/vorl5.tex b/vorl5.tex new file mode 100644 index 0000000..c9c908b --- /dev/null +++ b/vorl5.tex @@ -0,0 +1,8 @@ +\input{configmasterpres} +\input{./linux-basics/section} +\input{./linux-basics/filesystem-structure/pres_file-system-structure_de.tex} +\input{./linux-basics/udev-basics/pres_udev_en.tex} +\input{./linux-basics/fromscratch_vs_debian/pres_fromscatch_vs_debian_en.tex} +\input{./application-devel/section} +\input{./application-devel/cross-devel/pres_cross-devel_de.tex} +\input{tailmasterpres} -- cgit v1.2.3 From 60ead65c41afba7e6aa4bbcf507a1d52f7a8fe9f Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Fri, 29 Apr 2011 08:44:07 +0200 Subject: fix typo Signed-off-by: Manuel Traut --- linux-basics/fromscratch_vs_debian/pres_fromscatch_vs_debian_en.tex | 1 + 1 file changed, 1 insertion(+) (limited to 'linux-basics') diff --git a/linux-basics/fromscratch_vs_debian/pres_fromscatch_vs_debian_en.tex b/linux-basics/fromscratch_vs_debian/pres_fromscatch_vs_debian_en.tex index 9ca3b9d..7a5da46 100644 --- a/linux-basics/fromscratch_vs_debian/pres_fromscatch_vs_debian_en.tex +++ b/linux-basics/fromscratch_vs_debian/pres_fromscatch_vs_debian_en.tex @@ -50,6 +50,7 @@ Disadvantages sudo rm -rf /tmp/debian-rfs sudo /usr/sbin/debootstrap --verbose --arch armel --foreign squeeze \ /tmp/debian-rfs http://debian.tu-bs.de/debian +cd tmp-rfs sudo rm -rf var/cache/* sudo rm -rf debootstrap sudo rm -rf usr/share/doc/* -- cgit v1.2.3 From 22076fed840e7573b8076e57e0cda3591a7f8a3d Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Fri, 29 Apr 2011 15:20:52 +0200 Subject: updated debootstrap presentation Signed-off-by: Manuel Traut --- beagle/deb.sh | 18 ------------ linux-basics/fromscratch_vs_debian/deb.sh | 33 ++++++++++++++++++++++ .../pres_fromscatch_vs_debian_en.tex | 11 +------- 3 files changed, 34 insertions(+), 28 deletions(-) delete mode 100755 beagle/deb.sh create mode 100755 linux-basics/fromscratch_vs_debian/deb.sh (limited to 'linux-basics') diff --git a/beagle/deb.sh b/beagle/deb.sh deleted file mode 100755 index 61db1dc..0000000 --- a/beagle/deb.sh +++ /dev/null @@ -1,18 +0,0 @@ -sudo rm -rf debian-rfs - -sudo /usr/sbin/debootstrap --verbose \ - --arch armel \ - --foreign \ - squeeze \ - debian-rfs \ - http://debian.tu-bs.de/debian - -cd debian-rfs -sudo rm -rf var/cache/* -sudo rm -rf debootstrap -sudo rm -rf usr/share/doc/* -sudo rm -rf usr/share/man/* -sudo rm -rf usr/share/locale/* -sudo rm -rf usr/share/zoneinfo/* -sudo rm -rf usr/lib/gconv/* -sudo rm -f var/lib/apt/lists/debootstrap.invalid_dists_squeeze_main_binary-armel_Packages diff --git a/linux-basics/fromscratch_vs_debian/deb.sh b/linux-basics/fromscratch_vs_debian/deb.sh new file mode 100755 index 0000000..2352c7f --- /dev/null +++ b/linux-basics/fromscratch_vs_debian/deb.sh @@ -0,0 +1,33 @@ +#fist stage, on host (pc) +sudo rm -rf debian-rfs + +sudo /usr/sbin/debootstrap --verbose \ + --arch armel \ + --include=mtd-utils \ + --foreign \ + squeeze \ + debian-rfs \ + http://debian.tu-bs.de/debian + +cd debian-rfs/ dev +mknod -m 622 console c 5 1 +mknod -m 622 tty0 c 4 0 +mknod -m 666 null c 1 3 +mknod -m 666 zero c 1 5 +mknod -m 666 ptmx c 5 2 +mknod -m 666 tty c 5 0 +mknod -m 444 random c 1 8 +mknod -m 444 urandom c 1 9 +cd - + +sudo mkfs.ext2 /dev/sdb2 +sudo mount /dev/sdb2 /mnt/usb +sudo cp -a debian-rfs/* /mnt/usb/ + +exit 0 + +#second stage, on target (beagleboard) +mkdir /proc /sys +mount -t proc none /proc +mount -t sysfs none /sys +/debootstrap/debootstrap --second-stage diff --git a/linux-basics/fromscratch_vs_debian/pres_fromscatch_vs_debian_en.tex b/linux-basics/fromscratch_vs_debian/pres_fromscatch_vs_debian_en.tex index 7a5da46..6500966 100644 --- a/linux-basics/fromscratch_vs_debian/pres_fromscatch_vs_debian_en.tex +++ b/linux-basics/fromscratch_vs_debian/pres_fromscatch_vs_debian_en.tex @@ -46,16 +46,7 @@ Disadvantages \subsubsection{HOWTO} \begin{frame}[containsverbatim] \frametitle{cross debootstrap} -\begin{lstlisting} -sudo rm -rf /tmp/debian-rfs -sudo /usr/sbin/debootstrap --verbose --arch armel --foreign squeeze \ - /tmp/debian-rfs http://debian.tu-bs.de/debian -cd tmp-rfs -sudo rm -rf var/cache/* -sudo rm -rf debootstrap -sudo rm -rf usr/share/doc/* -sudo rm -rf usr/share/man/* -\end{lstlisting} +\lstinputlisting[language=sh]{./linux-basics/fromscratch_vs_debian/deb.sh} \end{frame} -- cgit v1.2.3 From 437a656acc7aa4276b27fef8582c13b29e50ac52 Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Fri, 29 Apr 2011 15:41:22 +0200 Subject: fix debootstrap script (add console, passwd) Signed-off-by: Manuel Traut --- beagle/uboot.txt | 7 +++++-- linux-basics/fromscratch_vs_debian/deb.sh | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'linux-basics') diff --git a/beagle/uboot.txt b/beagle/uboot.txt index 0c4d0b3..5ad36bf 100644 --- a/beagle/uboot.txt +++ b/beagle/uboot.txt @@ -1,5 +1,8 @@ setenv loadaddr 0x80200000 mmc init -fatload mmc1 1 ${loadaddr} uimage.old -setenv bootargs console=ttyO2,115200n8 root=/dev/mmcblk0p2 init=/bin/bash +fatload mmc1 1 ${loadaddr} uimage + +setenv bootargs console=ttyO2,115200n8 root=/dev/mmcblk0p2 rootwait +init=/bin/bash + bootm ${loadaddr} diff --git a/linux-basics/fromscratch_vs_debian/deb.sh b/linux-basics/fromscratch_vs_debian/deb.sh index 2352c7f..3a3457f 100755 --- a/linux-basics/fromscratch_vs_debian/deb.sh +++ b/linux-basics/fromscratch_vs_debian/deb.sh @@ -31,3 +31,6 @@ mkdir /proc /sys mount -t proc none /proc mount -t sysfs none /sys /debootstrap/debootstrap --second-stage +passwd +echo "T0:23:respawn:/sbin/getty -L ttyO2 115200 vt100" >> /etc/inittab +mount -o remount,ro /dev/mmcblk0p2 / -- cgit v1.2.3