1. 如果编译Linux kernel时,选择支持FDT,则Uboot可以传给kernel一个FDT对应的binary file.(即:FDT blob)
先把FDT Blob读入内存
使用uboot的bootm命令,启动kernel时,顺便通过bootm参数,传入FDT Blob.
To boot a Linux kernel image without a initrd ramdisk image, the following command can be used:
=> bootm ${kernel_addr} - ${fdt_addr}
If a ramdisk image shall be used, you can type:
=> bootm ${kernel_addr} ${ramdisk_addr} ${fdt_addr}
2. 使用dtc compiler来把.dts文件,编译为binary file.
Uboot在runtime的时候,也会修改一些FDT blob数据。
参考: ft_board_setup() etc.
3. Uboot支持fdt一系列命令
参考: http://www.denx.de/wiki/DULG/UBootCmdFDT