public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* mkfs.jffs2 and NAND smartmedia card
@ 2004-08-11  8:24 Yann Rapaport
  2004-08-11  9:14 ` Thomas Gleixner
  0 siblings, 1 reply; 2+ messages in thread
From: Yann Rapaport @ 2004-08-11  8:24 UTC (permalink / raw)
  To: linux-mtd

Hi!

I am currently working on installing a JFFS2 filesystem on an ARM 
system, using a Samsung NAND Smartmedia device and 2.4.20 kernel from 
montavista 3.1.

I succeed in mouting the partition and installing my filesystem in it 
using the following commands:
root:/# mount -t jffs2 /dev/mtdblock1 /mnt
root:/# cp -r /usr/admin/* /mnt

My aim is now to create my filesystem using mkfs.jffs2. When mounting 
the partition, I get ECC, CRC and magic bitmask errors.
root:/# mkfs.jffs2 -r /usr/admin -s 512 -e 16384 -b -o /dev/mtd1
root:/# mount -t jffs2 /dev/mtdblock1 /mnt
mtd->read(0x400 bytes from 0x0) returned ECC error
jffs2_scan_eraseblock(): Node at 0x00000000 {0x1985, 0xe001, 0x0000002c) 
has invalid CRC 0xa026b584 (calculated 0xa026b184)
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008: 
0xa026 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018: 
0x4119 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000001c: 
0x0404 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020: 
0xe158 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000024: 
0x5121 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000200: 
0x0801 instead
etc.

It seems that the OOB data is damaged...
Do you have any idea of what happens?

Thanks in advance!

-- 
Yann

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

* Re: mkfs.jffs2 and NAND smartmedia card
  2004-08-11  8:24 mkfs.jffs2 and NAND smartmedia card Yann Rapaport
@ 2004-08-11  9:14 ` Thomas Gleixner
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Gleixner @ 2004-08-11  9:14 UTC (permalink / raw)
  To: Yann Rapaport; +Cc: linux-mtd

On Wed, 2004-08-11 at 10:24, Yann Rapaport wrote:
> Hi!
> 
> I am currently working on installing a JFFS2 filesystem on an ARM 
> system, using a Samsung NAND Smartmedia device and 2.4.20 kernel from 
> montavista 3.1.
> My aim is now to create my filesystem using mkfs.jffs2. When mounting 
> the partition, I get ECC, CRC and magic bitmask errors.
> root:/# mkfs.jffs2 -r /usr/admin -s 512 -e 16384 -b -o /dev/mtd1

Direct output of mkfs.jffs2 to NAND is not working yet. Output to a file
and use nandwrite to store it on the FLASH

tglx

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

end of thread, other threads:[~2004-08-11  9:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-11  8:24 mkfs.jffs2 and NAND smartmedia card Yann Rapaport
2004-08-11  9:14 ` Thomas Gleixner

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