How to bootloader without SPL on iMX8QM Linux 4.19.35

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

How to bootloader without SPL on iMX8QM Linux 4.19.35

跳至解决方案
3,456 次查看
aso
Contributor III

I have a question regarding the creation of a Linux boot loader (flash.bin) for iMX8QM.

In Linux 4.14.78, I was able to create a loader without u-boot's SPL and confirmed its operation. (make SOC = iMX8QM flash)

However, in Linux 4.19.35, with SPL is the default for u-boot.
I created a loader with the setting with SPL and confirmed the operation. (make SOC = iMX8QM flash_spl)

I want to create a loader without SPL in 4.19.35, but when I check it, u-boot does not start.
Does 4.19.35 not support without SPL? (make SOC = iMX8QM flash)

I set u-boot defconfig without SPL, but it doesn't boot well.

I refer to the documentation below.
Document Number: IMXLUG
i.MX Linux User's Guide Rev. L4.19.35_1.1.0, 11/2019
4.5.13 How to build imx-boot image by using imx-mkimage

 

Regards,
Aso
0 项奖励
回复
1 解答
3,283 次查看
joanxie
NXP TechSupport
NXP TechSupport
0 项奖励
回复
6 回复数
3,435 次查看
joanxie
NXP TechSupport
NXP TechSupport

I don't build it on 4.19.35, but I download the demo images from nxp official website, I found imx-boot-imx8qmmek-sd.bin-flash and imx-boot-imx8qmmek-sd.bin-flash_spl there, you can download and check it, so 4.19.35 should support uboot without SPL

0 项奖励
回复
3,425 次查看
aso
Contributor III

Thank you for your reply.
I checked imx-boot-imx8qmmek-sd.bin-flash. It worked without SPL.
Can you provide the uboot defconfig file for building imx-boot-imx8qmmek-sd.bin-flash?
The following default defconfig is with SPL.

https://source.codeaurora.org/external/imx/uboot-imx -b rel_imx_4.19.35_1.1.0
uboot-imx / configs / imx8qm_mek_defconfig

0 项奖励
回复
3,386 次查看
aso
Contributor III

I will contact you again.

I used imx-boot-imx8qmmek-sd.bin-flash in the image below.
I have confirmed the operation of uboot without SPL.

"https://www.nxp.com/webapp/Download?colCode=L4.19.35_1.1.0_MX8QM&appType=license"

I think the method of generating this file is as follows.

"Make SOC = iMX8QM flash"

And I think that uboot required for generation will be built with a defconfig file that does not use SPL.
I need this defconfig file.
Would you please provide it?
The defconfig file (imx8qm_mek_defconfig) that can be obtained from the following is the one with SPL, and there is no one without SPL.

"git clone https://source.codeaurora.org/external/imx/uboot-imx -b rel_imx_4.19.35_1.1.0"

I modified the imx8qm_mek_defconfig file myself and tried it, but I couldn't boot with the following result.
This is the result of the UART terminal output.
One character of 'U' was output and it freezes.

teraterm.JPG

 

 

 

 

 

 

 

 

 

Is it okay to think that you can boot if you set uboot's defconfig to the correct setting without SPL?
Or are there any other set factors?

 

Regards,
Aso
0 项奖励
回复
3,304 次查看
joanxie
NXP TechSupport
NXP TechSupport

refer to the soc.mak, if you don't want to SPL, you can use the command

"make SOC=iMX8QM flash" to build

 

0 项奖励
回复
3,295 次查看
aso
Contributor III

Thank you for answering.
I tried that method and was able to boot successfully.

I was just thinking about changing u-boot.

Thank you.

0 项奖励
回复
3,284 次查看
joanxie
NXP TechSupport
NXP TechSupport

good to know

0 项奖励
回复