Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: Yashwant Shitoot <yshitoot@stellartec.com>
Cc: linux-mips@linux-mips.org
Subject: Re: Strange Behavior - help
Date: Thu, 6 May 2004 19:33:41 +0200	[thread overview]
Message-ID: <20040506173341.GA23488@linux-mips.org> (raw)
In-Reply-To: <7F5F67B895426C40AC75B8290421C23915CE57@Exchange.stellartec.com>

On Thu, May 06, 2004 at 10:19:43AM -0700, Yashwant Shitoot wrote:

> Hello Friends,

Allright, dinner on you ;-)

> My root file system and linux is in rom (flash). The linux itself runs
> out of ram. When I reprogram the rom, I erase and write a new image of
> the rom from a compact flash card. After the new image is programmed in
> the function fclose() hangs up, implying that fclose() is rom resident
> and loaded as needed. Does this make sense ?

Demand loading that is the binary will be paged in from backing store
(which is your ROM) as needed.

> Remember even after erasing the rom fopen() works fine.

Linux may at any time deciede to discard a page of memory.  It does so
when it think it has a better use for that memory.

Rewriting the underlying device of any filesystem is not a safe thing to
do.  A possible safe approach would be running from a ramdisk, for example.

  Ralf

      parent reply	other threads:[~2004-05-06 17:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-06 17:19 Strange Behavior - help Yashwant Shitoot
2004-05-06 17:19 ` Yashwant Shitoot
2004-05-06 17:33 ` Ralf Baechle [this message]

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=20040506173341.GA23488@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=linux-mips@linux-mips.org \
    --cc=yshitoot@stellartec.com \
    /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