Skip to contentSkip to conversation

mk.jffs2

DISCUSSION Munira Ahmed 3 participants 3 messages Jun 7, 2005 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Is there any manual page or tutorial on mk.jffs2 on the net. it seems that everything is inherently known to the community without proper documentation or manuals. I can't find any decent document that could give me a start.

Where do I learn about jffs2 and mk.jffs2

Signature · 1 line
Munira Ahmed
#1 lore raw

Re: mkfs.jffs2

Quoted 1 line · ext Munira Ahmed

Is there any manual page or tutorial on mk.jffs2 on the net. it

seems

Run mkfs.jffs2 without an argument to print its usage? (Sample below)

For example, I use following command for Nokia 770 test board with Samsung 1Gbit chip with 128KiB erase block size. I create the image without cleanmarkers because that is the way how N770's bootloader engulfs the JFFS2 image to be flashed.

  $ mkfs.jffs2 -r srcdir -o imagefile -e 128 -l -n

Jarkko Lavinen

$ ./mkfs.jffs2
mkfs.jffs2: Usage: mkfs.jffs2 [OPTIONS]
Make a JFFS2 file system image from an existing directory tree

Options:
-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

  -r, -d, --root=DIR      Build file system from directory DIR (default: cwd)
  -s, --pagesize=SIZE     Use page size (max data node size) SIZE (default: 4KiB)
  -e, --eraseblock=SIZE   Use erase block size SIZE (default: 64KiB)
  -c, --cleanmarker=SIZE  Size of cleanmarker (default 12)
  -m, --compr-mode=MODE   Select compression mode (default: priortiry)
  -x, --disable-compressor=COMPRESSOR_NAME
                          Disable a compressor
  -X, --enable-compressor=COMPRESSOR_NAME
                          Enable a compressor
  -y, --compressor-priority=PRIORITY:COMPRESSOR_NAME
                          Set the priority of a compressor
  -L, --list-compressors  Show the list of the avaiable compressors
  -t, --test-compression  Call decompress and compare with the original (for test)
  -n, --no-cleanmarkers   Don't add a cleanmarker to every eraseblock
  -o, --output=FILE       Output to FILE (default: stdout)
  -l, --little-endian     Create a little-endian filesystem
  -b, --big-endian        Create a big-endian filesystem
  -D, --devtable=FILE     Use the named FILE as a device table file
  -f, --faketime          Change all file times to '0' for regression testing
  -q, --squash            Squash permissions and owners making all files be owned by root
  -U, --squash-uids       Squash owners making all files be owned by root
  -P, --squash-perms      Squash permissions on all files
  -h, --help              Display this help text
  -v, --verbose           Verbose operation
  -V, --version           Display version information
  -i, --incremental=FILE  Parse FILE and generate appendage output for it
Quoted 17 lines

that everything is inherently known to the community without proper documentation or manuals. I can't find any decent document that could give me a start.

Where do I learn about jffs2 and mk.jffs2

Signature · 7 lines
Munira Ahmed



______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
#2 lore raw
In reply to Munira Ahmed
Quoted 5 lines · Munira Ahmed

Is there any manual page or tutorial on mk.jffs2 on the net. it seems that everything is inherently known to the community without proper documentation or manuals. I can't find any decent document that could give me a start.

There isn't a man page that I know of. And the mtd-utils "packages" that some distributions like SuSE have aren't really packages. They are just tarballs of a CVS snapshot that have been put into package form. They are almost always out of date. The best place to get the MTD utilities is from CVS.

As for general information about JFFS2, take a look at the following websites:

http://sourceware.org/jffs2/
http://linux-mtd.infradead.org
http://linux-mtd.infradead.org/faq/jffs2.html

josh