# Linux Kernel Module Cheat

The perfect emulation setup to study and develop the Linux kernel v5.9.2, kernel modules, QEMU, gem5 and x86_64, ARMv7 and ARMv8 userland and baremetal assembly, ANSI C, C++ and POSIX. GDB step debug and KGDB just work. Powered by Buildroot and crosstool-NG. Highly automated. Thoroughly documented. Automated tests. "Tested" in an Ubuntu 20.04 host.

Dan Kaminski-approved™ RIP.

TL;DR: Section 2.2.1, “QEMU Buildroot setup getting started”

The source code for this page is located at: https://github.com/cirosantilli/linux-kernel-module-cheat. Due to a GitHub limitation, this README is too long and not fully rendered on github.com, so either use:

- https://cirosantilli.com/linux-kernel-module-cheat

- https://cirosantilli.com/linux-kernel-module-cheat/index-split: split header version

- build the docs yourself

https://github.com/cirosantilli/china-dictatorship | https://cirosantilli.com/china-dictatorship/xinjiang

- <code>--china</code>

- Getting started

- GDB step debug

- KGDB

- gdbserver

- CPU architecture

- init

- initrd

- Device tree

- KVM

- User mode simulation

- Kernel module utilities

- Filesystems

- Graphics

- Networking

- Operating systems

- Linux kernel

- FreeBSD

- RTOS

- Xen

- U-Boot

- Emulators

- QEMU

- gem5

- Gensim

- Buildroot

- Userland content

- Userland assembly

- x86 userland assembly

- ARM userland assembly

- ELF

- IEEE 754

- Baremetal

- Android

- Benchmark this repo

- Compilers

- Computer architecture

- About this repo