This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: JFFS2 questions with eCos


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]