[ECOS] JFFS2 questions with eCos

Andrew Lunn andrew@lunn.ch
Tue Sep 20 12:02:00 GMT 2005


On Tue, Sep 20, 2005 at 05:38:49PM +0800, Steven_cheng wrote:
> Dear Andrws,
> 
>     I use the mkfs.jffs2 to create a filesystem on my host, the command is
> 
> "$ ./mkfs.jffs2 -o jffs2.img -r jffs2_test/"
> 
> Then I put the image jffs2.img to my platform by load command. And save it
> as
> jffs2 as following in the flash:
> 
> RedBoot> fis list
> Name              FLASH addr  Mem addr    Length      Entry point
> RedBoot[RAM]      0x70000000  0x01040000  0x00040000  0x01040100
> jffs2.img          0x70040000  0x70040000  0x00020000  0x02000000
> RedBoot           0xFFF00000  0xFFF00000  0x00040000  0x00000000
> FIS directory     0xFFF7F000  0xFFF7F000  0x00000C00  0x00000000
> RedBoot config    0xFFF7FC00  0xFFF7FC00  0x00000400  0x00000000
> 
> 
> > > Q4.    If I want to replace FIS (Flash Image System )  with the JFFS2 in
> > > RedBoot,
> > > Is it doable ??
> >
> > You have two options.
> >
> > 1) You keep FIS and use it to keep track of where the the JFFS2 image
> > is in flash. When you mount the filesystem you give the name of this
> > FIS image you want to mount.
> 
> How can I mount the jffs2.img ??
> Like it ??
> 
> "RedBoot> mount -f jffs2.img -t jffs2"

Yes.
 
> >
> > 2) You hard code the address and length of the filesystem into
> > Redboot. You then don't need FIS.
> 
> Do you mean it  as following ??
> "RedBoot> mount -f 0x70040000 -t jffs2"

No. See CYGPKG_IO_FLASH_BLOCK_DEVICE_* and then use

mount -d /dev/flash1 -t jffs2

        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



More information about the Ecos-discuss mailing list