From: Thomas Gleixner <tglx@linutronix.de>
To: simon@baydel.com, linux-mtd@lists.infradead.org
Subject: Re: NAND and JFFS2 crash
Date: Mon, 28 Apr 2003 10:54:22 +0200 [thread overview]
Message-ID: <200304281054.22160.tglx@linutronix.de> (raw)
In-Reply-To: <3EA7C8DE.8333.56C7F7@localhost>
On Thursday 24 April 2003 12:22, simon@baydel.com wrote:
> Last week I downloaded a new CVS tree. I create my SMC data by
> booting the system off a hard disk running Linux. I first use dd to
> copy the hard disk boot partition to the SMC. I noticed all these
> messages basically saying writing NAND witout ECC was a bad
> idea. In my NAND specific driver I set up the mtd_info structure for
> soft ecc. However there appears to be a new field useecc which
> only appears to be used by jffs2. I did not know what I was
> expected to do here so I modified my driver to set this and the
> associated bit positions. Beacuse I use partitions I had to modify
> mtdpart to copy this information to the mtd_info structure which is
> set up on a partition basis. Now I could boot from the hard disk and
> copy my boot disk to the SMC with no problem. I then erased and
> created a new JFFS2 filesystem, on another partition, and copied
> all the files for the root filesystem.
As I mentioned before and as documented in the nand docs, either use
bootloader or use nandwrite.c to write a fs-image with ecc. There is no need
to hack around.
> I then booted from the smc and although I got a few
> Empty flash at 0x00469ffcb ends at 0x0046a000
> messages all seemed ok. The root file system was mounted and I
> got the login prompt. However when I started to log in I got a crash.
> kernel BUG at gc.c:140!
I have a binary image now to check this. Will post info, if I have solved the
problem.
--
Thomas
________________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx@linutronix.de
prev parent reply other threads:[~2003-04-28 7:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-24 10:22 NAND and JFFS2 crash simon
2003-04-24 10:50 ` David Woodhouse
2003-04-24 21:08 ` David Woodhouse
2003-04-28 8:54 ` Thomas Gleixner [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200304281054.22160.tglx@linutronix.de \
--to=tglx@linutronix.de \
--cc=linux-mtd@lists.infradead.org \
--cc=simon@baydel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox