All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Shaohui Xie" <b21989@freescale.com>
To: "linux-mtd" <linux-mtd@lists.infradead.org>
Subject: Is there a 64-bits version of flash_eraseall for 8GB nand
Date: Mon, 7 Dec 2009 15:00:39 +0800	[thread overview]
Message-ID: <200912071500385779149@freescale.com> (raw)

Hi all,
 
I have a Powerpc mpc5125 board, it has a 8GB nand on it. When I use user space tool falsh_eraseall to erase the whole nand chip, I found the tool can not erase the space over 4GB. I did some search and found a patch "use new 64-bit ioctls + sysfs to support >4GiB devices" at http://patchwork.ozlabs.org/patch/25583/, I patched this patch to mtd-utils and rebuilt it, when I run the new flash_eraseall on my board I got error messages:"./flash_eraseall: /dev/mtd0: MTD Erase failure: Inappropriate ioctl for device". Does anybody know whether there is a 64-bits version of flash_eraseall or any other tools can erase 8GB nand or not? Any idea will be appreciated.
 
Here are details of the nand flash and log: 
Page size: 4k+218bytes 
Block size: 1M 

#cat /proc/mtd 
dev:    size   erasesize  name 
mtd0: 1ff300000 00100000 "filesystem-nand"


2009-12-07 

Best Regards,
Shaohui Xie

                 reply	other threads:[~2009-12-07  7: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=200912071500385779149@freescale.com \
    --to=b21989@freescale.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.