From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27750 invoked by alias); 1 Aug 2005 14:46:14 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 27691 invoked by uid 22791); 1 Aug 2005 14:46:06 -0000 Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 01 Aug 2005 14:46:06 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1DzbZR-0000xw-00; Mon, 01 Aug 2005 16:47:13 +0200 Date: Mon, 01 Aug 2005 14:46:00 -0000 To: Edgar Grimberg Cc: eCos Discussion Message-ID: <20050801144713.GL11102@lunn.ch> Mail-Followup-To: Edgar Grimberg , eCos Discussion References: <42ECFE3A.9060201@rms.ro> <1122842012.27647.369.camel@hermes> <42EE12EC.8060403@rms.ro> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42EE12EC.8060403@rms.ro> User-Agent: Mutt/1.5.9i From: Andrew Lunn Subject: Re: [ECOS] JFFS2 no space left on device error X-SW-Source: 2005-08/txt/msg00005.txt.bz2 On Mon, Aug 01, 2005 at 03:17:48PM +0300, Edgar Grimberg wrote: > > >When you created the image (in RedBoot), did you make it larger > >than the actual JFFS2 image that you created? In other words, > >JFFS2 needs additional FLASH space within the RedBoot (FIS) > >image in order to create new files (or even rewrite/update > >existing ones). > > > > > > > > Hello Gary, > > Thanks for the response. I am describing the exact steps that I > followed, maybe this will clear up the problems that I have: > > 1. the ecos.ecc file from my build tree contains: > > cdl_component CYGNUM_IO_FLASH_BLOCK_CFG_STATIC_1 { > # Flavor: bool > user_value 0 > # value_source user > # Default value: 1 > }; > cdl_component CYGNUM_IO_FLASH_BLOCK_CFG_FIS_1 { > # Flavor: bool > user_value 1 > # value_source user > # Default value: 0 > }; > # > > # Name of FIS entry > # > cdl_component CYGDAT_IO_FLASH_BLOCK_FIS_NAME_1 { > # Flavor: data > user_value "\"jffs2\"" > # value_source user > # Default value: "\"jffs2\"" > }; You actually called it JFFS2 in FIS, not jffs2. I'm not sure if this matters..... > 2. Create the jffs2 image file using: > > mkfs.jffs2 --pad=0x20000 -e 0x10000 -r ./etc -o ./jffs2.img > > 3. Upload the image file to flash, using RedBoot and FIS: > > RedBoot> load -m ymodem -b %{FREEMEMLO} -r > CRaw file loaded 0x20007000-0x20026fff, assumed entry at 0x20007000 > xyzModem - CRC mode, 1026(SOH)/0(STX)/0(CAN) packets, 5 retries > RedBoot> fis create -b 0x20007000 -l 0x40000 -s 0x30000 -f 0x10b0000 JFFS2 > ... Erase from 0x010b0000-0x010f0000: .... > ... Program from 0x20007000-0x20037000 at 0x010b0000: ... > ... Erase from 0x013f0000-0x01400000: . > ... Program from 0x20070000-0x20080000 at 0x013f0000: . > RedBoot> fis list > Name FLASH addr Mem addr Length Entry point > RedBoot 0x01000000 0x01000000 0x00020000 0x00000000 > JFFS2 0x010B0000 0x010B0000 0x00040000 0x20007000 > FIS directory 0x013F0000 0x013F0000 0x0000F000 0x00000000 > RedBoot config 0x013FF000 0x013FF000 0x00001000 0x00000000 > > 4. Program the first test for JFFS2 from ecos, using the bdi2000 > debugger, taking care not to erase the FIS directory or the jffs2 images > from flash. The test is programmed at 0x1000000, just over redboot > (maybe this is a problem?) Err, actually yes it could be. To read the FIS directory is calls into Redboot. If you have stomped over redboot im supprised the test even runs. Looking at your FIS directory you have 0x01020000 - 0x10AFFFF free. Try linking jffs2_1 to run at that address and put Redboot back at 0x01000000. > 5. Run the test (jffs2_1) and get the following: > > : reading directory / > : entry . [mode 016f0001 ino 00000001 nlink 1 size 0] > : entry .. [mode 016f0001 ino 00000001 nlink 1 size 0] This does not seem right. There should be other entries. Try jffs2dump -content ./jffs2.img and see if etc, passwd etc is in the image. Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss