# Disabling Watchdog for Kernel Debugging

**URL:** <https://forums.developer.nvidia.com/t/disabling-watchdog-for-kernel-debugging/296530>\
**Category:** Jetson TX2\
**Tags:** debugging-and-troubleshooting, kernel\
**Created:** [June 14, 2024, 9:13pm UTC](https://forums.developer.nvidia.com/t/disabling-watchdog-for-kernel-debugging/296530 "2024-06-14T21:13:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![juanz459](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@juanz459](https://forums.developer.nvidia.com/u/juanz459)\
**Post date:** [June 14, 2024, 9:13pm UTC](https://forums.developer.nvidia.com/t/disabling-watchdog-for-kernel-debugging/296530/1 "2024-06-14T21:13:58Z")

</div>

Hi,

Is there a way to disable watchdog timer/reset on Jetson TX2? I was debugging the kernel module I have made and if I waited too long (ex. examining stack traces, symbols, registers), TX2 resets and this makes it almost impossible to debug my module. Any help is appreciated!

I tried to disable it by running the following command:

```auto
echo 1 > /sys/kernel/debug/30c0000.watchdog/disable_dbg_reset
echo 1 > /sys/kernel/debug/30c0000.watchdog/disable_por_reset

```

But this throws the following error:

```auto
-bash: echo: write error: Invalid argument

```

---

<div class="post-metadata">

**Author:** ![ShaneCCC](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/shaneccc/32/14043_2.png) [@ShaneCCC](https://forums.developer.nvidia.com/u/ShaneCCC)\
**Post date:** [June 18, 2024, 8:12am UTC](https://forums.developer.nvidia.com/t/disabling-watchdog-for-kernel-debugging/296530/3 "2024-06-18T08:12:49Z")

</div>

Try reference to below to implement user space APP for it.  
Or disable the kernel config to rebuild the kernel.

Thanks

---

<div class="post-metadata">

**Author:** ![juanz459](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@juanz459](https://forums.developer.nvidia.com/u/juanz459)\
**Post date:** [June 18, 2024, 10:35pm UTC](https://forums.developer.nvidia.com/t/disabling-watchdog-for-kernel-debugging/296530/4 "2024-06-18T22:35:05Z")

</div>

Try reference to below to implement user space APP for it.

- Can you link to a reference for me to see?

disable the kernel config to rebuild the kernel

- Completely disabling it makes the debugger not working…

---

<div class="post-metadata">

**Author:** ![ShaneCCC](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/shaneccc/32/14043_2.png) [@ShaneCCC](https://forums.developer.nvidia.com/u/ShaneCCC)\
**Post date:** [June 19, 2024, 5:55am UTC](https://forums.developer.nvidia.com/t/disabling-watchdog-for-kernel-debugging/296530/5 "2024-06-19T05:55:24Z")

</div>

Have a check below topic.

> [@Unable to stop watchdog jetson TX2](https://forums.developer.nvidia.com/t/unable-to-stop-watchdog-jetson-tx2/164322):
>
> Hi,I am setting watchdog timeout value after that that system is rebooting. so my use case is after setting watchdog timout i am stopping it, but not able to stop. I am getting below error :: watchdog: watchdog0: watchdog did not stop! can you please help what could be the issue.

---

<div class="post-metadata">

**Author:** ![juanz459](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@juanz459](https://forums.developer.nvidia.com/u/juanz459)\
**Post date:** [June 19, 2024, 9:54pm UTC](https://forums.developer.nvidia.com/t/disabling-watchdog-for-kernel-debugging/296530/6 "2024-06-19T21:54:02Z")

</div>

I already removed `CONFIG_WATCHDOG_NOWAYOUT` from my kernel config but the device still resets itself if you sit in the debugger for a long duration…

---

<div class="post-metadata">

**Author:** ![ShaneCCC](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/shaneccc/32/14043_2.png) [@ShaneCCC](https://forums.developer.nvidia.com/u/ShaneCCC)\
**Post date:** [June 24, 2024, 2:52am UTC](https://forums.developer.nvidia.com/t/disabling-watchdog-for-kernel-debugging/296530/7 "2024-06-24T02:52:26Z")

</div>

Write the APP to disable the WDT by IOCTL.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [July 17, 2024, 6:32am UTC](https://forums.developer.nvidia.com/t/disabling-watchdog-for-kernel-debugging/296530/9 "2024-07-17T06:32:22Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
