do i have to "eraseall" first?
??
kevin at gv.com.tw
Wed Jul 31 23:23:47 EDT 2002
dear all,
the only different config settings is CONFIG_JFFS2_FS_NAND
but there is no "CONFIG_JFFS2_FS_NAND" in source of jffs2/mtd here!!
(i'm using lastest jffs2/mtd source from cvs)
please help
i also tryed:
cp -r * /mnt/bla
but still get "magic bitmask not found" while re-mounting(umount/mount)
jffs2
where to get a version of eraseall that will set "jffs2 formatted" info in
the OOB area?
thanks in advanced!:)
----- Original Message -----
From: "Thomas Gleixner" <tglx at linutronix.de>
To: "David Woodhouse" <dwmw2 at infradead.org>; "??" <kevin at gv.com.tw>
Cc: <linux-mtd at lists.infradead.org>
Sent: Thursday, August 01, 2002 2:33 AM
Subject: Re: do i have to "eraseall" first?
> On Wednesday, 31. July 2002 15:04, David Woodhouse wrote:
> > kevin at gv.com.tw said:
> > > now it report many "magic bitmask not found" do i have to do
> > > something like "eraseall /dev/mtdblock1" before "cp test.img /dev/
> > > mtdblock1"?
> >
> > Yes. eraseall /dev/mtd1. I don't remember how you are supposed to write
the
> > images so the ECC is correct. Thomas?
> cp test.img /dev/mtdblock1 should write ecc correct, if it's configured
> correctly. See
> http://www.linux-mtd.infradead.org/tech/nand.html
>
> But eraseall does not set the block is erased and "jffs2 formatted" info
in
> the OOB area, which leads to "magic bitmask not found".
>
> We decided some time ago, that erase, invoked from the shell, _CANNOT_ do
> this on it's own, because it will not know, which filesystem is going to
be
> mounted.
>
> The information is set, when erase is controlled by jffs2.
>
> The only safe way to do it, is
> cd yourstuff
> cp -r * /mnt/bla
>
> or you tell your bootloader to do it.
>
> --
> Thomas
> ___________________________________________
> linutronix - competence in embedded & realtime linux
> http://www.linutronix.de
> mail: tglx at linutronix.de
More information about the linux-mtd
mailing list