Question on the fs choice

2 messages, 2 authors, 2004-05-21 · open the first message on its own page

Question on the fs choice

From: Zajac Adam-AAZ004 <hidden>
Date: 2004-05-11 23:20:06

Hello,

We've built a custom board based on MPC8540 that runs Linux OS and utilizes
compact flash card to store the kernel on a raw-data partition (read-only)
and root file system on an Ext2 partition (read-write). As Ext2 is not a
journaling FS, in case of any power failure the file system is not cleanly
unmounted and the fscheck complains upon a system start-up.
Also, sometimes the file system partition gets corrupted when we power-cycle
the card instead of shutting the system down gracefully (the card is build
to be "hot-swappable" so we test it on purpose).

I saw Wolfgang Denx's post discouraging any use of the CF cards for an
embedded platform where write operations are performed under power-failure
prone environment. Unfortunately, this is the reality we're facing on our
card.

I'm seeking some help with selecting the file system that would survive
power failure if the CF card didn't get damaged during a write cycle (we're
gonna perform a thorough testing to assess the severity of that issue).

I've seen some articles suggesting one of the journaling systems, like Ext3,
XFS or ReiserFS.

Has anybody successfully implemented any of these FS systems on an embedded
platform equipped with a compact flash card working as a main storage
medium?

Any help would be greatly appreciated.

Adam Zajac
Motorola Inc, Global Telecom Solutions Sector
5555 N Beach St, Mailstop 8E, Fort Worth, TX 76137-2794
Phone: (817) 245-7963


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

Re: Question on the fs choice

From: David Gardiner <hidden>
Date: 2004-05-21 01:39:57

Sorry for the late post thought I'd just add my experiences which seem
to reflect the general discussion, and hopefully gain some more
Has anybody successfully implemented any of these FS systems on an embedded
platform equipped with a compact flash card working as a main storage
medium?
Yes, not successfully yet though,

platform: mvme5100

ide controller: promise pmc
ide 0000:03:03.0 Unknown mass storage controller: Promise Technology,
Inc. 20269 (rev 02) (prog-if 85)
        Subsystem: Promise Technology, Inc. Ultra133TX2
        Flags: bus master, 66MHz, slow devsel, latency 128, IRQ 28
        I/O ports at 774fb8 [size=8]
        I/O ports at 774fb4 [size=4]
        I/O ports at 774fa8 [size=8]
        I/O ports at 774fa4 [size=4]
        I/O ports at 774f90 [size=16]
        Memory at f36fc000 (32-bit, non-prefetchable) [size=16K]
        Expansion ROM at <unassigned> [disabled] [size=16K]
        Capabilities: <available only to root>

compact flash: SanDisk SDCFB-512

dmesg:
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PDC20269: IDE controller at PCI slot 03:03.0
PDC20269: chipset revision 2
PDC20269: not 100% native mode: will probe irqs later
    ide2: BM-DMA at 0x774f90-0x774f97, BIOS settings: hde:pio, hdf:pio
    ide3: BM-DMA at 0x774f98-0x774f9f, BIOS settings: hdg:pio, hdh:pio
Probing IDE interface ide2...
hde: SanDisk SDCFB-512, CFA DISK drive
blk: queue c01d7d70, I/O limit 4095Mb (mask 0xffffffff)
Probing IDE interface ide3...
ide2 at 0x774fb8-0x774fbf,0x774fb6 on irq 28
hde: attached ide-disk driver.
hde: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error }
hde: task_no_data_intr: error=0x04 { DriveStatusError }
hde: 1000944 sectors (512 MB) w/1KiB Cache, CHS=993/16/63, BUG
Partition check:
 /dev/ide/host2/bus0/target0/lun0:hde: dma_intr: status=0x51 {
DriveReady SeekComplete Error }
hde: dma_intr: error=0x04 { DriveStatusError }
hde: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hde: dma_intr: error=0x04 { DriveStatusError }
hde: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hde: dma_intr: error=0x04 { DriveStatusError }
hde: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hde: dma_intr: error=0x04 { DriveStatusError }
hde: DMA disabled
PDC202XX: Primary channel reset.
ide2: reset: success
 p1 p2


The Compact Flash works fine as long (if you can ignore the errors, like
above) as it's mounted read only through power failures, resets ....,
but if it's mounted rw a corrupted disk (a repartition "usually" fixes
this) can be the result after resets, power failures .....
I haven't had much time to spend on testing this but may have in the
near future, any suggestions on how I can get rid of the "hde:" errors
would be greatly appreciated, as it's probably obvious to some, but not
me ....

Ta,
dg

ps: Adam hope this helps


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help