From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Watchdog and u-boot command prompt
Date: Wed, 14 Jan 2009 17:00:13 +0100 [thread overview]
Message-ID: <20090114160013.85022832E425@gemini.denx.de> (raw)
In-Reply-To: <73FA539107892C4C8C7A5ACA10C161C85BE0E6@MX2.AlphionCorp.local>
Dear Sachin,
In message <73FA539107892C4C8C7A5ACA10C161C85BE0E6@MX2.AlphionCorp.local> you wrote:
>
> In the file 'include/watchdog.h', it has been mentioned that:
> 8<----------------------------------------------------------
> #if defined(CONFIG_HW_WATCHDOG) && defined(CONFIG_WATCHDOG)
> #error "Configuration error: CONFIG_HW_WATCHDOG and CONFIG_WATCHDOG
> can't be used together."
> #endif
> ---------------------------------------------------------->8
>
> It means I can't enable flags CONFIG_HW_WATCHDOG & CONFIG_WATCHDOG
> together.
> Am I right?
Yes, you are reading the C code correctly.
> I want to use Software version of Watchdog (CONFIG_WATCHDOG).
There is no such thing as a "Software version of Watchdog" in U-Boot.
CONFIG_WATCHDOG is exlained in the README. It refers to a platform
specific watchdog that is part of the processor itself.
CONFIG_HW_WATCHDOG (I admit that the name is a bit misleading) refers
to using an external watchdowg, i. e. implemented using (additional)
hardware.
> If yes then what make the Watchdog resets inside 'serial_getc_dev()'
> while the code is being being executed in infinite loop.
> (The loop appears infinite if user doesn't press any key)
Nothing... Seems you spotted a potential problem. Potential, as so
far no 4xx system uses CONFIG_WATCHDOG.
I suggest you submit a patch?
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
It is common sense to take a method and try it. If it fails, admit it
frankly and try another. But above all, try something.
- Franklin D. Roosevelt
next prev parent reply other threads:[~2009-01-14 16:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-12 16:20 [U-Boot] Watchdog and u-boot command prompt Sachin Rane
2009-01-12 19:13 ` Wolfgang Denk
2009-01-13 7:45 ` Sachin Rane
2009-01-13 21:31 ` Wolfgang Denk
2009-01-14 6:40 ` Sachin Rane
2009-01-14 11:39 ` Mike Frysinger
2009-01-14 16:01 ` Wolfgang Denk
2009-01-14 16:37 ` Mike Frysinger
2009-01-14 22:40 ` Wolfgang Denk
2009-01-15 2:27 ` Mike Frysinger
2009-01-14 16:00 ` Wolfgang Denk [this message]
2009-01-15 13:14 ` Sachin Rane
2009-01-23 10:37 ` Sachin Rane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090114160013.85022832E425@gemini.denx.de \
--to=wd@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox