I've noted the same. It's really bad when said SD card also happens to be the root filesystem... :X

-ziggy

On Thu, Sep 18, 2008 at 3:51 PM, William_mplx <william@mplx.co.uk> wrote:

I have a Verdex XL6P with a netwifimicroSD EU with a 4GB MicroSD card and a
Robostix, running Open Embedded 318 (also tested with 316) and I have
noticed that the log files I was writing to the Micro SD card were getting
corrupted (actually it was parts of the previous log file, which suggested
certain sectors weren't getting erased).

I subseqently tested copying an aproximately 300MB file at the command line
(incrementing a numerical suffix by one on each copy, then taking a checksum
of the file). To my amazement, the checksum did not match, further testing
showed that I could reliably get a checksum error after copying 1.5GB.

Assuming the card was faulty I

a) Replaced the card a second one (2GB and FAT16 rather than FAT32) and
repeated the tests -with the same results
b) Put the card in a reader attached to a laptop and repeated the test from
windows, with the result that the checksum matched every time.

Finally, in despair I created a buildroot image -1627 (and after much
cursing and head scratching realised that I was using a card formatted FAT32
and that Uboot doesn't do FAT32). I then repeated the file copy test with
the buildroot OS and lo and behold, the checksums haven't been wrong yet.

I went back and tried OE 316 and 318 (downloaded the minimal images), glibc
and uclibc and all gave corruption problems.

The only thing I can deduce from my testing is that OE has a problem with
handling SD cards? -Which seems pretty unlikely to me.

So... Does anyone have any ideas about how I can fix this? I really don't
want to have to go back to Buildroot.

--
William

william@mplx.co.uk
--
View this message in context: http://www.nabble.com/File-corruption-on-SD-card-with-OE-tp19561431p19561431.html
Sent from the Gumstix mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users