public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Michael Stumpf <michaelstumpf@yahoo.com>
To: Livio Plos <livioplos@bigfoot.com>
Cc: mtd@infradead.org
Subject: Re: howto
Date: Wed, 10 Jan 2001 14:15:33 -0800 (PST)	[thread overview]
Message-ID: <20010110221533.7759.qmail@web2106.mail.yahoo.com> (raw)


Sorry for the slow response; been on vacation.

> Can I boot totally from flash without any other storage support?

I'm doing some work requiring precisely this--flash chips, preprogrammed,
intended to boot linux with a read-only filesystem, preferrably compressed,
from a well-known ROM address.

I originally hacked up mtdram.c to do what has already been done, quite
elegantly infact..

There is a patch out there somewhere (search this list, if you can't find it,
let me know and I'll get it to you.) that adds a block device to the kernel
called "/dev/rom".. it has two modes of operation:

1)  Encodes the binary filesystem image and compiles it directly into the
kernel, bloating its final size

or 2)  Allow you to point it to a "well known" memory address that has (this is
unclear) 4 bytes containing the filesystem size (in bytes), 4 bytes of "00",
and then the filesystem image, whatever that may be.  I use cramfs with great
success on a very memory-constrained target.
 
> Is there any howto or high level docs to configure and compile?

Patch it in, enable it in config, refer to above notes.  Let me know if you're
still lost.

Regards,
Michael


=====
=====================================================================
Michael J. Stumpf                              
LinuxPPC enablement
IBM-Austin, TX     512.838.1524 [lab]  512.838.5335 [work]   
http://www.pobox.com/~mstumpf

__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/


To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

             reply	other threads:[~2001-01-10 22:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-10 22:15 Michael Stumpf [this message]
2001-01-11 18:58 ` howto Bjorn Wesen
  -- strict thread matches above, loose matches on Subject: below --
2001-01-04 17:48 howto Livio Plos
2001-01-04 17:57 ` howto David Woodhouse

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=20010110221533.7759.qmail@web2106.mail.yahoo.com \
    --to=michaelstumpf@yahoo.com \
    --cc=livioplos@bigfoot.com \
    --cc=mstumpf@pobox.com \
    --cc=mtd@infradead.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