• Uncategorized

About linux : How-to-block-a-terminal-log-that-warns-imx2-wdt-20bc000wdog-Unexpected-close-Expect-reboot

Question Detail

When I stop my application that runs on Yocto (Linux), a message appears. When I want to write any command on the terminal, words get mixed up and I can not write.

The message that appears:

[21559.072859] imx2-wdt 20bc000.wdog: Unexpected close: Expect reboot!
[21564.086626] imx2-wdt 20bc000.wdog: Unexpected close: Expect reboot!
[21569.100662] imx2-wdt 20bc000.wdog: Unexpected close: Expect reboot!
[21574.114744] imx2-wdt 20bc000.wdog: Unexpected close: Expect reboot!
[21579.128754] imx2-wdt 20bc000.wdog: Unexpected close: Expect reboot!

How can I block this message?

Question Answer

The error message comes from the linux kernel watchdog.

A watchdog is basically a timer that periodically checks that system critical processes are running and resets the board if they stop, in your case the watchdog is trying to reboot the board but fails for some reason.

It seems that the application you’re trying to kill is actually monitored by the watchdog, either because it writes to /dev/watchdog or in the script used to launch the application at boot (which depends on the init system you use).

So, you should either check the code of the application and the init script, or disable the watchdog in the menu configuration options (chapter 2.11.7) before regenerating your system with yocto (not recommanded).

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.