i.MX6ULL - change default u-boot device tree

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

i.MX6ULL - change default u-boot device tree

1,651 次查看
carotte
Contributor IV

Hi, 

I have already looked around the forum, but unfortunately there doesn't seem to be any answer to my question.

I am using the i.MX6ULL EVK and I want to change the default device tree that is used by u-boot.

The default is "imx6ull-14x14-evk.dtb".

I have already added "imx6ull-14x14-evk-btwifi-m2-oob.dtb" to the image. 

If I interrupt the boot and type "setenv fdt_file imx6ull-14x14-evk-btwifi-m2-oob.dtb", it gets loaded correctly.

 

I also tried excluding all other device trees from the image, so that "imx6ull-14x14-evk-btwifi-m2-oob.dtb" is the only one.

In that case, u-boot says that I can't find a valid device tree until I manually direct it to that file.

So the question is, how can I setup my yocto project in a way that "imx6ull-14x14-evk-btwifi-m2-oob.dtb" is the default device tree ?

 

Thanks!

 

0 项奖励
回复
1 回复

1,606 次查看
radhika_somaiya
NXP Employee
NXP Employee
 
To use the "imx6ull-14x14-evk-btwifi-m2-oob.dtb" as default dtb you need to specify your dtb name in "u-boot-imx/git/include/configs/mx6ullevk.h" file.

Below the #define CONFIG_EXTRA_ENV_SETTINGS, there is fdt_file variable defined. Assign your mentioned dtb to that variable i.e. "fdt_file=imx6ull-14x14-evk-btwifi-m2-oob.dtb\0".

Let us know in case of any concerns.
 
Regards,
Radhika Somaiya
0 项奖励
回复