iMX8MQ custom board cannot enter internal boot mode

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

iMX8MQ custom board cannot enter internal boot mode

跳至解决方案
1,413 次查看
jming
Contributor II

Hello,

Release: android_p9.0.0_2.0.0-ga_image_8mqevk.tar.gz

Board: i.MX8MQ based custom board

ChipMIMX8MQ6CVAHZAB    8M Quad   1.3GHz   Industrial   -40 to 105

We are working on iMX8MQ based custom board and facing issue while cannot enter internal boot mode.

step 1:

The dial code is set to normal startup mode. When we use an SD card that can be started normally from imx8mq evk, imx8mq cannot be started from the SD card, and no log is printed from the serial port.

step 2:

When I enter the serial downloader mode to download, it indicates that the CPU temperature is too high.

log:

CPU: Freescale i.MX8MQ rev2.1 1300 MHz (running at 800 MHz)
CPU: Industrial temperature grade (-40C to 105C)

CPU Temperature (112000C) has beyond alert (85000C), close to critical (95000C) waiting...

CPU Temperature (112000C) has beyond alert (85000C), close to critical (95000C) waiting...

CPU Temperature (112000C) has beyond alert (85000C), close to critical (95000C) waiting...

CPU Temperature (112000C) has beyond alert (85000C), close to critical (95000C) waiting...

step 3:

Using my own compiled uboot, refer to the following modified code,

--//while (cpu_tmp >= pdata->alert) {
++if (cpu_tmp >= pdata->alert) //edit by alan to start board
{
printf("edit by alan to start board\n");
printf("alan CPU Temperature (%dC) has beyond alert (%dC), close to critical (%dC)",
cpu_tmp, pdata->alert, pdata->critical);
puts("alan waiting...\n");
mdelay(pdata->polling_delay);
ret = read_temperature(dev, &cpu_tmp);
if (ret) {
printf("invalid data\n");
return ret;
}
}

After this modification, I can enter the uboot command line, and then I read the register SRC Boot Mode Register 1 (SRC_ SBMR1) and SRC Boot Mode Register 2 (SRC_ SBMR2). It is found that the value of the register can correspond to the location of the dial development, but it can't be started internally.

Whether I set dial code to serial download mode or internal startup, I finally enter the serial download mode

 

Conclusion:

I guess there may be a problem with the ROM code of imx8mq. Do you have any other suggestions

标签 (1)
0 项奖励
回复
1 解答
1,362 次查看
jming
Contributor II

Hi @Yuri ,

Thank you for your reply.

We read the logs of the IMX8M development board and our custom board. Could you tell me how to analyze them?

IMX8M development board log

009109e0: 00 00 40 b2 40 00 00 b9 c2 ff ff 17 1f 20 03 d5 ..@.@........ ..
009109f0: 40 01 80 52 21 00 80 52 88 ff ff 97 40 00 00 d0 @..R!..R....@...
00910a00: 1f 00 00 39 95 ff ff 17 7f 12 00 71 e0 17 9f 1a ...9.......q....
00910a10: bf 02 00 6a 60 f2 ff 54 81 3f 80 d2 7f 16 00 71 ...j`..T.?.....q
00910a20: 41 07 a6 f2 e2 17 9f 1a 20 00 40 b9 00 78 19 12 A....... .@..x..
00910a30: 20 00 00 b9 94 ff ff 17 00 70 1d 53 82 0e 80 52 ........p.S...R
00910a40: 22 07 a6 72 03 0f 80 52 02 00 02 0b 23 07 a6 72 "..r...R....#..r
00910a50: 42 7c 40 93 00 00 03 0b 00 7c 40 93 23 9c 58 d3 B|@......|@.#.X.
00910a60: 21 5c 02 53 43 00 00 b9 01 00 00 b9 c0 03 5f d6 !\.SC........._.
00910a70: 81 00 80 d2 1f 04 00 71 41 07 a6 f2 24 00 40 b9 .......qA...$.@.
00910a80: cd 02 00 54 02 18 00 11 21 00 80 52 42 78 1f 53 ...T....!..RBx.S
00910a90: 22 20 c2 1a 05 50 00 11 00 38 70 11 00 80 20 11 " ...P...8p... .
00910aa0: 83 00 80 d2 43 07 a6 f2 21 00 80 52 00 64 1a 53 ....C...!..R.d.S
00910ab0: 21 20 c5 1a 00 7c 40 93 21 00 04 2a 21 00 02 2a ! ...|@.!..*!..*
00910ac0: 61 00 00 b9 01 00 40 b9 21 00 00 32 01 00 00 b9 a.....@.!..2....
00910ad0: c0 03 5f d6 1f 20 03 d5 01 78 1f 53 22 00 80 52 .._.. ...x.S"..R
00910ae0: 42 20 c1 1a ec ff ff 17 81 00 80 d2 1f 04 00 71 B .............q
00910af0: 41 07 a6 f2 24 00 40 b9 4d 05 00 54 02 18 00 11 A...$.@.M..T....
00910b00: 21 00 80 52 42 78 1f 53 21 20 c2 1a e1 03 21 2a !..RBx.S! ....!*
00910b10: 83 00 80 d2 05 01 80 d2 43 07 a6 f2 21 00 04 0a ........C...!...
00910b20: 25 07 a6 f2 02 38 70 11 61 00 00 b9 42 80 20 11 %....8p.a...B. .
00910b30: 42 64 1a 53 21 00 80 52 a4 00 40 b9 42 7c 40 93 Bd.S!..R..@.B|@.
00910b40: 20 20 c0 1a 01 1e 80 d2 84 00 20 0a a4 00 00 b9 ........ .....
00910b50: 41 07 a6 f2 e3 03 01 aa 44 00 40 b9 84 00 00 32 A.......D.@....2
00910b60: 44 00 00 b9 24 00 40 b9 04 00 04 2a 24 00 00 b9 D...$.@....*$...
00910b70: 61 00 40 b9 1f 00 01 6a c1 ff ff 54 41 00 40 b9 a.@....j...TA.@.
00910b80: 03 01 80 d2 23 07 a6 f2 21 78 1f 12 41 00 00 b9 ....#...!x..A...
00910b90: 61 00 40 b9 00 00 01 2a 60 00 00 b9 c0 03 5f d6 a.@....*`....._.

 

