From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17917 invoked by alias); 15 Jul 2009 09:47:43 -0000 Received: (qmail 17906 invoked by uid 22791); 15 Jul 2009 09:47:42 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 15 Jul 2009 09:47:33 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id EC475151BE49; Wed, 15 Jul 2009 10:47:30 +0100 (BST) Received: from mail.ecoscentric.com ([127.0.0.1]) by localhost (hagrid.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zxFlN+RmjdDr; Wed, 15 Jul 2009 10:47:29 +0100 (BST) Received: by stef.ammanford.ecoscentric.com (Postfix, from userid 507) id 664A02B0100; Wed, 15 Jul 2009 10:47:29 +0100 (BST) Date: Wed, 15 Jul 2009 09:47:00 -0000 From: Daniel Morris To: Stanislav Meduna Cc: eCos Discussion Message-ID: <20090715094729.GB32699@stef.ammanford.ecoscentric.com> References: <4A5D953B.4010408@meduna.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A5D953B.4010408@meduna.org> X-GPG-Key: http://www.ecoscentric.com/~danielm/pubkey.asc X-GPG-Key-Id: 29DE0A66 X-GPG-Fingerprint: 7A3E D1F1 1189 3002 E862 3A30 ACBE 158E 29DE 0A66 User-Agent: Mutt/1.5.17 (2007-11-01) 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] jffs2 questions X-SW-Source: 2009-07/txt/msg00123.txt.bz2 On Wed, Jul 15, 2009 at 10:37:15AM +0200, Stanislav Meduna wrote: > Hi, > > I am trying to use a JFFS2 filesystem in a serial dataflash > device. I encountered the jffs2_open hanging mysteriously, > so I started to investigate. > > 1) Reinitializing the filesystem resolved the hang. > Is it possible that a corrupted filesystem (never > unmounted in these tests, just powered down) > causes the jffs to mount, but not open a file? From > what I have read the unclean unmount should not cause > this. > > 2) What is the stack usage of jffs2? Is it upper-bounded, > or could it depend on the filesystem data? Is there > an upper limit? > > 3) If I understand this correctly, jffs2 does not like > small writes. I need to write a logfile into a flash - > not too often (life of the flash is not an issue), > but in small chunks. I thought I should use > CONFIG_JFFS2_FS_WRITEBUFFER defined by CYGOPT_FS_JFFS2_NAND; > however, the CDL states > requires 0 > and I can not enable this. Huh? > > 4) CDL for CYGOPT_FS_JFFS2_GSTHREAD states > Leave this off till it's been implemented. And don't > implement it till icache locking has been made thread-safe. > > http://www.ecoscentric.com/ecospro/doc.cgi/html/ecospro-ref/fs-jffs2-usage.html > just explains what it is and how it can be used. Does this > mean that the eCosCentric version has other code than > is in the CVS, or is just the CDL documentation obsolete? > Yes, jffs2 in eCosPro has a number of enhancements, including additions to satisfy US/DoD Homeland Security mandated requirements. Daniel %<---------------------------------------------------------------------- Daniel Morris - Sales & Marketing Director eCosCentric - The eCos and RedBoot experts Tel: +44 1223 245 571 - info@eCosCentric.com DDI: +44 1269 591 171 - danielm@eCosCentric.com -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss