Microkernel Construction Exercises


System Requirements
Take some recent Linux system to build the kernel and applications. To minimize the amount for the necessary test hardware/software environment we use Qemu as a system emulator. This enables us to test our kernel without rebooting the currently running operating system or having another test machine available.

Skills
You should be familiar with a recent Linux system, navigating through the file system using a shell, editor, make etc.

Build
The following steps will create the kernel binary and additional user-level programs.
  1. Download and extract the source code to a source directory.
  2. Create and switch to the build directory.
  3. Link/Copy the Makefile from the source directory to the build directory.
  4. Change the value of the variale femto_SOURCE_DIR to the path of your source directory.
  5. Build the kernel and applications using make.
    The automatic build process creates the kernel: kernel/femto and some tiny applications user/dump ...,
    A bootable CDROM image femto.iso contains a bootloader that starts the kernel.
Run
Boot end execute the kernel with QEMU using the following command: qemu -boot d -cdrom femto.iso -serial stdio -monitor stdio

Source code for Excercise 1
Source code for Excercise 2 (with solutions for excercise 1)
Source code for Excercise 3 (with solutions for excercise 2)
Solutions for excercise 3

webmaster@os, home
24. Mar 2011
· Copyright © 2001-2022 Operating Systems Group, TU Dresden | Impressum ·