public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: "David Given" <dg@tao-group.com>
Cc: mtd@infradead.org
Subject: Re: CFI detection of x16 chips in x8 mode
Date: Thu, 14 Sep 2000 16:20:47 +0100	[thread overview]
Message-ID: <22135.968944847@passion.cygnus.co.uk> (raw)
In-Reply-To: <E13Zaaa-0004Dk-00@pearl.tao.co.uk>


dg@tao-group.com said:
>  How does jffs work? Erasing a single sector seems to take quite a
> while on  this device. How does jffs manage to be so fast?

You don't have to make the user wait while you erase a sector. You can do 
it from a kernel thread in the background, and make sure you've always got 
some space available

You can also interrupt erases on some flash chips, and read from the
filesystem even while you're waiting from an erase. We don't do that yet, 
but it's close.

> I believe it ought to be possible to persuade FlashFX to share a
> device with  jffs. The way you'd do this is to use FXFMT to create a
> VBF volume that only  uses, say, half the device. You'd then have to
> modify the partition table in  sbc_mediagx.c to reflect this; you'd
> have three partitions: the boot partition  (256kB); the VBF volume
> (8MB); and everything else (8MB). jffs would live in  /dev/mtd/3. This
> ought to let you boot DOS on the VBF volume and then use LILO  or
> loadlin to start Linux.

Theoretically possible. Probably better to get it to boot off the JFFS 
directly though, if you can. It'd be nice if someone with the source to the 
flashfx stuff could release a version which works on MTD devices.

> However, there has *got* to be some better way of handling
> partitions... the  Arcom board seems to have a 256kB block at the
> beginning of the flash for ROM  extensions, so it would make sense to
> have that as one partition. For the  rest, it would seem logical that
> since FlashFX can find the VBF volume, so  could we, and so we should
> be able to autodetect it. But does anyone know how?

Not easy to do this in a generic manner, and deal with all possible schemes 
for splitting the devices up.


--
dwmw2




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

  reply	other threads:[~2000-09-14 15:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-14 14:02 CFI detection of x16 chips in x8 mode David Vrabel
2000-09-14 15:06 ` David Given
2000-09-14 15:20   ` David Woodhouse [this message]
2000-09-14 15:30     ` Kira Brown
2000-09-14 16:45     ` David Given
2000-09-14 17:28       ` Alex J Lennon

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=22135.968944847@passion.cygnus.co.uk \
    --to=dwmw2@infradead.org \
    --cc=dg@tao-group.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