linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: which is the best root File system in embed linux system?
@ 2004-04-23  1:42 jeffy
  0 siblings, 0 replies; 5+ messages in thread
From: jeffy @ 2004-04-23  1:42 UTC (permalink / raw)
  To: Wolfgang Denk; +Cc: linuxppc-embedded@lists.linuxppc


>In message <20040422154403.6452042E2F@denx.de> you wrote:
>>
>> I have not measure the speed of accessing files, so have not the
>> exact concept:)
>
>Then go back one step: before using any software, start by writing down
>the requirements and specifications.
>
>> Now the EXT2 FS is about 13MB(whithout any applications), maybe it is
>> too biger?
>
>No, this is not the problem.
>
>> Oh, I am sorry that not write the detail! Now we have two kind of
>> 8XX boards, one is MPC855T board, and for low cost, we developed
>> MPC852T, one use 32M DOC, another use 8MB+512KB flash. I have success
>> building a EXT2 FS on DOC, and a JFFS2 FS on flash, but they all
>> seems unstable when turn off/on power frequently, so I am worry now,
>> and I want to know what bring on these unstable problems, our design
>> problems or DOC/FS inherent bugs?
>
>Assuming you use recent MTD and JFFS2 code, then JFFS2 should be
>absolutely stable on the 8MB flash system.
>
>As for ext2 on DOC: this is bounmd to fail, as ext2 was not designed
>to be used in a mode where sudden power-of without previous umount can
>occur.
>
>> Oh..., because turn off the power through hardware power switch, so
>> don't remount the file system!
>
>This is your problem. You cannot use ext2 for such a system, then.

Thanks a lot:)

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: Re: Re: which is the best root File system in embed linux system?
@ 2004-05-02  7:42 David Woodhouse
  2004-05-02  9:20 ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: David Woodhouse @ 2004-05-02  7:42 UTC (permalink / raw)
  To: Wolfgang Denk; +Cc: jeffy, linuxppc-embedded@lists.linuxppc


On Thu, 2004-04-22 at 11:39 +0200, Wolfgang Denk wrote:
> You asked adbout a filesystem for flash before - this is NOT the same
> as DOC or  even  CompacfFlash,  as  these  devices  use  an  internal
> controller  which  may  perfom certain operations like wear levelling
> etc. So what do you want  to  know  -  filesystems  for  plain  flash
> memory, or for DOC?

Er, no. The DiskOnChip 2000 does not have an internal controller like
that. Its ASIC is basically just a FIFO and some hardware ECC support.
The host system gets access directly to the NAND flash, and we can do
what we like with it. That includes using JFFS2/NAND on it.

Normally, however, people use the same 'Translation Layer' as is used
under DOS (presumably because it's easier to provide an INT 13h handler
under DOS than to provide a proper file system). This is a kind of
pseudo-filesystem which operates directly on the NAND flash and pretends
to be a block device. You then put a 'normal' file system on top of
that. (I've ranted about how pointless and stupid and inefficient this
gratuitous extra layer is before; I can't be bothered to repeat myself
here.)

Don't use JFFS2 on the existing DiskOnChip hardware driver; in MTD CVS
there's a new DiskOnChip driver which uses the generic NAND code,
although I haven't yet done the hardware ECC support (we use software
ecc) or the support for their bad block table (we use the standard
layout instead). Those things are easy enough to fix up if you want to,
but I just haven't got round to it yet. I've had it working with DMA on
systems with a sufficiently versatile DMA engine too.

The DiskOnModule has a more complicated controller and is as you
suggest; likewise the DiskOnKey. Those are like CompactFlash and what
you say is true there. Using ext3, the inefficiency
journalling-on-journalling is just the same as with ext3 on a
translation layer implemented on the host system -- it's just that you
get to think about it a little less so it _may_ offend you less.

> The ext2 filesystem is extremley well tested and can be considered to
> be very stable. Howebver, it was not designed to  be  used  like  you
> attempt  to  do - i. e. just powering off the device. You must always
> unmount an ext2 filesystem  (or  at  least  remount  it  read-only_)_
> before shutting doen the system.

The failure mode described seemed a little worse than one might
reasonably expect from ext2 alone. It could be the result of a bug in
our NFTL 'translation layer' code, which really should be capable of
retaining its state over power failure and treating 512-byte sector
writes as 'atomic' by means of its own internal journalling.

More details would be useful.

> > In any time when the linux is starting, you turn off the power,
> > maybe the root file system will crash!
>
> Yes, this is the logical consequence of your mis-use.

For many classes of embedded system I don't consider unannounced power
failure to be 'mis-use'. That's why we run powerfail tests on JFFS2 and
that's why it can even cope with the bizarre things which happen if you
power off a flash chip in the middle of an erase while bits _appear_ to
be erased but are in fact going to suddenly change state when you write
to the other bits near them.

If you can get JFFS2 to confuse itself on power failure, even if you're
doing it by automatically cycling power every five minutes while running
file system stress tests, I'd like to know about it. Assuming you're
using the current JFFS2 code, that is.

--
dwmw2


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread
* which is the best root File system in embed linux system?
@ 2004-04-21 15:32 leo
  2004-04-21 17:00 ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: leo @ 2004-04-21 15:32 UTC (permalink / raw)
  To: linuxppc-embedded


Hi,
MPC852T target board with 8MB flash, which kind foot file system is the
best selection among of:
1. Cramfs
2. EXT2
3. JFFS2
4. RAMDISK

Thanks advance!

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-05-02  9:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-23  1:42 which is the best root File system in embed linux system? jeffy
  -- strict thread matches above, loose matches on Subject: below --
2004-05-02  7:42 Re: " David Woodhouse
2004-05-02  9:20 ` Wolfgang Denk
2004-05-02  9:28   ` David Woodhouse
2004-04-21 15:32 leo
2004-04-21 17:00 ` Wolfgang Denk

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 NNTP newsgroup(s).