DMASSAGE(1)

NAME
dmassage - dmesg parser

SYNOPSIS

dmassage [-d dmesg] -f kernel
dmassage [-d dmesg] -s kernelconfig
dmassage [-d dmesg] -t

DESCRIPTION
dmassage parses your system's dmesg to learn which devices are succesfully detected by the kernel. This information can be used for three purposes: to make the kernel boot faster, to help build a smaller kernel or to show all the devices in a tree-like hierarchy.

OPTIONS

-d dmesg
    Read dmesg from this file instead of the default /var/run/dmesg.boot. Use '-' to read the dmesg from standard input.

-f kernel
    "Fastboot". Disable all devices in the kernel that do not appear in the dmesg. This is done using the config(8) utility, so the kernel does not have to be rebuild. When the tweaked kernel boots, the disabled devices do not have to be probed, resulting in a faster boot.

-s kernelconfig
    "Small kernel". Comment out all devices in a kernel configuration file (e.g. GENERIC) that do not appear in the dmesg. The resulting configuration file can be used to build a minimal kernel with full functionality.

-t  "Tree". Show a tree-like hierarchy of all devices in the dmesg. Devices on the same level are shown in alphabetic order.

EXAMPLES
dmassage -t

dmassage -f /bsd | config -e -o /nbsd /bsd

dmassage -s GENERIC >SMALLKERNEL

AUTHOR
Camiel Dobbelaar <cd@sentia.nl>

http://www.sentia.org/projects/dmassage

CAVEATS
dmassage does not fully support recent OpenBSD releases and will often no longer directly create a working kernel configuration file; in most cases you will need to make additional changes yourself.

Additionally, note that using a custom kernel is unsupported. If reporting any OS bugs, be sure to verify that they still occur with GENERIC or GENERIC.MP.