U-Boot Not Booting After Trying to Change Its Device Tree File Name

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

U-Boot Not Booting After Trying to Change Its Device Tree File Name

跳至解决方案
1,043 次查看
Martiya
Contributor I

I am preparing to boot my custom board using the i.MX 8M Plus System on Chip (SoC) with Linux. To achieve this, I created a meta layer and established a custom-machine.conf file that builds upon the existing imx8mp-lpddr4-evk.conf. Additionally, I modified the SRC_URI variable in the u-boot-imx_2024.04.bbappend file to point to my GitHub repository, which contains the modified U-Boot source code based on the original u-boot-imx.


In the initial stage of verifying that the new machine and U-Boot are functioning correctly, I copied or modified the files related to the i.MX 8MP EVK with minimal changes. I primarily changed the board name, addresses, and other necessary details to test its operation on the i.MX 8MP EVK. You can review all the modifications here.


I can successfully boot U-Boot on the evaluation kit (EVK) as long as no modifications are made to the custom_board_defconfig file, which is copied from imx8mp_evk_defconfig. However, when I attempt to change only the device tree name, U-Boot fails to boot on the EVK, and there is no output on the serial console.


The changes are as follows:
- CONFIG_DEFAULT_DEVICE_TREE: Changed from "imx8mp-evk" to "imx8mp-ifs"
- CONFIG_DEFAULT_FDT_FILE: Changed from "imx8mp-evk.dtb" to "imx8mp-ifs.dtb"

0 项奖励
回复
1 解答
978 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

Please copy arch/arm/dts/imx8mp-evk-u-boot.dtsi to arch/arm/dts/imx8mp-ifs-u-boot.dtsi and then try again.

Best Regards,
Zhiming

在原帖中查看解决方案

0 项奖励
回复
1 回复
979 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

Please copy arch/arm/dts/imx8mp-evk-u-boot.dtsi to arch/arm/dts/imx8mp-ifs-u-boot.dtsi and then try again.

