[hot]: Dtb Firmware
dtc -I dtb -O dts -o extracted.dts myboard.dtb The DTB is typically loaded by the bootloader (U-Boot, barebox, or directly by the kernel). Example U-Boot commands:
mmc@1e100000 { compatible = "mycompany,mmc"; reg = <0x1e100000 0x1000>; interrupts = <2>; max-frequency = <50000000>; bus-width = <4>; status = "okay"; }; dtb firmware
memory@0 { device_type = "memory"; reg = <0x0 0x20000000>; /* 512 MB at address 0 */ }; dtc -I dtb -O dts -o extracted
/dts-v1/; / { model = "MyCustomBoard v1.0"; compatible = "mycompany,myboard"; #address-cells = <1>; #size-cells = <1>; reg = <
usb@1e200000 { compatible = "generic-ehci"; reg = <0x1e200000 0x1000>; interrupts = <3>; status = "okay"; }; }; }; Save the .dts file, then use the Device Tree Compiler: