i.MX RT 1050 u-boot keeps on rebooting instead of loading kernel

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

i.MX RT 1050 u-boot keeps on rebooting instead of loading kernel

跳至解决方案
1,668 次查看
mkohout
Contributor II

Hi together,

I have a strange problem working with the i.MX RT 1050 EVK. The kernel does not load properly - u-boot resets after loading the kernel.Only the message "Starting kernel" is printed.

=> printenv
arch=arm
baudrate=115200
board=imxrt1050-evk
board_name=imxrt1050-evk
bootcmd=setenv bootargs console=ttyLP0 root=/dev/mmcblk0p1 rw earlycon rootwait;load mmc 0:1 0x80800000 boot/imxrt1050-evk.dtb;load mmc 0:1 0x80000000 boot/zImage;bootz 0x80000000 - 0x80800000
bootdelay=2
cpu=armv7m
fdtcontroladdr=81da4240
soc=imxrt
stderr=vidconsole
stdin=serial
stdout=vidconsole
vendor=freescale

Environment size: 387/126972 bytes

 The complete procedure is as follows:

=> reset
resetting ...

U-Boot SPL 2021.10 (Mar 16 2022 - 15:59:06 +0100)
Trying to boot from MMC1


U-Boot 2021.10 (Mar 16 2022 - 15:59:06 +0100)

Model: NXP IMXRT1050-evk board
DRAM:  32 MiB
MMC:   FSL_SDHC: 0
Loading Environment from MMC... *** Warning - bad CRC, using default environment

Loading Environment from nowhere... OK
In:    serial
Out:   vidconsole
Err:   vidconsole
Net:   No ethernet found.
Hit any key to stop autoboot:  0
4287 bytes read in 8 ms (522.5 KiB/s)
2217248 bytes read in 147 ms (14.4 MiB/s)
Kernel image @ 0x80000000 [ 0x000000 - 0x21d520 ]
## Flattened Device Tree blob at 80800000
   Booting using the fdt blob at 0x80800000
   Loading Device Tree to 81d9e000, end 81da20be ... OK

Starting kernel ...


U-Boot SPL 2021.10 (Mar 16 2022 - 15:59:06 +0100)
Trying to boot from MMC1


U-Boot 2021.10 (Mar 16 2022 - 15:59:06 +0100)

Model: NXP IMXRT1050-evk board
DRAM:  32 MiB
MMC:   FSL_SDHC: 0
Loading Environment from MMC... *** Warning - bad CRC, using default environment

Loading Environment from nowhere... OK
In:    serial
Out:   vidconsole
Err:   vidconsole
Net:   No ethernet found.
Hit any key to stop autoboot:  0
4287 bytes read in 8 ms (522.5 KiB/s)
2217248 bytes read in 148 ms (14.3 MiB/s)
Kernel image @ 0x80000000 [ 0x000000 - 0x21d520 ]
## Flattened Device Tree blob at 80800000
   Booting using the fdt blob at 0x80800000
   Loading Device Tree to 81d9e000, end 81da20be ... OK

Starting kernel ...


U-Boot SPL 2021.10 (Mar 16 2022 - 15:59:06 +0100)
Trying to boot from MMC1


U-Boot 2021.10 (Mar 16 2022 - 15:59:06 +0100)

Model: NXP IMXRT1050-evk board
DRAM:  32 MiB
MMC:   FSL_SDHC: 0
Loading Environment from MMC... *** Warning - bad CRC, using default environment

Loading Environment from nowhere... OK
In:    serial
Out:   vidconsole
Err:   vidconsole
Net:   No ethernet found.
Hit any key to stop autoboot:  0

I experimented with uImage etc. But nothing is changing then. Any guesses?

 

Thank you in advance

Markus

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,631 次查看
mkohout
Contributor II

Was able to resolve the issue of booting the kernel by using the repository

https://github.com/Mr-Bossman/imxrt-linux-buildroot

as inspiration. Minor modifications required to get a desired result. Thread can be considered as solved.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,652 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
I was wondering if you can introduce your testing environment, such as Uboot code, compiler, etc.
Moreover, as I know, the NXP hasn't released the Uboot for the RT series MCU, did you port Uboot by yourself or purchase from a third party?
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

 

0 项奖励
回复
1,647 次查看
mkohout
Contributor II

Sure!

I am building everything with buildroot - Linux in its recent version patched with the device trees located here:

https://github.com/Mr-Bossman/linux/tree/imxrt_v8

U-Boot contains a configuration and a device tree in their Git already:

https://github.com/u-boot/u-boot/blob/master/arch/arm/dts/imxrt1050-evk.dts

For compilation I use GCC 11.x with uclibc

Regards

Markus

0 项奖励
回复
1,632 次查看
mkohout
Contributor II

Was able to resolve the issue of booting the kernel by using the repository

https://github.com/Mr-Bossman/imxrt-linux-buildroot

as inspiration. Minor modifications required to get a desired result. Thread can be considered as solved.

0 项奖励
回复