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
Solved! Go to Solution.
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:
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: