
In message 9b7ca657050509040572e02726@mail.gmail.com you wrote:
Just wondering, does u-boot support periodical reset of watchdog timer
Yes, of course it does.
? If not, I suppose I have to disable the watchdog when I enter uboot in interactive mode, and probably enable it when I exit u-boot.
If your watchdog i worth it's money it comes up enabled after reset, and you can just disable it once and forever. A watchdog that can be switched of is not worth to be called by that name.
How does people normally do this ?
Have a look at the code.
Just out of curiosity, (assuming u-boot does not do something like above), can we do something similar to below code?
-=-=-=-=-=-=-=-=-=-=-=-=-=-= signal(SIGALRM, runme);
No, we cannot. U-boot is strictly single-tasking and has no notion of signals and the like. Also, your code makes no sense to me.
Best regards,
Wolfgang Denk