566 lines
20 KiB
Raw Normal View History

2011-12-22 16:19:25 +01:00
Genode components overview
Norman Feske
Genode comes with a growing number of components apparently scattered across
various repositories. This document provides an overview of these components
and outlines the systematics behind them.
Categorization of components
Genode components usually fall into one of four categories, namely device
drivers, resource multiplexers, protocol stacks, and applications. Each
of them is briefly characterized as follows:
:Device drivers: translate hardware resources into device-independent
session interfaces. Naturally, a device driver is specific to a
particular hardware platform. The hardware resources are accessed
via core's IO_MEM, IO_PORT, and IRQ services. The functionality of
the driver is made available to other system components by announcing
one of Genode's device-independent session interfaces, which are
'pci_session', 'framebuffer_session', 'input_session', 'block_session',
'audio_out_session', 'log_session', 'nic_session', and 'timer_session'
(see 'os/include/' for the interface definitions). Those interfaces are
uniform across hardware platforms and kernel base platforms. Usually,
each device driver can accommodate only one client at a time.
:Resource multiplexers: provide mechanisms to multiplex device resources
to multiple clients. A typical resource multiplexer requests one
of Genode's device-independent session interface (usually connected
to a device driver) and, in turn, announces a service of the same kind.
However, in contrast to a device driver, a resource multiplexer is able
to serve more than one client at the same time.
:Protocol stacks: translate low-level interfaces to higher-level
interfaces (or sometimes vice versa). Typically, a protocol stack comes
in the form of a library, which uses a device-independent session
interface as back end and provides a high-level library interface as
front end. However, protocol stacks also exist in the form of
distinct components that implement translations between different
session interfaces.
:Applications: implement functionality using APIs as provided by
protocol stacks.
:Runtime environments: enable existing 3rd-party software to be executed
as a Genode sub systems.
Device drivers
Device drivers usually reside in the 'src/drivers' subdirectory of source-code
repositories. The most predominant repositories hosting device drivers are
2015-04-29 15:27:43 +02:00
'os', 'dde_ipxe', 'dde_linux'.
2011-12-22 16:19:25 +01:00
Platform devices
2013-11-27 19:06:04 +01:00
:'os/src/drivers/platform/': Platform drivers for various ARM boards.
2011-12-22 16:19:25 +01:00
Implements the PCI-session interface using the PCI controller as found on
x86 PC hardware. Using this interface, a client can probe for a particular
device and request information about physical device resources (using the
'pci_device' interface). These information are subsequently used to request
respective IO_MEM, IRQ, and IO_PORT sessions at core.
UART devices
2012-11-28 20:49:23 +01:00
The UART device drivers implement the UART-session interface.
2011-12-22 16:19:25 +01:00
Driver for the PL011 UART as found on many ARM-based platforms.
Driver for the i8250 UART as found on PC hardware.
2013-11-27 19:06:04 +01:00
Driver for the UART as found on OMAP4-based hardware.
Driver for the UART as found on Exynos-5-based hardware.
2011-12-22 16:19:25 +01:00
Framebuffer and input drivers
Framebuffer and input drivers implement the framebuffer-session interface and
input-session interfaces respectively.
Pseudo input driver without accessing any hardware. This component is useful
to resolve a dependency from an input session for scenarios where no user
input is required.
Driver for the virtual hardware provided by the user-mode version of the
Fiasco kernel.
Driver for the 'i8042' PS/2 controller as found in x86 PCs. It supports both
mouse (including ImPS/2, ExPS/2) and keyboard.
Driver for the PL050 PS/2 controller as found on ARM platforms such as
VersatilePB. The physical base address used by the driver is obtained at
compile time from a header file called 'pl050_defs.h'. The version of the
VersatilePB platform can be found at 'os/include/platform/vpb926/' and
is made available to the driver via the SPECS machinery of the Genode build
2013-07-02 11:43:53 +02:00
2011-12-22 16:19:25 +01:00
Driver using VESA mode setting on x86 PCs. For more information, please refer
to the README file in the driver directory.
Driver for the PL110/PL111 LCD display.
2013-11-27 19:06:04 +01:00
Driver for HDMI output on OMAP4 SoCs.
Driver for HDMI output on Exynos-5 SoCs.
Driver for LCD output on i.MX53 SoCs.
Driver for touchscreen input on i.MX53 quick start board.
Driver for the HDMI output of the Raspberry Pi.
2011-12-22 16:19:25 +01:00
Serves as both framebuffer and input driver on Linux using libSDL. This
driver is only usable on the Linux base platform.
2012-05-29 17:44:04 +02:00
USB driver that makes USB HID and USB storage devices available as input
sessions and block session respectively. For examples of using this driver,
refer to the run scripts at 'dde_linux/run/usb_hid' and
2011-12-22 16:19:25 +01:00
Timer drivers
2013-02-27 15:00:48 +01:00
The timer driver located at 'os/src/drivers/timer' implements the timer-session
interface. Technically, it is is both a device driver (accessing a timer
device) and a resource multiplexer (supporting multiple timer-session clients
at the same time). Depending on the base platform, the implementation uses of
different time sources. Time sources are either hardware timers, a time source
provided by the kernel, or a pseudo time source (busy):
2014-08-27 15:48:54 +02:00
:'nova': NOVA kernel semaphores as time source
2013-02-27 15:00:48 +01:00
:'codezero': busy time source
:'okl4_arm': busy time source
:'okl4_x86': PIT as time source
:'foc': IPC timeout as time source
:'fiasco': IPC timeout as time source
:'pistachio': IPC timeout as time source
:'linux': nanosleep as time source
2011-12-22 16:19:25 +01:00
Audio output drivers
All audio-output drivers implement the audio session interface defined at
Uses ALSA as back-end on the Linux base platform.
2012-11-28 20:49:23 +01:00
Sound drivers for the most common PC sound hardware, ported from the
Open Sound System project.
2011-12-22 16:19:25 +01:00
Block drivers
All block drivers implement the block-session interface defined at
Driver for ATAPI CD-ROM devices on x86 PCs.
2013-11-27 19:06:04 +01:00
2011-12-22 16:19:25 +01:00
Driver for SD-cards connected via the PL180 device as found on the PBX-A9
2012-08-22 20:13:12 +02:00
Driver for SD-cards connected to the SD-card controller of the OMAP4 SoC.
2013-11-27 19:06:04 +01:00
Driver for SD-cards and eMMC connected to Exynos-5-based platforms.
2015-04-29 15:27:43 +02:00
2011-12-22 16:19:25 +01:00
USB driver that makes USB storage devices available as block sessions.
For an example of using this driver, refer to the run script at
2015-04-29 15:27:43 +02:00
2011-12-22 16:19:25 +01:00
Driver for SATA disks on x86 PCs.
Network interface drivers
All network interface drivers implement the NIC session interface
defined at 'os/include/nic_session'.
Driver that uses a Linux tap device as back end. It is only useful on the
Linux base platform.
Native device driver for the LAN9118 network adaptor as featured on the
PBX-A9 platform.
Device drivers ported from the iPXE project. Supported devices are Intel
E1000 and pcnet32.
2012-08-22 20:13:12 +02:00
For the OMAP4 platform, the USB driver contains the networking driver.
2011-12-22 16:19:25 +01:00
2012-11-28 20:49:23 +01:00
General-purpose I/O drivers
Driver for accessing the GPIO pins of OMAP4 platforms.
2013-11-27 19:06:04 +01:00
Driver for accessing the GPIO pins of i.MX53 platforms.
2012-11-28 20:49:23 +01:00
2011-12-22 16:19:25 +01:00
Resource multiplexers
By convention, resource multiplexers are located at the 'src/server'
subdirectory of a source repository.
:Framebuffer and input: The framebuffer and input session interfaces can be
multiplexed using the Nitpicker GUI server, which allows multiple clients to
create and manage rectangular areas on screen. Nitpicker uses one input
session and one framebuffer session as back end and, in turn, provides
so-called nitpicker sessions to one or multiple clients. Each nitpicker
session contains a virtual framebuffer and a virtual input session. Nitpicker
(including a README file) is located at 'os/src/server/nitpicker'.
:Audio output: The audio mixer located at 'os/src/server/mixer' enables
multiple clients to use the audio-out interface. The mixing is done by simply
adding and clamping the signals of all present clients.
:Networking: The NIC bridge located at 'os/src/server/nic_bridge' multiplexes
one NIC session to multiple virtual NIC sessions using a proxy-ARP
implementation. Each client has to obtain a dedicated IP address visible to
the physical network. DHCP requests originating from the virtual NIC sessions
are delegated to the physical network.
:Block: The block-device partition server at 'os/src/server/part_blk' reads
the partition table of a block session and exports each partition found as
separate block session. For using this server, please refer to the run
script at 'os/run/part_blk'.
2012-08-22 20:13:12 +02:00
:File system: The FFAT file-system service allows multiple clients to
concurrently access the same FFAT-formatted block device. It is located
at 'libports/src/server/ffat_fs'.
2013-02-27 15:00:48 +01:00
:Terminal: The terminal_mux service located at gems/src/server/terminal_mux
is able to provide multiple terminal sessions over one terminal-client
session. The user can switch between the different sessions using a keyboard
shortcut, which brings up an ncurses-based menu.
2011-12-22 16:19:25 +01:00
Protocol stacks
Protocol stacks come either in the form of separate components that translate
one session interface to another, or in the form of libraries.
Separate components:
Translates a nitpicker session to a pair of framebuffer and input sessions.
Each 'nit_fb' instance is visible as a rectangular area on screen presenting
a virtual frame buffer. The area is statically positioned. For more
information, please refer to 'os/src/server/nit_fb/README'.
2014-08-27 15:48:54 +02:00
Window manager that implements the nitpicker session interface but manages
each client view as a separate window. The window decorations are provided
by a so-called decorator (e.g., 'gems/src/app/decorator'). The behaviour
is defined by a so-called window layouter such as the floating window
layouter located at 'gems/src/app/floating_window_layouter/'.
2011-12-22 16:19:25 +01:00
Implements the same translation as 'nit_fb' but by presenting an interactive
window rather than a statically positioned screen area.
Provides each file contained in a tar file obtained via Genode's ROM session
as separate ROM session.
Provides files stored in a file system as individual ROM sessions. Please
refer to 'os/src/server/fs_rom' for more information.
2011-12-22 16:19:25 +01:00
Provides each file of an ISO9660 file system accessed via a block session as
separate ROM session.
2012-05-29 17:44:04 +02:00
2012-08-22 20:13:12 +02:00
A file-system implementation that keeps all data in memory.
A read-only file-system implementation that reads data from a TAR archive,
which, in turn, is provided by a ROM service.
2012-05-29 17:44:04 +02:00
A file-system server that contains various file-systems ported from the
NetBSD kernel.
2013-11-27 19:06:04 +01:00
A file system server that makes the file system of a Linux base platform
available to Genode.
A pseudo file system that can be used as a front end to core's TRACE
2011-12-22 16:19:25 +01:00
Provides the content of a ROM file as a block session, similar to the
loop-mount mechanism on Linux
Provides the content of a RAM dataspace as a block session. In contrast
to 'rom_blk', this server provides a writeable block device.
2012-05-29 17:44:04 +02:00
Adapter for forwarding LOG messages to a terminal session.
Adapter for forwarding terminal output to a LOG session.
Adapter that writes LOG messages to files on a file system.
2011-12-22 16:19:25 +01:00
Provides a LOG session, printing log output on screen via a nitpicker
2013-11-27 19:06:04 +01:00
Forwards terminal output to a LOG session.
Provides terminal sessions that target files on a file system.
2012-05-29 17:44:04 +02:00
Provides a terminal session via a graphical terminal using a framebuffer
session and an input session.
Provides one or multiple terminal sessions over TCP connections.
For further information, refer to 'gems/src/server/tcp_terminal/README'.
2012-08-22 20:13:12 +02:00
The terminal crosslink service allows to terminal clients to talk to each
2012-05-29 17:44:04 +02:00
A block service that fetches a virtual block device over the network from
a HTTP server.
2013-02-27 15:00:48 +01:00
A ROM service that translates the 'File_system' session interface to the
'ROM' session' interface. Each request for a ROM file is handled by looking
up an equally named file on the file system.
A simple ROM service that provides ROM modules that change in time according
to a configured timeline.
A service that implements both the report session interface and the ROM
session interface. It reflects incoming reports as ROM modules.
2014-08-27 15:48:54 +02:00
OpenVPN enables access to remote network resources through a secure tunnel
by providing an encrypted connection to a remote host. It is plugged between
NIC server (such as a network driver) and NIC client.
2014-11-27 19:42:24 +01:00
A component that merges input events from multiple sources into a single
A wrapper for nitpicker's session interface that applies alpha-blending to
the of views a nitpicker client.
2011-12-22 16:19:25 +01:00
2012-05-29 17:44:04 +02:00
C runtime ported from FreeBSD.
2011-12-22 16:19:25 +01:00
Redirects the standard output of the libc to Genode's LOG session interface.
Translates the BSD socket API to a NIC session using the lwIP stack.
2013-11-27 19:06:04 +01:00
Translates the BSD socket API to a NIC session using the Linux TCP/IP stack.
Accesses files on a block device that contains a FAT32 file system.
Accesses files on a block device that contains an exFAT file system.
Accesses files on a block device that contains an ext2 file system.
2012-05-29 17:44:04 +02:00
Allows libc-using programs to access the Genode file-system infrastructure
using the POSIX file API.
2013-11-27 19:06:04 +01:00
Accesses a block session as a virtual block device.
2012-05-29 17:44:04 +02:00
Connects the standard input and output from/to Genode's terminal session
2012-11-28 20:49:23 +01:00
Standard C++ library
2015-04-29 15:27:43 +02:00
2011-12-22 16:19:25 +01:00
Translates the OpenGL API to a framebuffer session using the MESA OpenGL
2015-04-29 15:27:43 +02:00
2011-12-22 16:19:25 +01:00
2012-05-29 17:44:04 +02:00
Subset of the POSIX thread and semaphore API.
Runtime of the Python scripting language.
PDF rendering engine.
2011-12-22 16:19:25 +01:00
Translates the libSDL API to framebuffer and input sessions.
2012-05-29 17:44:04 +02:00
Library for implementing pseudo-graphical applications (i.e., VIM) that
run on a text terminal.
A library for video decoding, conversion, and streaming.
Runtime for the Lua scripting language.
Qt5 framework, using nitpicker session and NIC session as back end.
2014-08-27 15:48:54 +02:00
A VFS plugin that makes a jitter-based random-number generator available
as a file within the process-local VFS.
2011-12-22 16:19:25 +01:00
Applications are Genode components that use other component's services but
usually do not provide services. They are typically located in the 'src/app/'
subdirectory of a repository. Most applications come with README files
located in their respective directory.
2014-08-27 15:48:54 +02:00
Nitpicker client application that sets a composition of PNG images as
desktop background.
2011-12-22 16:19:25 +01:00
Graphical application for interactively starting and killing subsystems.
2014-11-27 19:42:24 +01:00
:'gems/app/launcher': Graphical launcher of Genode subsystems.
:'os/app/cli_monitor': Command-line-based launcher of Genode subsystems.
2011-12-22 16:19:25 +01:00
Graphical hypertext browser used for Genode's default demonstration scenario.
Example program for using OpenGL via the Gallium3D graphics stack.
2015-03-16 15:37:47 +01:00
Arora is a Qt-based web browser using the Webkit engine.
2011-12-22 16:19:25 +01:00
Application that allows the debugging of a process via GDB over a remote
2015-03-16 15:37:47 +01:00
Graphical application starter implemented using Qt.
2011-12-22 16:19:25 +01:00
2015-03-16 15:37:47 +01:00
Several example applications that come with Qt.
2011-12-22 16:19:25 +01:00
Is a proxy application that enables the integration of a virtual X server
into a Nitpicker session on the Linux base platform.
2012-05-29 17:44:04 +02:00
Ports of popular commandline-based Unix software such as VIM, bash,
coreutils, binutils, gcc, findutils, and netcat. The programs are supposed
to be executed within the Noux runtime environment.
2012-08-22 20:13:12 +02:00
Lighttpd is a fast and feature-rich web server. The port of lighttpd uses
a file-system session to access the website content and the web-server
2011-12-22 16:19:25 +01:00
Runtime environments
:'ports/src/noux': Noux is an experimental implementation of a UNIX-like API
that enables the use of unmodified command-line based GNU software. For using
noux, refer to the run script 'ports/run/'.
:'ports-foc/src/l4linux': L4Linux is a paravirtualized Linux kernel that
enables the use of Linux-based OSes as subsystems on the Fiasco.OC kernel.
For using L4Linux, refer to the run script 'ports-foc/run/'.
2012-05-29 17:44:04 +02:00
:'ports-foc/src/l4android': L4Android is a variant of L4Linux that is able
to execute the Android software stack on top of the Fiasco.OC kernel.
2014-11-27 19:42:24 +01:00
:'ports/src/app/seoul': Seoul is a virtual-machine monitor developed for
2012-05-29 17:44:04 +02:00
the use with the NOVA platform. It virtualizes 32bit x86 PC hardware
2013-02-27 15:00:48 +01:00
including various peripherals.
2012-05-29 17:44:04 +02:00
:'os/src/server/loader': A service that allows the creation and destruction
of Genode subsystems via a session interface. For further information,
refer to 'os/src/server/loader/README'.
2011-12-22 16:19:25 +01:00
2013-11-27 19:06:04 +01:00
:'ports/src/app/dosbox': A port of DosBox for executing DOS software.
2014-11-27 19:42:24 +01:00
:'ports/src/virtualbox': VirtualBox running on top of the NOVA hypervisor.