Best Regards,
Zhiming

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2079362%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%B0%9D%E8%AF%95%E6%9B%B4%E6%94%B9%E8%AE%BE%E5%A4%87%E6%A0%91%E6%96%87%E4%BB%B6%E5%90%8D%E5%90%8E%EF%BC%8CU-Boot%20%E6%97%A0%E6%B3%95%E5%90%AF%E5%8A%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2079362%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E6%AD%A3%E5%87%86%E5%A4%87%E4%BD%BF%E7%94%A8%E5%B8%A6%E6%9C%89%20Linux%20%E7%9A%84%20i.MX%208M%20Plus%20%E7%89%87%E4%B8%8A%E7%B3%BB%E7%BB%9F%20(SoC)%20%E5%90%AF%E5%8A%A8%E6%88%91%E7%9A%84%E5%AE%9A%E5%88%B6%E6%9D%BF%E3%80%82%E4%B8%BA%E4%BA%86%E5%AE%9E%E7%8E%B0%E8%BF%99%E4%B8%80%E7%82%B9%EF%BC%8C%E6%88%91%E5%88%9B%E5%BB%BA%E4%BA%86%E4%B8%80%E4%B8%AA%E5%85%83%E5%B1%82%E5%B9%B6%E5%BB%BA%E7%AB%8B%E4%BA%86%E4%B8%80%E4%B8%AA%E5%9F%BA%E4%BA%8E%E7%8E%B0%E6%9C%89%20imx8mp-lpddr4-evk.conf%20%E7%9A%84%20custom-machine.conf%20%E6%96%87%E4%BB%B6%E3%80%82%E6%AD%A4%E5%A4%96%EF%BC%8C%E6%88%91%E4%BF%AE%E6%94%B9%E4%BA%86%20u-boot-imx_2024.04.bbappend%20%E6%96%87%E4%BB%B6%E4%B8%AD%E7%9A%84%20SRC_URI%20%E5%8F%98%E9%87%8F%EF%BC%8C%E4%BD%BF%E5%85%B6%E6%8C%87%E5%90%91%E6%88%91%E7%9A%84%20GitHub%20%E5%AD%98%E5%82%A8%E5%BA%93%EF%BC%8C%E5%85%B6%E4%B8%AD%E5%8C%85%E5%90%AB%E5%9F%BA%E4%BA%8E%E5%8E%9F%E5%A7%8B%20u-boot-imx%20%E4%BF%AE%E6%94%B9%E5%90%8E%E7%9A%84%20U-Boot%20%E6%BA%90%E4%BB%A3%E7%A0%81%E3%80%82%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%E5%9C%A8%E9%AA%8C%E8%AF%81%E6%96%B0%E6%9C%BA%E5%99%A8%E5%92%8C%20U-Boot%20%E6%98%AF%E5%90%A6%E6%AD%A3%E5%B8%B8%E8%BF%90%E8%A1%8C%E7%9A%84%E5%88%9D%E5%A7%8B%E9%98%B6%E6%AE%B5%EF%BC%8C%E6%88%91%E5%A4%8D%E5%88%B6%E6%88%96%E4%BF%AE%E6%94%B9%E4%BA%86%E4%B8%8E%20i.MX%208MP%20EVK%20%E7%9B%B8%E5%85%B3%E7%9A%84%E6%96%87%E4%BB%B6%EF%BC%8C%E5%B9%B6%E5%81%9A%E4%BA%86%E6%9C%80%E5%B0%91%E7%9A%84%E6%94%B9%E5%8A%A8%E3%80%82%E6%88%91%E4%B8%BB%E8%A6%81%E6%9B%B4%E6%94%B9%E4%BA%86%E7%94%B5%E8%B7%AF%E6%9D%BF%E5%90%8D%E7%A7%B0%E3%80%81%E5%9C%B0%E5%9D%80%E5%92%8C%E5%85%B6%E4%BB%96%E5%BF%85%E8%A6%81%E7%9A%84%E8%AF%A6%E7%BB%86%E4%BF%A1%E6%81%AF%EF%BC%8C%E4%BB%A5%E6%B5%8B%E8%AF%95%E5%85%B6%E5%9C%A8%20i.MX%208MP%20EVK%20%E4%B8%8A%E7%9A%84%E8%BF%90%E8%A1%8C%E3%80%82%E6%82%A8%E5%8F%AF%E4%BB%A5%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FPPKco%2FIFS-uboot%2Fcommit%2Fe6f7168b9f328fc8dcf2b00bf338ce4740ebbc1d%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%E5%9C%A8%E6%AD%A4%E5%A4%84%3C%2FA%3E%E6%9F%A5%E7%9C%8B%E6%89%80%E6%9C%89%E4%BF%AE%E6%94%B9%E3%80%82%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%E5%8F%AA%E8%A6%81%E4%B8%8D%E5%AF%B9%E4%BB%8E%20imx8mp_evk_defconfig%20%E5%A4%8D%E5%88%B6%E7%9A%84%20custom_board_defconfig%20%E6%96%87%E4%BB%B6%E8%BF%9B%E8%A1%8C%E4%BB%BB%E4%BD%95%E4%BF%AE%E6%94%B9%EF%BC%8C%E6%88%91%E5%B0%B1%E5%8F%AF%E4%BB%A5%E5%9C%A8%E8%AF%84%E4%BC%B0%E5%A5%97%E4%BB%B6%20(EVK)%20%E4%B8%8A%E6%88%90%E5%8A%9F%E5%90%AF%E5%8A%A8%20U-Boot%E3%80%82%E4%BD%86%E6%98%AF%EF%BC%8C%E5%BD%93%E6%88%91%E5%B0%9D%E8%AF%95%E4%BB%85%E6%9B%B4%E6%94%B9%E8%AE%BE%E5%A4%87%E6%A0%91%E5%90%8D%E7%A7%B0%E6%97%B6%EF%BC%8CU-Boot%20%E6%97%A0%E6%B3%95%E5%9C%A8%20EVK%20%E4%B8%8A%E5%90%AF%E5%8A%A8%EF%BC%8C%E5%B9%B6%E4%B8%94%E4%B8%B2%E8%A1%8C%E6%8E%A7%E5%88%B6%E5%8F%B0%E4%B8%8A%E6%B2%A1%E6%9C%89%E8%BE%93%E5%87%BA%E3%80%82%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%E5%85%B7%E4%BD%93%E5%8F%98%E5%8C%96%E5%A6%82%E4%B8%8B%EF%BC%9A%3CBR%20%2F%3E%20-%20%3CSTRONG%3ECONFIG_DEFAULT_DEVICE_TREE%3C%2FSTRONG%3E%20%EF%BC%9A%E4%BB%8E%E2%80%9Cimx8mp-evk%E2%80%9D%E6%9B%B4%E6%94%B9%E4%B8%BA%E2%80%9Cimx8mp-ifs%E2%80%9D%3CBR%20%2F%3E%20-%20%3CSTRONG%3ECONFIG_DEFAULT_FDT_FILE%3C%2FSTRONG%3E%20%3CSPAN%3E%EF%BC%9A%E4%BB%8E%E2%80%9Cimx8mp-evk.dtb%E2%80%9D%E6%9B%B4%E6%94%B9%E4%B8%BA%E2%80%9Cimx8mp-ifs.dtb%E2%80%9D%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2080440%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%B0%9D%E8%AF%95%E6%9B%B4%E6%94%B9%E8%AE%BE%E5%A4%87%E6%A0%91%E6%96%87%E4%BB%B6%E5%90%8D%E5%90%8E%EF%BC%8CU-Boot%20%E6%97%A0%E6%B3%95%E5%90%AF%E5%8A%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2080440%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%3CBR%20%2F%3E%3CBR%20%2F%3E%E8%AF%B7%E5%B0%86%20arch%2Farm%2Fdts%2Fimx8mp-evk-u-boot.dtsi%20%E5%A4%8D%E5%88%B6%E5%88%B0%20arch%2Farm%2Fdts%2Fimx8mp-ifs-u-boot.dtsi%EF%BC%8C%E7%84%B6%E5%90%8E%E9%87%8D%E8%AF%95%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%E6%AD%A4%E8%87%B4%EF%BC%8C%3CBR%20%2F%3E%E5%BF%97%E6%98%8E%3C%2FP%3E%3C%2FLINGO-BODY%3E