2011-04-27 07:41:36     how to find the root cause of crash

Document created by Aaronwu Employee on Aug 26, 2013
Version 1Show Document
  • View in full screen mode

2011-04-27 07:41:36     how to find the root cause of crash

Emil Bart (POLAND)

Message: 100202   

 

Hello,

 

I have a custom board with blackfin processor BF536. For many years the u and my application was working without any problems, but we always used blackifn processor silicon revision 0.2. The problem appeared when we changed the BF silicon revision 0.2 to 0.3. The system started rebooting. We suppose that the problem is in kernel space because we tested our application well using valgrind and gdb on PC with linux OS and no problems were observed. The strange is thay I don't get any useful information (backtrace, hardware trace), no panic kernel, etc during crash via serial console. We decided to use JTAG (from www.section5.ch) to trace the problem. I'm able to debug the kernel. But I don't have any expierience in debugging the kernel using JTAG. Maybe somebody can give give the the advice where I should set the breakpoint (maybe in any exception handler) to trace the crash? Any other usefull advices how to catch the root of the problem are really welcome.

 

Emilbart

QuoteReplyEditDelete

 

 

2011-04-27 19:00:25     Re: how to find the root cause of crash

Mike Frysinger (UNITED STATES)

Message: 100215   

 

what version of software are you using exactly ?

 

when booting newer kernels, it should display the reason for the last reset.  so if it is the watchdog causing the system to reboot, the kernel should show something like:

Recovering from Watchdog event

QuoteReplyEditDelete

 

 

2011-04-28 04:13:42     Re: how to find the root cause of crash

Emil Bart (POLAND)

Message: 100242   

 

Mike,

 

Thanks for you reply. We use really quite old distro 06r2-5. We haven't switched to newer version because my employer don't want it saying that there are more urgent tasks.  Is it any way to figure out why the system reboots (crashes) using jtag or other way ?

 

Emilbart

QuoteReplyEditDelete

 

 

2011-04-28 06:36:05     Re: how to find the root cause of crash

Mike Frysinger (UNITED STATES)

Message: 100247   

 

read the SWRST MMR at power on

 

there have been many random core Blackfin arch fixes since 2006R2 ...

QuoteReplyEditDelete

 

 

2011-04-29 08:15:34     Re: how to find the root cause of crash

Emil Bart (POLAND)

Message: 100293   

 

Mike, Thank you  for help.

 

It turned out that the problem was in the hardware not in the kernel.

Attachments

    Outcomes