imx8mm : Getting Kernel Panic

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

imx8mm : Getting Kernel Panic

Jump to solution
1,727 Views
santhosh2
Contributor IV

Hello,

I am getting a kernel panic message after that the processor hangs and the only way to recover is to do a power on reset. Is there any other way that once kernel panic happens the processor reboots automatically?

 

Regards

Santhosh

0 Kudos
Reply
1 Solution
1,707 Views
igorpadykov
NXP Employee
NXP Employee

Hi Santhosh

 

in general wdog can be used in such situations, it can reset pmic and all board,

example can be found in i.MX8M Mini EVK design

https://www.nxp.com/design/development-boards/i-mx-evaluation-and-development-boards/evaluation-kit-...

 

Best regards
igor

View solution in original post

0 Kudos
Reply
2 Replies
1,708 Views
igorpadykov
NXP Employee
NXP Employee

Hi Santhosh

 

in general wdog can be used in such situations, it can reset pmic and all board,

example can be found in i.MX8M Mini EVK design

https://www.nxp.com/design/development-boards/i-mx-evaluation-and-development-boards/evaluation-kit-...

 

Best regards
igor

0 Kudos
Reply
1,702 Views
santhosh2
Contributor IV

Thanks,

Link: https://www.techrepublic.com/blog/linux-and-open-source/auto-reboot-linux-after-a-kernel-panic/

I also configured Linux to automatically reboot on a kernel panic by making a small modification to /etc/sysctl.conf,

Add the following to /etc/sysctl.conf:

kernel.panic = 20

This tells the kernel that if it encounters a panic, it is to reboot the system after a 20 second delay. By default, the kernel will never reboot when it encounters a panic, but with the above setting you can force it to.

 

Regards

Santhosh

0 Kudos
Reply