which is the best root File system in embed linux system?
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 3 lines · In message <[email protected]> you wrote:
Because our board will be turned on and off frequently, so I think "high stability" is the important, and a R/W file system is prefer selection too! Another performances such as speed of booting is not the focus!
How about speed when accessing (especially reading) files? What about memory footprint?
Quoted 1 line
Now our system can runs ok, I use EXT2 FS as the root file system build in a 32M DOC2000, but it seems it's unstable!
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?
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.
Quoted 1 line
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.
Quoted 2 lines
I have serval questions want to be confirmed:
1. Whether the DOC2000 is unstable?
NO. It is working perfectly fine in many applications.
Quoted 1 line
2. Can I build a EXT2 FS in flash?
Yes, you can. Both in flash memory and on a DOC device. BUt you have to be aware of the restrictions (i. e. ext2 requires to be unmounted before shutdown, and it does not implement any wear levelling which may be useful on writable flash filesystems).
Quoted 1 line
3. How to avoid the file system crash in embed linux system?
Don't do things which are outside of the specifications of the software.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] "I like your game but we have to change the rules."
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 5 lines · Wolfgang Denk
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.
Quoted 5 lines
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.
Quoted 4 lines
Quoted 2 lines
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/
Dear David,
Quoted 5 lines · in message <[email protected]> you wrote:
Quoted 2 lines
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
Neither do I. My "mis-use" only referred to the fact of using an ext2 filesystem in a system where powerfails are expected to happen.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] Life would be so much easier if we could just look at the source
code. -- Dave Olson
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 2 lines · Wolfgang Denk
Neither do I. My "mis-use" only referred to the fact of using an ext2 filesystem in a system where powerfails are expected to happen.
OK, that makes sense but I'd have called it 'misdesign' :)
--
dwmw2
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/