From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29314 invoked by alias); 14 Jun 2007 22:02:19 -0000 Received: (qmail 29302 invoked by uid 22791); 14 Jun 2007 22:02:17 -0000 X-Spam-Check-By: sourceware.org Received: from elasmtp-galgo.atl.sa.earthlink.net (HELO elasmtp-galgo.atl.sa.earthlink.net) (209.86.89.61) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 14 Jun 2007 22:02:08 +0000 Received: from [66.166.5.106] (helo=PAULD) by elasmtp-galgo.atl.sa.earthlink.net with asmtp (Exim 4.34) id 1HyxOI-00072v-65; Thu, 14 Jun 2007 18:02:06 -0400 From: "Paul D. DeRocco" To: "eCos Discuss" Cc: =?iso-8859-1?Q?'J=FCrgen_Lambrecht'?= Date: Fri, 15 Jun 2007 06:25:00 -0000 Message-ID: <009201c7aecf$a38d2cb0$887ba8c0@PAULD> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook, Build 10.0.6822 In-reply-to: <466F94FA.4070902@televic.com> X-ELNK-Trace: bd7d5d4e6f8f652c74cfc7ce3b1ad11381c87f5e51960688b9976132e54a10e813c6803b31a4e5e9350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c 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] Configuring EB40A for JFFS2 X-SW-Source: 2007-06/txt/msg00161.txt.bz2 > From: J=FCrgen Lambrecht >=20 > My flash of 64MB is partitioned this way: > 1. 0x1000_0000, 0x0004_0000 ( 256KB): RedBoot > 2. 0x1004_0000, 0x0008_0000 ( 512KB): application > 3. 0x100C_0000, 0x0002_0000 ( 128KB): spare > 4. 0x100E_0000, 0x03F0_0000 ( 63MB): jffs2 partition (63MB) > 5. 0x13FE_0000, 0x0002_0000 ( 128KB): FIS directory and=20 > RedBoot config >=20 > In redboot, I create a jffs2 partition this way: > fis create -f 0x100E0000 -l 0x03F00000 -n jffs2 >=20 > application code: > #include // Address of JFFS2 > mount ("/dev/flash1", JFFS2DIR, "jffs2"); // Initialize=20 > File system (this mounts the "jffs2" partition to the mount=20 > point (a directory) JFFS2DIR, "/" in my case (root)) Thanks for your help. I decided to manually divide the 32 erasable 64K blocks into 2 for Redboot, 14 for my app, 14 for JFFS2, and 2 left over at the top for the flash directory, configuration data and boot script. (I suppose one would have been enough.) I'm merely assuming that the top of the flash is where the FIS directory is stored, because that's where it says it's reading from when I do "fis list". I'm a little confused, though, because "fis free" shows that space to be free. (This is an EB40A ARM7 board.) --=20 Ciao, Paul D. DeRocco Paul mailto:pderocco@ix.netcom.com=20 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss