From: Steven Scholz <steven.scholz@imc-berlin.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] "date reset" for MPC8xx
Date: Mon, 14 Apr 2003 15:16:50 +0200 [thread overview]
Message-ID: <3E9AB4C2.6020500@imc-berlin.de> (raw)
Hi there,
I think would should realy reset the MPC8xx's internal RTC when
calling "date reset" or "rtc_reset" instead of "nothing to do".
Please find and consider the attached patch.
Background:
I have seen it several times, that the MPC8xx's internal RTC contains
an invalid date, e.g. negative times (caused by no or low battery).
That might result in dates before 1970-01-01 under Linux and that in
turn confuses timeouts.
I've seen that udhcpc (from busybox) hangs in such cases!
For that reason u-boot should check for valid dates and do a
rtc_reset() if nessesary.
Thanks,
Steven
---------
CHANGELOG:
* Patch by Steven Scholz, 14 Apr 2003:
- reset_rtc() sets MPC8xx internal RTC back to 1970-01-01
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mpc8xx_rtc.patch
Url: http://lists.denx.de/pipermail/u-boot/attachments/20030414/688eb3bf/attachment.txt
next reply other threads:[~2003-04-14 13:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-14 13:16 Steven Scholz [this message]
2003-04-14 13:41 ` [U-Boot-Users] "date reset" for MPC8xx Wolfgang Denk
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=3E9AB4C2.6020500@imc-berlin.de \
--to=steven.scholz@imc-berlin.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.