public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: harishkumar <harishkumar@novatium.com>
To: linux-mtd@lists.infradead.org
Subject: Problem in Erase/Writing the flash device
Date: Thu, 12 Oct 2006 14:39:40 +0530	[thread overview]
Message-ID: <1160644180.11204.18.camel@thick.localnova.com> (raw)

Hi,
	I am new to flash devices. I am writing AM29LV256MH 16MB flash map
driver using MTD for my ARM board.
I used jedec_probe. The flash is 16 bit.
I mapped my partitions for the flash.

Iam using 2.6.15 kernel.
When the kernel loads, it succesfully detects the flash.
i gave starting address as 0x02000000 & length as 0x01000000 & width as
2.

after booting up the kernel, cat /proc/mtd displayed the following
thing,
dev:	size		erasesize	name
mtd0:	01000000	00010000	Entire flash
mtd1:	00050000	00010000	Bootloader
mtd2:	00200000	00010000	Kernel
mtd3:	00c00000	00010000	Filesystem
mtd4:	001b0000	00010000	Reserved


All this seems to be ok, but normal read/write/erase operation on flash
device not happening.
I tried to read from the device /dev/mtd0 & dumped into file, the file
displayed only zeros.
Normally when no contents is there, it should display only ffff's but is
strange it is displaying zeros.

Then i tried to erase the flash using mtd-utils,
i got MEMERASE: input/output error.


Somebody help me............ please............

Harish

                 reply	other threads:[~2006-10-12  9:17 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=1160644180.11204.18.camel@thick.localnova.com \
    --to=harishkumar@novatium.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox