Currently (as of Feb 11, 2024) the OS/Kernel setup is done statically; or in other words: everything is hard coded. There is no device discovery OR enumeration OR drivers.
Each day, I'm moving closer into the peripherals, devices and I/O territory. Before I can fully commit myself, I should implement a device discovery & driver matching system. To do that, naturally, I need a parser for a Device Tree Blobs.
Currently (as of Feb 11, 2024) the OS/Kernel setup is done statically; or in other words: everything is hard coded. There is no device discovery OR enumeration OR drivers.
Each day, I'm moving closer into the peripherals, devices and I/O territory. Before I can fully commit myself, I should implement a device discovery & driver matching system. To do that, naturally, I need a parser for a Device Tree Blobs.
Device Tree is a specification and has two important aspects:
QEMU can dump the
*.dtb
file via the-machine dumpdtb=<out_file>.dtb
CLI option. It can be useful when debugging.QEMU automatically loads the
*.dtb
into main memory. The following specifies it's base address and related info:Good luck working on this! There are lots of good resources out there; I'm sure they will be helpful. ☆