Thank you for the post!
I've created a tutorial that might also be of interest: https://github.com/cirosantilli/linux-kernel-module-cheat
It contains a highly automated setup that builds Linux, an emulator (QEMU or gem5) and the root filesystem from scratch.
It also has a GDB setup that just...