# Linux Kernel Module Cheat
The perfect emulation setup to study and develop the <<linux-kernel>> v5.9.2, kernel modules, <<qemu-buildroot-setup,QEMU>>, <<gem5-buildroot-setup,gem5>> and x86_64, ARMv7 and ARMv8 <<userland-assembly,userland>> and <<baremetal-setup,baremetal>> assembly, <<c,ANSI C>>, <<cpp,C++>> and <<posix,POSIX>>. <<gdb>> and <<kgdb>> just work. Powered by <<about-the-qemu-buildroot-setup,Buildroot>> and <<about-the-baremetal-setup,crosstool-NG>>. Highly automated. Thoroughly documented. Automated <<test-this-repo,tests>>.

### 9.2. Device tree syntax

Good format descriptions:

- https://www.raspberrypi.org/documentation/configuration/device-tree.md

Minimal example

    /dts-v1/;

    / {
        a;
    };

Check correctness with:

    dtc a.dts

Separate nodes are simply merged by node path, e.g.:

    /dts-v1/;

    / {
        a;
    };

    / {
        b;
    };

then `dtc a.dts` gives:

    /dts-v1/;

    / {
            a;
            b;
    };