20

Use /dev/kmsg as Early Log Target

Here’s an example:

$ echo "Hello, world" > /dev/kmsg
[734626.551208] Hello, world
#EmbeddedLinux
Did you know that userspace can write into the kernel log buffer? Open /dev/kmsg and write to it. This is useful for debugging when you need to coordinate with kernel logs and sysklogd is not available.
Icon with a waving hand

Get in touch

sigma star gmbh
Eduard-Bodem-Gasse 6, 1st floor
6020 Innsbruck | Austria

sigma star gmbh logo