This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

uboot 多个设备树是如何对板子进行适配,找到对应的设备树的?

Other Parts Discussed in Thread: AM5728, BEAGLEBOARD-X15

板子:beagleboard  X15

Uboot版本:u-boot-2019.01+gitAUTOINC+8b90adfb16-g8b90adfb16

问题:uboot在哪里进行自动设备板子找到对应的设备树的?(编译出来貌似有很多个与具体板子对应的设备树文件)

详细描述

Uboot编译的命令使用make CROSS_COMPILE=arm-linux-gnueabihf- O=am5728_evm am57xx_evm_defconfig 去配置,配置完成后查看编译出来的设备树有

am57xx-beagle-x15.dtb,am57xx-beagle-x15-revb1.dtb,am57xx-beagle-x15-revc.dtb,am571x-idk.dtb,am572x-idk.dtb,am574x-idk.dtb

然后我发现uboot串口打印的信息中有Model: TI AM5728 BeagleBoard-X15 rev C,查看代码为

model = fdt_getprop(gd->fdt_blob, 0, "model", NULL);那是不是可以说明uboot采用了这个am57xx-beagle-x15-revc.dtb设备树文件,但是我在uboot代码里面没有找到根据自身板子自动识别设备树的代码?这是我的疑问点