How to Disable Watchdog on SABRE-SD?

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

How to Disable Watchdog on SABRE-SD?

Jump to solution
2,107 Views
carsongreen
Contributor I

I have been trying to use KGDB with the SABRE-SD in order to debug a driver. It seems to be working but once I drop into KGDB the SABRE-SD board resets after about five seconds. I expect this is due to a watchdog timer expiring now that the kernel is not petting the dog. What is the easiest way to disable the watchdog timer or enable KGDB to resest it periodically while the kernel is halted?

I'm using Android JB4.3 from Freescale.

Thanks,

Carson

Labels (1)
0 Kudos
1 Solution
777 Views
igorpadykov
NXP Employee
NXP Employee

Hi Carson,

once enabled watchdog can not be disabled. So one needs

to rebuild sources, procedure is described in i.MX_6Dual6Quad_Linux_Reference_Manual.pdf

Chapter 43 Watchdog (WDOG) Driver :

use the ./ltib -c

command when located in the <ltib dir>. On the screen displayed, select Configure the

Kernel and exit. When the next screen appears, select the following option to enable this

module:

• CONFIG_IMX2_WDT-Enables Watchdog timer module. This option is available

under Device Drivers > Watchdog Timer Support > IMX2+ Watchdog.

or just comment function imx6q_add_imx2_wdt (board-mx6q_sabresd.c)

Otherwise seems there is no other option as to pet the dog manually. :smileywink:

View solution in original post

0 Kudos
1 Reply
778 Views
igorpadykov
NXP Employee
NXP Employee

Hi Carson,

once enabled watchdog can not be disabled. So one needs

to rebuild sources, procedure is described in i.MX_6Dual6Quad_Linux_Reference_Manual.pdf

Chapter 43 Watchdog (WDOG) Driver :

use the ./ltib -c

command when located in the <ltib dir>. On the screen displayed, select Configure the

Kernel and exit. When the next screen appears, select the following option to enable this

module:

• CONFIG_IMX2_WDT-Enables Watchdog timer module. This option is available

under Device Drivers > Watchdog Timer Support > IMX2+ Watchdog.

or just comment function imx6q_add_imx2_wdt (board-mx6q_sabresd.c)

Otherwise seems there is no other option as to pet the dog manually. :smileywink:

0 Kudos