[FE training-materials-updates] Remove the mdev lab

Michael Opdenacker michael.opdenacker at free-electrons.com
Fri Jan 25 06:39:50 CET 2013

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

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


commit a51aa4854929f7be9d29ca84edc0f2bc5612a5e1
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date:   Fri Jan 25 06:23:55 2013 +0100

    Remove the mdev lab
    We don't show the corresponding slides any more
    Signed-off-by: Michael Opdenacker <michael.opdenacker at free-electrons.com>


 Makefile                         |    1 -
 labs/sysdev-mdev/sysdev-mdev.tex |   69 --------------------------------------
 2 files changed, 70 deletions(-)

diff --git a/Makefile b/Makefile
index 31cbb4a..f9ccc25 100644
--- a/Makefile
+++ b/Makefile
@@ -219,7 +219,6 @@ SYSDEV_LABS   = setup \
 		sysdev-application-development \
 		sysdev-application-debugging \
 		sysdev-real-time \
-		sysdev-mdev \
 KERNEL_LABS   = setup \
diff --git a/labs/sysdev-mdev/sysdev-mdev.tex b/labs/sysdev-mdev/sysdev-mdev.tex
deleted file mode 100644
index 14d7585..0000000
--- a/labs/sysdev-mdev/sysdev-mdev.tex
+++ /dev/null
@@ -1,69 +0,0 @@
-\subchapter{Using mdev}{Objective: Practicing with BusyBox mdev}
-After this lab, you will be able to
-\item Use \code{mdev} to populate the \code{/dev} directory with
-  device files corresponding to devices present on the system.
-\item Use \code{mdev} to automount external disk partitions.
-\section{Root filesystem}
-We will reuse the root filesystem from the {\em Tiny system} lab.
-\section{Kernel settings}
-Reuse the Linux kernel from the {\em Tiny system} lab. If you prefer
-to start from fresh sources, use the configuration supplied in the
-data directory.
-Now add or modify the below settings to your kernel:
-\item Enable loadable module support: \code{CONFIG_MODULES=y}
-\item Module unloading: \code{CONFIG_MODULE_UNLOAD=y}
-\item Support for Host-side USB: \code{CONFIG_USB=m}. Make sure this is set as a module!
-\item OHCI HCD support: \code{CONFIG_USB_OHCI_HCD=m}
-\item USB Mass Storage support: \code{CONFIG_USB_STORAGE=m}
-\item And any other feature that could be needed on your hardware to access your hot-pluggable device.
-Compile your kernel. Install the modules in your root filesystem using:
-make INSTALL_MOD_PATH=<root-dir-path> modules_install
-\section{Booting the system}
-Boot your system through NFS with the given root filesystem.
-To make sure that module loading works, try to load the
-\code{usb-storage} module:
-modprobe usb-storage
-\section{First mdev tests}
-We are first going to use \code{mdev} to populate the \code{/dev}
-directory with all devices present at boot time.
-Modify the \code{/etc/init.d/rcS} script to mount a \code{tmpfs}
-filesystem on \code{/dev/}, and run \code{mdev -s} to populate this
-directory with all minimum device files. Very nice, isn't it?
-\section{Using mdev as a hotplug agent}
-Using the guidelines in the lectures, and BusyBox documentation, use
-\code{mdev} to automatically create all the \code{/dev/sd[a-z][1-9]*}
-device files when a USB disk is inserted, corresponding to the disk
-itself and its partitions.
-Also make sure these device files are also removed automatically when
-the flash drive is removed.
-\section{Automatic mounting}
-Refine your configuration to also mount each partition automatically
-when a USB disk is inserted, and to do the opposite after the disk is
-removed. You could use \code{/media/<devname>} as the mount point for
-each partition.

More information about the training-materials-updates mailing list