linux-config.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Stern, Eli" <eli.stern@ti.com>
To: "linux-config@vger.kernel.org" <linux-config@vger.kernel.org>
Subject: How to get Root filesystem on PHRAM
Date: Thu, 11 Feb 2010 11:35:11 +0100	[thread overview]
Message-ID: <AC090B9732AB2B4DB7FF476E907FE660E4C19437@dnce02.ent.ti.com> (raw)

I would like to have my root file system reside on a PHRAM.
Reason: Embedded Linux. This way I can download the file system into RAM, without burning it into Flash. This saves time. I know there are other ways, e.g. Ramdisk, but this will require creating and maintaining several types of images. The phram solution allows using the same image that is burned into Flash.

I tried to create a phram by adding the following to the kernel command line : 
    phram.phram=RAM0,0x83800000,8Mi
Then use it in the mtdparts :
    mtdparts=RAM0:0xcfb48@0x7f1cb8(Kernel)ro,0x21dc00(RootFileSystem)ro...

The result is:
    phram: out of memory

Looking at phram.c, seems phram_setup() attempts to kmalloc(), and it is probably too early in the startup sequence.

Is there a way to delay creation of the phram to a stage where kmalloc() is allowed?
On the other hand, is there a way to configure so my phram is always created (at the allowed time) regardless of the command line?

Thanx

Eli Stern


                 reply	other threads:[~2010-02-11 10:35 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=AC090B9732AB2B4DB7FF476E907FE660E4C19437@dnce02.ent.ti.com \
    --to=eli.stern@ti.com \
    --cc=linux-config@vger.kernel.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 read-only IMAP folder(s) and NNTP newsgroup(s).