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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,535 Views
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 Kudos
Reply
1 Solution
1,470 Views
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

View solution in original post

0 Kudos
Reply
1 Reply
1,471 Views
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 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2079362%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EU-Boot%20Not%20Booting%20After%20Trying%20to%20Change%20Its%20Device%20Tree%20File%20Name%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2079362%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20preparing%20to%20boot%20my%20custom%20board%20using%20the%20i.MX%208M%20Plus%20System%20on%20Chip%20(SoC)%20with%20Linux.%20To%20achieve%20this%2C%20I%20created%20a%20meta%20layer%20and%20established%20a%20custom-machine.conf%20file%20that%20builds%20upon%20the%20existing%20imx8mp-lpddr4-evk.conf.%20Additionally%2C%20I%20modified%20the%20SRC_URI%20variable%20in%20the%20u-boot-imx_2024.04.bbappend%20file%20to%20point%20to%20my%20GitHub%20repository%2C%20which%20contains%20the%20modified%20U-Boot%20source%20code%20based%20on%20the%20original%20u-boot-imx.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EIn%20the%20initial%20stage%20of%20verifying%20that%20the%20new%20machine%20and%20U-Boot%20are%20functioning%20correctly%2C%20I%20copied%20or%20modified%20the%20files%20related%20to%20the%20i.MX%208MP%20EVK%20with%20minimal%20changes.%20I%20primarily%20changed%20the%20board%20name%2C%20addresses%2C%20and%20other%20necessary%20details%20to%20test%20its%20operation%20on%20the%20i.MX%208MP%20EVK.%20You%20can%20review%20all%20the%20modifications%20%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%3Ehere%3C%2FA%3E.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EI%20can%20successfully%20boot%20U-Boot%20on%20the%20evaluation%20kit%20(EVK)%20as%20long%20as%20no%20modifications%20are%20made%20to%20the%20custom_board_defconfig%20file%2C%20which%20is%20copied%20from%20imx8mp_evk_defconfig.%20However%2C%20when%20I%20attempt%20to%20change%20only%20the%20device%20tree%20name%2C%20U-Boot%20fails%20to%20boot%20on%20the%20EVK%2C%20and%20there%20is%20no%20output%20on%20the%20serial%20console.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EThe%20changes%20are%20as%20follows%3A%3CBR%20%2F%3E-%20%3CSTRONG%3ECONFIG_DEFAULT_DEVICE_TREE%3C%2FSTRONG%3E%3A%20Changed%20from%20%22imx8mp-evk%22%20to%20%22imx8mp-ifs%22%3CBR%20%2F%3E-%20%3CSTRONG%3ECONFIG_DEFAULT_FDT_FILE%3C%2FSTRONG%3E%3CSPAN%3E%3A%20Changed%20from%20%22imx8mp-evk.dtb%22%20to%20%22imx8mp-ifs.dtb%22%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%3ERe%3A%20U-Boot%20Not%20Booting%20After%20Trying%20to%20Change%20Its%20Device%20Tree%20File%20Name%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2080440%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3EPlease%20copy%26nbsp%3Barch%2Farm%2Fdts%2Fimx8mp-evk-u-boot.dtsi%20to%26nbsp%3Barch%2Farm%2Fdts%2Fimx8mp-ifs-u-boot.dtsi%20and%20then%20try%20again.%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E