
Hi,
On Wed, 23 Oct 2024 21:09:34 +0200, Jonas wrote:
SPL should call spl_simple_fit_parse() -> fit_find_config_node() -> board_fit_config_name_match() to select correct FIT configuration and load correct FDT for U-Boot proper.
Based on runtime testing making board_fit_config_name_match() always return EINVAL in SPL, I did not see this Kconfig option help U-Boot proper load correct FDT. It only made my debug log print out:
fit_find_config_node: Cannot find /configurations node: -1
And U-Boot proper still used the base "Model: Xunlong Orange Pi 3B". Not sure if this behavior is different when vendor SPL is used.
From my understanding your issue may have been because of a mixture of older SPL and newer U-Boot proper, and was not really fixed by this Kconfig option?
Unless there is other uses for MULTI_DTB_FIT, e.g. if it is required to load correct FDT from a kernel FIT with multiple FDTs, I think we can skip adding this Kconfig option.
Yes, please ignore this patch. I was using an old version of mainlie u-boot on emmc which did not set correct fit when booting from sd card.
Now without this patch I can boot without issue when booting with emmc or sd card only. I am sorry for your time on my mistake.
Regards, Jianfeng