public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* mkfs.jffs2
@ 2005-02-21 13:28 Narinder Kumar
  2005-02-21 13:58 ` mkfs.jffs2 Artem B. Bityuckiy
  2005-02-21 14:05 ` mkfs.jffs2 Artem B. Bityuckiy
  0 siblings, 2 replies; 19+ messages in thread
From: Narinder Kumar @ 2005-02-21 13:28 UTC (permalink / raw)
  To: linux-mtd

Hi all,

             This is my first mail to the group and is hoping for some 
fruitful results from your mails. I am having problems in mounting my 
MTD device using mkfs.jffs2 . Though i have read mails on the group 
regarding mkfs.jffs2 but still i am not able to decipher my problem, so 
hoping a helpful hand from your side. Here are the steps that i am 
following:

eraseall -j /dev/mtd/1           ( -j as i need jffs2 file system 
/dev/mtd/1 is 1 MB partition)
mkfs.jffs2 -e 0x420 -d /tmp/Application -o image  ( created image of my 
application which is to be put into MTD)
cp image /dev/mtd/1           ( copied the image into MTD)
mount -t jffs2 /dev/mtdblock/1 /mnt is giving errors

Node at 0x00000048 with length 0x000006d2 would run over the end of the 
erase block
Perhaps the file system was created with the wrong erase size?
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000004c: 
0x06d2 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000050: 
0x39d7 instead
[...]
Further such events for this erase block will not be printed
Node at 0x0000071c with length 0x000003d7 would run over the end of the 
erase block
Perhaps the file system was created with the wrong erase size?
JFFS2: Erase block at 0x00000420 is not formatted. It will be erased
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000840: 
0xf42b instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000844: 
0x68c7 instead
[....]
Further such events for this erase block will not be printed
Node at 0x00000af4 with length 0x000005a6 would run over the end of the 
erase block
Perhaps the file system was created with the wrong erase size?
JFFS2: Erase block at 0x00000840 is not formatted. It will be erased
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000c60: 
0x6df1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000c64: 
0x1283 instead
[...]
Further such events for this erase block will not be printed
JFFS2: Erase block at 0x00000c60 is not formatted. It will be erased
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001080: 
0x8c70 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001084: 
0x8f13 instead
[...]

 From the output atleast i am sure that i am providing the right 
eraseblock to mkfs.jffs2 as Erase block is checking at an interval of 
0x420 everytime. When all these messages stops , i entered into /mnt to 
check if there is something in the mounted device and it does shows 
everthing that i copied into it, so why is this error coming ?
"Node at 0x00000048 with length 0x000006d2 would run over the end of the 
erase block" can this helps me out somehow where something is going 
wrong ???

Narinder

^ permalink raw reply	[flat|nested] 19+ messages in thread
* mk.jffs2
@ 2005-06-07  9:32 Munira Ahmed
  2005-06-07 11:10 ` mkfs.jffs2 Jarkko Lavinen
  0 siblings, 1 reply; 19+ messages in thread
From: Munira Ahmed @ 2005-06-07  9:32 UTC (permalink / raw)
  To: linux-mtd@lists.infradead.org

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



-- 
Munira Ahmed

^ permalink raw reply	[flat|nested] 19+ messages in thread
* mkfs.jffs2
@ 2004-08-13 12:02 Stefan Stürke
  2004-08-13 12:31 ` mkfs.jffs2 David Woodhouse
  0 siblings, 1 reply; 19+ messages in thread
From: Stefan Stürke @ 2004-08-13 12:02 UTC (permalink / raw)
  To: linux-mtd

Hi,

I want to create a jffs2 image which should be loaded to
different mtd-flash devices via software download.

My problem is, that I cannot be sure which erasesize the
target flash will have. Because two flash types with different
sector sizes (64k and 128k) have to be supported.

Is it possible to create a jffs2 image that can run on both flashes,
or do I have to create two diffenent images?

My current command for creating the filesystem is:

mkfs.jffs2 -b -e $erasesize -p -r $source -o fs.jffs2

Thanks in advance
Stefan

-- 
Stefan Stürke

^ permalink raw reply	[flat|nested] 19+ messages in thread
* mkfs.jffs2
@ 2002-09-05 12:35 Kenneth Johansson
  0 siblings, 0 replies; 19+ messages in thread
