diff --git a/README.md b/README.md index 506f338..30c5103 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Linux Kernel Module Cheat -Run one command, get into QEMU Buildroot BusyBox with several minimal Linux kernel 4.9 module example tutorials. Tested in Ubuntu 14.04 host. +Run one command, get into QEMU Buildroot BusyBox with several minimal Linux kernel 4.9 module example tutorials. Tested in Ubuntu 14.04 - 16.10 hosts. Usage: @@ -17,6 +17,15 @@ QEMU opens up, and you can run: rmmod hello rmmod hello2 +This should print to the screen: + + hello init + hello2 init + hello cleanup + hello2 cleanup + +which are `printk` messages from `init` and `cleanup` methods of those modules. + Each module comes from a C file under `kernel_module/`. For module usage do: head *. use Buildroot's default kernel version, you can confirm it after build with: @@ -37,11 +46,11 @@ See also: + ## Text mode Show serial output of QEMU directly on the current terminal, without opening a QEMU window: