From: Fisherss <fisherssml@gmail.com>
To: linuxppc-embedded@ozlabs.org
Subject: CPIO image date problem
Date: Tue, 7 Oct 2008 13:15:17 +0800 [thread overview]
Message-ID: <25fd1f750810062215q7f33664eo99908ab7dd26f502@mail.gmail.com> (raw)
Hi all
I have a weird problem on MPC8548E with Linux Kernel 2.6.24:
I use a CPIO image as my embedded system's root file system, but after
booting, all files and directories' "date" attribute are set to "Jan
1, 1970".
Now what I have got is:
====================
U-boot and the cpio image are cleared. The roofs(cpio image) is loaded
by Linux Kernel, not U-boot, and the image itself has successfully
passed test, so we suppose the problem is in Linux Kernel.
The Kernel loading sequence is : time_init() -> cpio image loading ->
RTC driver loading
That means, at the cpio image loading time, we don't have the RTC
driver. In fact, Kernel uses the time_base register instead of RTC(at
least at this time). All standard cpio images contain the "date" file
attribute, but seems like Kernel just ignores it and uses its own
"clock source"(and this clock source should be binded to time_base
register).
I have located the cpio image unpacking code in Kernel, but can not
find anything about date attribute. This part of code is
platform-independent.
Anyone any idea ??
Thanks
--
Fisherss
fisherss@gmail.com
reply other threads:[~2008-10-07 5:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=25fd1f750810062215q7f33664eo99908ab7dd26f502@mail.gmail.com \
--to=fisherssml@gmail.com \
--cc=linuxppc-embedded@ozlabs.org \
/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;
as well as URLs for NNTP newsgroup(s).