This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Creating rd-jffs2.bin

Hi,

is this command from Creating_JFFS2_File-system correct?
[root@localhost util]# mkfs.jffs2 -lqn –e 128 -r target -o /tftpboot/rd-jffs2.bin

Shouldn't be the correct format:
[root@localhost util]# mkfs.jffs2 -lqn --pagesize=0x800 --eraseblock=0x20000 -r target -o /tftpboot/rd-jffs2.bin

In my case, the corrected format fixes Linux "Empty flash" message.

Note:
EVM uses MT29F2G16AADWP. From datasheet:

Organization:
   •Page size:
      x8: 2,112 bytes (2,048 + 64 bytes)
      x16: 1,056 words (1,024 + 32 words)
   •Block size: 64 pages (128K + 4K bytes)
   •Device size: 2Gb: 2,048 blocks; 4Gb: 4,096 blocks; 8Gb: 8,192 blocks

From mkfs.jffs2 HELP:
-s, --pagesize=SIZE     Use page size (max data node size) SIZE (default: 4KiB)

- Robert