From: Kenneth Johansson @ 2002-09-05 12:35 UTC (permalink / raw)
  To: Mtd

How well is mkfs.jffs2 working when creating images ??

I did a quick test creating a big endian image from x86 and it worked so
far as reading the disk was ok but file permissions was wrong. A quick
look in the code indicate that this was at least intended to work. 


-- 
Kenneth Johansson	
Ericsson AB                       Tel: +46 8 404 71 83
Borgafjordsgatan 9                Fax: +46 8 404 72 72
164 80 Stockholm                  kenneth.johansson@etx.ericsson.se

^ permalink raw reply	[flat|nested] 19+ messages in thread
* mkfs.jffs2
@ 2001-08-22 21:00 Ashok M Padmanaban
  2001-08-22 15:44 ` mkfs.jffs2 Russ Dill
  0 siblings, 1 reply; 19+ messages in thread
From: Ashok M Padmanaban @ 2001-08-22 21:00 UTC (permalink / raw)
  To: MTD for Linux, JFFS mailing list

[-- Attachment #1: Type: text/plain, Size: 738 bytes --]

Hi,
  The mkfs.jffs2 has some options,  in which  -e option specifies the
erase block size, which  by default is 64KiB.
While making a jffs2 image of a directory (which has some files) of size
3848192 Bytes.

 ./mkfs.jffs2   -d directory   -o jffs2_img  -e  128KiB

With default option for erase block size ( 64KiB), the jffs2 image size
was :   1983612 Bytes. ( 1.89 MB)
 With   -e 128KiB
, the jffs2 image size was :    7687900 Bytes  (7.33 MB)
  With   -e  256KiB
, the jffs2 image size was :    4289164 Bytes   (4.09 MB)

Why is that the jffs2 image size is varying with the erase block size.?
 If i have an erase size of 256KiB(on flash), is it necessary that i
should build a jffs2 image with the -e 256KiB option.


regards
ashok


[-- Attachment #2: Card for Ashok M Padmanaban --]
[-- Type: text/x-vcard, Size: 356 bytes --]

begin:vcard 
n:.m.padmanabhan;ashok
tel;work:5281461/5281229 ext 3096
x-mozilla-html:FALSE
org:sasken communication technologies ltd;internt access solutions
version:2.1
email;internet:ashokmp@sasken.com
title:software engineer
adr;quoted-printable:;;3008,12 th B cross,=0D=0Aindranagar	;banglore;;;india
x-mozilla-cpt:;0
fn:ashok .m.padmanabhan
end:vcard

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2005-06-07 11:27 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-21 13:28 mkfs.jffs2 Narinder Kumar
2005-02-21 13:58 ` mkfs.jffs2 Artem B. Bityuckiy
2005-02-21 14:18   ` mkfs.jffs2 Narinder Kumar
2005-02-21 15:21     ` mkfs.jffs2 Andrew Victor
2005-02-24  8:11       ` mkfs.jffs2 Narinder Kumar
2005-02-24 13:20         ` mkfs.jffs2 Artem B. Bityuckiy
2005-02-24 13:41           ` mkfs.jffs2 Narinder Kumar
2005-02-21 14:05 ` mkfs.jffs2 Artem B. Bityuckiy
2005-02-21 14:25   ` mkfs.jffs2 Narinder Kumar
2005-02-21 14:35     ` mkfs.jffs2 Artem B. Bityuckiy
2005-02-22  5:03       ` mkfs.jffs2 Narinder Kumar
  -- strict thread matches above, loose matches on Subject: below --
2005-06-07  9:32 mk.jffs2 Munira Ahmed
2005-06-07 11:10 ` mkfs.jffs2 Jarkko Lavinen
2004-08-13 12:02 mkfs.jffs2 Stefan Stürke
2004-08-13 12:31 ` mkfs.jffs2 David Woodhouse
2004-08-13 14:45   ` mkfs.jffs2 Stefan Stürke
2004-08-13 14:54     ` mkfs.jffs2 David Woodhouse
2002-09-05 12:35 mkfs.jffs2 Kenneth Johansson
2001-08-22 21:00 mkfs.jffs2 Ashok M Padmanaban
2001-08-22 15:44 ` mkfs.jffs2 Russ Dill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox