* Problems with mounting a JFFS2 file system image
@ 2002-01-30 0:09 Navin Boppuri
2002-01-30 0:25 ` Russ Dill
2002-01-30 0:56 ` David Woodhouse
0 siblings, 2 replies; 4+ messages in thread
From: Navin Boppuri @ 2002-01-30 0:09 UTC (permalink / raw)
To: linux-mtd
Hello all,
I have been able to succesfully partition my flash and mount a jffs2 file system on the same. I am able to copy, create, read and write files onto my new file system.
Now, I wanted to create a file system on my host machine using the mkfs.jffs2 utility and mount the file system onto my flash partition on my embedded device. But I havent been successful in doing so. I followed the JFFS2 README and this is what I did:
mkfs.jffs -d tmp_fs -o jffs2.image ( tmp_fs is a directory with all my files in it)
erase /dev/mtd0 0 8 ( I have 8 sectors to erase )
Worked like a charm. Verified that the flash was completely erased.
cp jffs2.image /dev/mtd0 ( No problem here. I have it running in DEBUG mode. )
insmod jffs2.o ( No problem here. I get all the messages that I expect)
mount -t jffs2 /dev/mtdblock0 /mnt/jffs2
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x8519 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004: 0x3100 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008: 0x1dd9 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000000c: 0x0100 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000014: 0x0200 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018: 0x0202 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000001c: 0x0908 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020: 0x77c0 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000024: 0x0b76 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000028: 0x7465 in
stead
Further such events for this erase block will not be printed
JFFS2: Erase block at 0x00000000 is not formatted. It will be erased
Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
mount: wrong fs type, bad option, bad superblock on /dev/mtdblock0,
or too many mounted file systems
I dont see any other special instructions on doing this. What am I missing here? What am I doing wrong?
Thank you,
Navin Boppuri.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Problems with mounting a JFFS2 file system image
2002-01-30 0:09 Problems with mounting a JFFS2 file system image Navin Boppuri
@ 2002-01-30 0:25 ` Russ Dill
2002-01-30 0:56 ` David Woodhouse
1 sibling, 0 replies; 4+ messages in thread
From: Russ Dill @ 2002-01-30 0:25 UTC (permalink / raw)
To: Navin Boppuri; +Cc: linux-mtd
On Tue, 2002-01-29 at 17:09, Navin Boppuri wrote:
> Hello all,
>
> I have been able to succesfully partition my flash and mount a jffs2 file system on the same. I am able to copy, create, read and write files onto my new file system.
>
> Now, I wanted to create a file system on my host machine using the mkfs.jffs2 utility and mount the file system onto my flash partition on my embedded device. But I havent been successful in doing so. I followed the JFFS2 README and this is what I did:
>
> mkfs.jffs -d tmp_fs -o jffs2.image ( tmp_fs is a directory with all my files in it)
us mkfs.jffs2, it may also be neccessary to supply your erase block size
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Problems with mounting a JFFS2 file system image
2002-01-30 0:09 Problems with mounting a JFFS2 file system image Navin Boppuri
2002-01-30 0:25 ` Russ Dill
@ 2002-01-30 0:56 ` David Woodhouse
1 sibling, 0 replies; 4+ messages in thread
From: David Woodhouse @ 2002-01-30 0:56 UTC (permalink / raw)
To: Navin Boppuri; +Cc: linux-mtd
navin.boppuri@newisys.com said:
> jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x8519 instead
Your host and target have different endianness. Use the '-b' or '-l' option
to mkfs.jffs2.
--
dwmw2
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Problems with mounting a JFFS2 file system image
@ 2002-01-31 2:05 Navin Boppuri
0 siblings, 0 replies; 4+ messages in thread
From: Navin Boppuri @ 2002-01-31 2:05 UTC (permalink / raw)
To: David Woodhouse; +Cc: linux-mtd
That solved it. Thanks a lot.
Navin.
-----Original Message-----
From: David Woodhouse [mailto:dwmw2@infradead.org]
Sent: Tuesday, January 29, 2002 6:57 PM
To: Navin Boppuri
Cc: linux-mtd@lists.infradead.org
Subject: Re: Problems with mounting a JFFS2 file system image
navin.boppuri@newisys.com said:
> jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x8519 instead
Your host and target have different endianness. Use the '-b' or '-l' option
to mkfs.jffs2.
--
dwmw2
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-01-31 1:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-30 0:09 Problems with mounting a JFFS2 file system image Navin Boppuri
2002-01-30 0:25 ` Russ Dill
2002-01-30 0:56 ` David Woodhouse
-- strict thread matches above, loose matches on Subject: below --
2002-01-31 2:05 Navin Boppuri
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox