This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: JFFS2 questions with eCos
- From: "Steven_cheng" <05071 at alphanetworks dot com>
- To: "Andrew Lunn" <andrew at lunn dot ch>
- Cc: <ecos-discuss at sources dot redhat dot com>
- Date: Mon, 3 Oct 2005 16:15:19 +0800
- Subject: Re: [ECOS] JFFS2 questions with eCos
- References: <20050915074017.GC16074@lunn.ch> <001c01c5bdc7$1ba22580$01473264@stevencheng> <20050920111517.GH24142@lunn.ch> <003101c5bdd8$36bd7a20$01473264@stevencheng> <20050920120119.GI24142@lunn.ch> <000c01c5be6f$fa317640$01473264@stevencheng> <20050921064747.GC28077@lunn.ch> <007401c5c4aa$37820740$01473264@stevencheng> <20050929072241.GY28077@lunn.ch> <009201c5c4da$f8dc50f0$01473264@stevencheng> <20050929105609.GZ28077@lunn.ch>
Hi Adnrew,
Thank you for your reply!!
But I still have some questions about mkfs.jffs2.
Q1 : Can you tell me what is the different betweem -e
and --eraseblock=size,
-p and --pad=size ??
Q2 : "ereaseblock=size" and "--pad=size" in the statements, the unit is
bytes or Kbytes ??
Q3 : "-e size" and "-p size" in the statements, the unit is bytes or Kbytes
??
I can't understand the meaning of the help as following:
-p, --pad[=SIZE] Pad output to SIZE bytes with 0xFF. If SIZE is
not specified, the output is padded to the end of
the final erase block.
-e, --eraseblock=SIZE Use erase block size SIZE (default: 64KiB)
Thank you very much~~
Steven Cheng
----- Original Message -----
From: "Andrew Lunn" <andrew@lunn.ch>
To: "Steven_cheng" <05071@alphanetworks.com>
Cc: "Andrew Lunn" <andrew@lunn.ch>; <ecos-discuss@sources.redhat.com>
Sent: Thursday, September 29, 2005 6:56 PM
Subject: Re: [ECOS] JFFS2 questions with eCos
> On Thu, Sep 29, 2005 at 05:48:40PM +0800, Steven_cheng wrote:
> > Hi Andrew,
> >
> > When I create a directory with mkdir command, it retruns no space.
> > So I want to create a image with some empty space.
> >
> > Q1 : Can I generate a JFFS2 filesystem image with empty space ??
> > for example, data uses 1 MB and empty space 4MB image ??
>
> Sure. Use the -pad=4194304 option to mkfs.jffs2
>
> > Q2 : Can I generate a JFFS2 filesystem image with only empty space ??
> > for example, only epmty root directory with 5MB image ??
>
> Sure. Again use the pad option.
>
> --
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss