fatload mmc 0:1 0x24000000 zImage; fatload mmc 0:1 0x21000000 board.dtb; bootz 0x24000000 - 0x21000000;We can see the DTB is passed as the third argument to the command.
setenv fdtaddr 0x21000000; fatload mmc 0:1 ${fdtaddr} board.dtbThis will load the DTBO into memory
setenv fdtovaddr 0x23000000; fatload mmc 0:1 ${fdtovaddr} someoverlay.dtbo;This will configure the address for fdt operations (we set it to the DRAM address where we loaded the base DTB)
fdt addr ${fdtaddr}This will resize the original DTB to accommodate more space for the overlay
fdt resize 8192This will apply the DTBO loaded at fdtovaddr on top of the DTB at the address we configured with fdt addr
fdt apply ${fdtovaddr}This will boot the kernel with the DTB at fdtaddr which now includes both the original DTB and the applied DTBO
bootz 0x24000000 - ${fdtaddr}
WebFaqBaseForm | |
---|---|
Boards | Sama7d65Curiosity, Sama5d29Curiosity, Sam9x75Curiosity, Sam9x60Curiosity, Sama7g5-ek, Sama5d2-icp, Sam9x60EK, Sama5d27WLSom1EK, Sama5d27Som1EK, Sama5d2PtcEK, Sama5d2Xplained, Sama5d4Xplained |
Components | U-Boot, Kernel |
Summary | How to apply DTBOs in U-boot |
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.
Microchip and others, are registered trademarks or trademarks of Microchip Technology Inc. and its subsidiaries.
Arm® and others are registered trademarks or trademarks of Arm Limited (or its affiliates). Other terms and product names may be trademarks of others.
Ideas, requests, contributions ? Connect to LinksToCommunities page.