And our custom board log

009109e0: 73 0e 00 11 13 20 d3 1a 33 00 00 b9 20 00 40 b9 s.... ..3... .@.
009109f0: 7f 02 00 6a c1 ff ff 54 e0 03 14 2a f5 13 40 f9 ...j...T...*..@.
00910a00: f3 53 41 a9 fd 7b c3 a8 01 00 80 52 84 ff ff 17 .SA..{.....R....
00910a10: f3 53 41 a9 f5 13 40 f9 fd 7b c3 a8 c0 03 5f d6 .SA...@..{...._.
00910a20: 82 0e 80 52 00 70 1d 53 22 07 a6 72 23 9c 58 d3 ...R.p.S"..r#.X.
00910a30: 02 00 02 0b 21 5c 42 d3 42 7c 40 93 43 00 00 b9 ....!\B.B|@.C...
00910a40: 02 0f 80 52 22 07 a6 72 02 00 02 0b 42 7c 40 93 ...R"..r....B|@.
00910a50: 41 00 00 b9 c0 03 5f d6 81 00 80 d2 1f 04 00 71 A....._........q
00910a60: 41 07 a6 f2 22 00 80 52 23 00 40 b9 01 78 1f 53 A..."..R#.@..x.S
00910a70: 6d 00 00 54 01 18 00 11 21 78 1f 53 04 50 00 11 m..T....!x.S.P..
00910a80: 41 20 c1 1a 22 00 80 52 00 38 70 11 42 20 c4 1a A .."..R.8p.B ..
00910a90: 00 80 20 11 42 00 03 2a 00 64 1a 53 41 00 01 2a .. .B..*.d.SA..*
00910aa0: 82 00 80 d2 42 07 a6 f2 00 7c 40 93 41 00 00 b9 ....B....|@.A...
00910ab0: 01 00 40 b9 21 00 00 32 01 00 00 b9 c0 03 5f d6 ..@.!..2......_.
00910ac0: 81 00 80 d2 1f 04 00 71 41 07 a6 f2 22 00 80 52 .......qA..."..R
00910ad0: 23 00 40 b9 8c 00 00 54 01 78 1f 53 42 20 c1 1a #.@....T.x.SB ..
00910ae0: 04 00 00 14 04 18 00 11 84 78 1f 53 42 20 c4 1a .........x.SB ..
00910af0: e1 03 22 2a 82 00 80 d2 42 07 a6 f2 21 00 03 0a .."*....B...!...
00910b00: 03 01 80 d2 23 07 a6 f2 41 00 00 b9 01 01 80 d2 ....#...A.......
00910b10: 21 07 a6 f2 22 00 40 b9 21 00 80 52 21 20 c0 1a !...".@.!..R! ..
00910b20: 00 38 70 11 00 80 20 11 42 00 21 0a 00 64 1a 53 .8p... .B.!..d.S
00910b30: 62 00 00 b9 03 1e 80 d2 00 7c 40 93 43 07 a6 f2 b........|@.C...
00910b40: 02 00 40 b9 42 00 00 32 02 00 00 b9 02 1e 80 d2 ..@.B..2........
00910b50: 42 07 a6 f2 42 00 40 b9 22 00 02 2a 62 00 00 b9 B...B.@."..*b...
00910b60: 02 1e 80 d2 42 07 a6 f2 42 00 40 b9 3f 00 02 6a ....B...B.@.?..j
00910b70: 81 ff ff 54 02 00 40 b9 42 78 1f 12 02 00 00 b9 ...T..@.Bx......
00910b80: 00 01 80 d2 20 07 a6 f2 00 00 40 b9 21 00 00 2a .... .....@.!..*
00910b90: 00 01 80 d2 20 07 a6 f2 01 00 00 b9 c0 03 5f d6 .... ........._.

 

Thanks.

 

 

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,374 次查看
Yuri
NXP Employee
NXP Employee

@jming 
Hello,

   Please use app note AN12853 (i.MX ROMs Log Events).
In particular, ROM event log buffer, which location is stored at 0x9E0,
helps to clarify the boot issue.

https://www.nxp.com/webapp/Download?colCode=AN12853

Regards,
Yuri.

0 项奖励
回复
1,363 次查看
jming
Contributor II

Hi @Yuri ,

Thank you for your reply.

We read the logs of the IMX8M development board and our custom board. Could you tell me how to analyze them?

IMX8M development board log

009109e0: 00 00 40 b2 40 00 00 b9 c2 ff ff 17 1f 20 03 d5 ..@.@........ ..
009109f0: 40 01 80 52 21 00 80 52 88 ff ff 97 40 00 00 d0 @..R!..R....@...
00910a00: 1f 00 00 39 95 ff ff 17 7f 12 00 71 e0 17 9f 1a ...9.......q....
00910a10: bf 02 00 6a 60 f2 ff 54 81 3f 80 d2 7f 16 00 71 ...j`..T.?.....q
00910a20: 41 07 a6 f2 e2 17 9f 1a 20 00 40 b9 00 78 19 12 A....... .@..x..
00910a30: 20 00 00 b9 94 ff ff 17 00 70 1d 53 82 0e 80 52 ........p.S...R
00910a40: 22 07 a6 72 03 0f 80 52 02 00 02 0b 23 07 a6 72 "..r...R....#..r
00910a50: 42 7c 40 93 00 00 03 0b 00 7c 40 93 23 9c 58 d3 B|@......|@.#.X.
00910a60: 21 5c 02 53 43 00 00 b9 01 00 00 b9 c0 03 5f d6 !\.SC........._.
00910a70: 81 00 80 d2 1f 04 00 71 41 07 a6 f2 24 00 40 b9 .......qA...$.@.
00910a80: cd 02 00 54 02 18 00 11 21 00 80 52 42 78 1f 53 ...T....!..RBx.S
00910a90: 22 20 c2 1a 05 50 00 11 00 38 70 11 00 80 20 11 " ...P...8p... .
00910aa0: 83 00 80 d2 43 07 a6 f2 21 00 80 52 00 64 1a 53 ....C...!..R.d.S
00910ab0: 21 20 c5 1a 00 7c 40 93 21 00 04 2a 21 00 02 2a ! ...|@.!..*!..*
00910ac0: 61 00 00 b9 01 00 40 b9 21 00 00 32 01 00 00 b9 a.....@.!..2....
00910ad0: c0 03 5f d6 1f 20 03 d5 01 78 1f 53 22 00 80 52 .._.. ...x.S"..R
00910ae0: 42 20 c1 1a ec ff ff 17 81 00 80 d2 1f 04 00 71 B .............q
00910af0: 41 07 a6 f2 24 00 40 b9 4d 05 00 54 02 18 00 11 A...$.@.M..T....
00910b00: 21 00 80 52 42 78 1f 53 21 20 c2 1a e1 03 21 2a !..RBx.S! ....!*
00910b10: 83 00 80 d2 05 01 80 d2 43 07 a6 f2 21 00 04 0a ........C...!...
00910b20: 25 07 a6 f2 02 38 70 11 61 00 00 b9 42 80 20 11 %....8p.a...B. .
00910b30: 42 64 1a 53 21 00 80 52 a4 00 40 b9 42 7c 40 93 Bd.S!..R..@.B|@.
00910b40: 20 20 c0 1a 01 1e 80 d2 84 00 20 0a a4 00 00 b9 ........ .....
00910b50: 41 07 a6 f2 e3 03 01 aa 44 00 40 b9 84 00 00 32 A.......D.@....2
00910b60: 44 00 00 b9 24 00 40 b9 04 00 04 2a 24 00 00 b9 D...$.@....*$...
00910b70: 61 00 40 b9 1f 00 01 6a c1 ff ff 54 41 00 40 b9 a.@....j...TA.@.
00910b80: 03 01 80 d2 23 07 a6 f2 21 78 1f 12 41 00 00 b9 ....#...!x..A...
00910b90: 61 00 40 b9 00 00 01 2a 60 00 00 b9 c0 03 5f d6 a.@....*`....._.

 

And our custom board log

009109e0: 73 0e 00 11 13 20 d3 1a 33 00 00 b9 20 00 40 b9 s.... ..3... .@.
009109f0: 7f 02 00 6a c1 ff ff 54 e0 03 14 2a f5 13 40 f9 ...j...T...*..@.
00910a00: f3 53 41 a9 fd 7b c3 a8 01 00 80 52 84 ff ff 17 .SA..{.....R....
00910a10: f3 53 41 a9 f5 13 40 f9 fd 7b c3 a8 c0 03 5f d6 .SA...@..{...._.
00910a20: 82 0e 80 52 00 70 1d 53 22 07 a6 72 23 9c 58 d3 ...R.p.S"..r#.X.
00910a30: 02 00 02 0b 21 5c 42 d3 42 7c 40 93 43 00 00 b9 ....!\B.B|@.C...
00910a40: 02 0f 80 52 22 07 a6 72 02 00 02 0b 42 7c 40 93 ...R"..r....B|@.
00910a50: 41 00 00 b9 c0 03 5f d6 81 00 80 d2 1f 04 00 71 A....._........q
00910a60: 41 07 a6 f2 22 00 80 52 23 00 40 b9 01 78 1f 53 A..."..R#.@..x.S
00910a70: 6d 00 00 54 01 18 00 11 21 78 1f 53 04 50 00 11 m..T....!x.S.P..
00910a80: 41 20 c1 1a 22 00 80 52 00 38 70 11 42 20 c4 1a A .."..R.8p.B ..
00910a90: 00 80 20 11 42 00 03 2a 00 64 1a 53 41 00 01 2a .. .B..*.d.SA..*
00910aa0: 82 00 80 d2 42 07 a6 f2 00 7c 40 93 41 00 00 b9 ....B....|@.A...
00910ab0: 01 00 40 b9 21 00 00 32 01 00 00 b9 c0 03 5f d6 ..@.!..2......_.
00910ac0: 81 00 80 d2 1f 04 00 71 41 07 a6 f2 22 00 80 52 .......qA..."..R
00910ad0: 23 00 40 b9 8c 00 00 54 01 78 1f 53 42 20 c1 1a #.@....T.x.SB ..
00910ae0: 04 00 00 14 04 18 00 11 84 78 1f 53 42 20 c4 1a .........x.SB ..
00910af0: e1 03 22 2a 82 00 80 d2 42 07 a6 f2 21 00 03 0a .."*....B...!...
00910b00: 03 01 80 d2 23 07 a6 f2 41 00 00 b9 01 01 80 d2 ....#...A.......
00910b10: 21 07 a6 f2 22 00 40 b9 21 00 80 52 21 20 c0 1a !...".@.!..R! ..
00910b20: 00 38 70 11 00 80 20 11 42 00 21 0a 00 64 1a 53 .8p... .B.!..d.S
00910b30: 62 00 00 b9 03 1e 80 d2 00 7c 40 93 43 07 a6 f2 b........|@.C...
00910b40: 02 00 40 b9 42 00 00 32 02 00 00 b9 02 1e 80 d2 ..@.B..2........
00910b50: 42 07 a6 f2 42 00 40 b9 22 00 02 2a 62 00 00 b9 B...B.@."..*b...
00910b60: 02 1e 80 d2 42 07 a6 f2 42 00 40 b9 3f 00 02 6a ....B...B.@.?..j
00910b70: 81 ff ff 54 02 00 40 b9 42 78 1f 12 02 00 00 b9 ...T..@.Bx......
00910b80: 00 01 80 d2 20 07 a6 f2 00 00 40 b9 21 00 00 2a .... .....@.!..*
00910b90: 00 01 80 d2 20 07 a6 f2 01 00 00 b9 c0 03 5f d6 .... ........._.

 

Thanks.

 

 

 

0 项奖励
回复