All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michel LECONTE <michel.leconte@sacet.com>
To: linux-mtd@lists.infradead.org
Subject: Pb with NAND flash and ftl_format
Date: Mon, 12 Mar 2007 11:52:46 +0100	[thread overview]
Message-ID: <45F530FE.4070105@sacet.com> (raw)

Hi all,

I work with a nand flash with 4 partitions.
# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00400000 00010000 "physmap-flash.0"
mtd1: 04200000 00020000 "Linux"
mtd2: 09c00100 00020000 "Apps"
mtd3: 10000000 00020000 "Data"

When I try to format /dev/mtd1 with an ftl_format it gives me :
# ./ftl_format /dev/mtd1
Partition size = 66 mb, erase unit size = 128 kb, 1 transfer units
Reserved 5%, formatted size = 64853504 bytes
Erasing all blocks...
+++++++*+++++++*+++++++*+++++++*+++++++*+++++++*+++++++*+++++++*++
Writing erase unit headers...
write failed: Invalid argument
format failed.

And dmesg :
# dmesg
nand_write: Attempt to write not page aligned data

I 'm not sure to understand what it means.
I suppose that the problem comes with a difference between
the adressing of the data and the size of the data but I don't
know how to do ?


Here is my mtd_debug info :
# ./mtd_debug info /dev/mtd1
mtd.type = MTD_NANDFLASH
mtd.flags =
mtd.size = 69206016 (66M)
mtd.erasesize = 131072 (128K)
mtd.oobblock = 2048 (2K)
mtd.oobsize = 64
mtd.ecctype = MTD_ECC_SW
regions = 0

as somebody has an idea to fix my problem ?

Thank you.


Michel

                 reply	other threads:[~2007-03-12 11:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=45F530FE.4070105@sacet.com \
    --to=michel.leconte@sacet.com \
    --cc=linux-mtd@lists.infradead.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.