From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17683 invoked by alias); 21 Jan 2009 16:12:26 -0000 Received: (qmail 17675 invoked by uid 22791); 21 Jan 2009 16:12:26 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mgcp1.bloomberg.com (HELO mgcp1.bloomberg.com) (208.22.56.39) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 21 Jan 2009 16:12:21 +0000 Received: from ny1520.bloomberg.com ([10.16.11.97]) by mgcp1.bloomberg.com with ESMTP; 21 Jan 2009 11:14:31 -0500 Received: from NY2528-DR.corp.bloomberg.com (smtp.corp.bloomberg.com [10.14.21.30]) by ny1520.bloomberg.com (8.14.1/8.14.1) with ESMTP id n0LGCDSL013408; Wed, 21 Jan 2009 11:12:13 -0500 Received: from ny2545.corp.bloomberg.com ([172.20.73.98]) by NY2528-DR.corp.bloomberg.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 21 Jan 2009 11:12:13 -0500 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Date: Wed, 21 Jan 2009 16:12:00 -0000 Message-ID: In-Reply-To: <000c01c97bd2$54008a80$fc019f80$@com> References: <555EEEF90D6A464193A4558107108CF9C73BA1@exbm.aftekpune.com> <000301c97b08$838535f0$8a8fa1d0$@com> <20090120143048.GA15884@lunn.ch> <4975E372.3060506@cs.vu.nl> <000901c97b11$b124cfd0$136e6f70$@com> <4975F117.1040709@cs.vu.nl> <49772B08.5000203@cs.vu.nl> <000c01c97bd2$54008a80$fc019f80$@com> From: "Chris Zimman" To: "Himanshu Patel" Cc: "eCos Discuss" X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: RE: [ECOS] FAT32 over NAND X-SW-Source: 2009-01/txt/msg00109.txt.bz2 > This will be raw NAND flash. >=20 > There are two ways we want to access file system written on NAND flash: > 1 Through PC > PC will make use of the file system using mass storage driver. > 2 Through device itself > Device (uC) should be able to access read/write files from NAND > flash. >=20 > Hope I have given the answers you are looking at. If not please free to > ask. As pointed out yesterday, if you try to treat this as a removable mass storage device you will need to make=20 sure that these two things don't happen at the same time (eg. device *must* be unmounted from Windows -- or=20 Linux or OSX or whatever) using FAT or you are going to end up in trouble. Even read-only from the device=20 side won't always work reliably since PC operating systems generally cache access to the file system and do=20 the writes batched. If you can assure that Windows (or whatever) and the uC never access the device at the same time (I don't=20 mean protecting via a mutex or something like that), I mean the uC never accesses the file system while the=20 device is connected to a PC) then you can probably get away with this. If not, the FAT32 solution is not=20 going to work well. --Chris -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss