Lompat ke konten Lompat ke sidebar Lompat ke footer

Dtb Firmware __exclusive__ -

/dts-v1/; / { model = "MyCustomBoard v1.0"; compatible = "mycompany,myboard"; #address-cells = <1>; #size-cells = <1>;

tftp myboard.dtb fdt addr $loadaddr bootz $kernel_addr - $fdt_addr Or when building a Linux kernel with the DTB appended: dtb firmware

chosen { bootargs = "console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait"; stdout-path = &uart0; }; /dts-v1/; / { model = "MyCustomBoard v1

cpus { #address-cells = <1>; #size-cells = <0>; / { model = "MyCustomBoard v1.0"

cpu@0 { compatible = "arm,cortex-a7"; device_type = "cpu"; reg = <0>; clock-frequency = <1200000000>; }; };

usb@1e200000 { compatible = "generic-ehci"; reg = <0x1e200000 0x1000>; interrupts = <3>; status = "okay"; }; }; }; Save the .dts file, then use the Device Tree Compiler:

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: