System hang up when running uboot

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

System hang up when running uboot

910 Views
simonng
Contributor III

Hi NXP Team,

We are using i.MX8MQ processor and running the mtest program on the uboot to do some memory test.

We found that the system may hang up after some loop tests. This hang up happens randomly and at different loop. When it happen, the processor, UART and USB have no respond. We tried to use the debugger to debug this problem. Here is the log we got. Please review and provide any solution.

 

(gdb) info reg
x0 0x2 2
x1 0xbffad2dd 3220886237
x2 0x5cc27dc8 1556250056
x3 0x4040000 67371008
x4 0xfffffffffffffb81 18446744073709550465
x5 0x10 16
x6 0xffffffd0 4294967248
x7 0x3 3
x8 0xbf9335f0 3214095856
x9 0x8 8
x10 0xffffffd0 4294967248
x11 0x6 6
x12 0x1869f 99999
x13 0xd 13
x14 0xc 12
x15 0xffffffff 4294967295
x16 0x1080 4224
x17 0x0 0
x18 0xbf939d70 3214122352
x19 0xbffd7000 3221057536
x20 0xbdfffff8 3187671032
x21 0xbffad4b5 3220886709
x22 0x40000000 1073741824
x23 0xfffffffffbfbfbfb 18446744073642179579
x24 0x1 1
x25 0x4040404 67372036
x26 0xbe000000 3187671040
x27 0x3 3
x28 0xbf948b50 3214183248
x29 0xbf933690 3214096016
x30 0xbff45d80 3220462976
sp 0xbf933690 0xbf933690
pc 0xbff3b200 0xbff3b200
cpsr 0x800003c9 [ SP=1 EL=0 nRW=0 F I A D N ]
fpsr 0x0 0
fpcr 0x0 0
ELR_EL1 0x0 0x0
ESR_EL1 0x0 0
SPSR_EL1 0x0 0
ELR_EL2 0xbff3b200 0xbff3b200
ESR_EL2 0x96000044 2516582468
SPSR_EL2 0x800003c9 2147484617
ELR_EL3 0x0 0x0
ESR_EL3 0x0 0
SPSR_EL3 0x0 0

 

Best Regards,

Simon

0 Kudos
6 Replies

902 Views
igorpadykov
NXP Employee
NXP Employee

Hi Simon

 

reason may be improper memory settings, one can find optimal ones running ddr test

and updating image as described in MSCALE_DDR_Tool_User_Guide

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-8M-Family-DDR-Tool-Release/ta-p/110...

 

Best regards
igor

0 Kudos

894 Views
simonng
Contributor III

Hi Igor,

We already used the DDR Tool to run loop test of the Stress test. But no failure after many loops.

So we think it is not related to memory settings. Any other suggestions?

Regards,

Simon

0 Kudos

874 Views
simonng
Contributor III

Hi Igor,

Do you have any other suggestions on this case?

Best Regards,

Simon

0 Kudos

868 Views
igorpadykov
NXP Employee
NXP Employee

Hi Simon

 

please try to reproduce issue on i.MX8MQ EVK board.

 

Best regards
igor

0 Kudos

863 Views
simonng
Contributor III

Hi Igor,

We can reproduce the issue on the EVKB. The debug log I posted was captured from the EVKB. What information we can get from the below log?

(gdb) info reg
x0 0x2 2
x1 0xbffad2dd 3220886237
x2 0x5cc27dc8 1556250056
x3 0x4040000 67371008
x4 0xfffffffffffffb81 18446744073709550465
x5 0x10 16
x6 0xffffffd0 4294967248
x7 0x3 3
x8 0xbf9335f0 3214095856
x9 0x8 8
x10 0xffffffd0 4294967248
x11 0x6 6
x12 0x1869f 99999
x13 0xd 13
x14 0xc 12
x15 0xffffffff 4294967295
x16 0x1080 4224
x17 0x0 0
x18 0xbf939d70 3214122352
x19 0xbffd7000 3221057536
x20 0xbdfffff8 3187671032
x21 0xbffad4b5 3220886709
x22 0x40000000 1073741824
x23 0xfffffffffbfbfbfb 18446744073642179579
x24 0x1 1
x25 0x4040404 67372036
x26 0xbe000000 3187671040
x27 0x3 3
x28 0xbf948b50 3214183248
x29 0xbf933690 3214096016
x30 0xbff45d80 3220462976
sp 0xbf933690 0xbf933690
pc 0xbff3b200 0xbff3b200
cpsr 0x800003c9 [ SP=1 EL=0 nRW=0 F I A D N ]
fpsr 0x0 0
fpcr 0x0 0
ELR_EL1 0x0 0x0
ESR_EL1 0x0 0
SPSR_EL1 0x0 0
ELR_EL2 0xbff3b200 0xbff3b200
ESR_EL2 0x96000044 2516582468
SPSR_EL2 0x800003c9 2147484617
ELR_EL3 0x0 0x0
ESR_EL3 0x0 0
SPSR_EL3 0x0 0

Best Regards,

Simon

 

0 Kudos

858 Views
igorpadykov
NXP Employee
NXP Employee

please look at uboot mtest description:

"This command may crash the system when the tested memory range includes areas that are needed for the operation of the U-Boot firnware (like exception vector code, or U-Boot's internal program code, stack or heap memory areas). "

 

https://www.denx.de/wiki/publish/DULG/to-delete/UBootCmdGroupMemory.html

 

Best regards
igor

0 Kudos