public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Ben Dooks <ben-linux@fluff.org>
To: Linut MTD <linux-mtd@lists.infradead.org>
Subject: loading cramfs initrd at startup
Date: Fri, 19 Sep 2008 18:51:27 +0100	[thread overview]
Message-ID: <20080919175127.GB4322@fluff.org.uk> (raw)

I am looking at a customer who's system loads an cramfs initrd
from /dev/mtdblock1 (NAND) via a hack that makes mtdblock map
out bad blocks so that the initrd loader does not see errors
during the load.

I was wondering if anyone had any comments about a better way
to do this without patching up drivers/mtd/mtdblock.c?

My initial thoughts are:

1) Add a configuration option to make mtdblock remove any defects
   from a specified parititon (fromalise the hack)

2) Add new block device, possibly named mtdcont which provides an
   read-only interface and a similar function to mtdblock but
   mapping out the defects.

3) Change the initrd loader to understand the block layout of the
   system and skip bad blocks during loading.

-- 
Ben (ben@fluff.org, http://www.fluff.org/)

  'a smiley only costs 4 bytes'

                 reply	other threads:[~2008-09-19 17:51 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=20080919175127.GB4322@fluff.org.uk \
    --to=ben-linux@fluff.org \
    --cc=linux-mtd@lists.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