public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: hking <hking@qualcomm.com>
To: linux-mtd@lists.infradead.org
Subject: Problem: erase mtd device
Date: Wed, 12 Nov 2003 10:31:08 -0800	[thread overview]
Message-ID: <200311121031.08597.hking@qualcomm.com> (raw)

This is what I got after I added three custom partitions in the physmap.c:
After the kernel (2.4.20) boots up, I logged in as root and type:
#cat /proc/mtd
== and I got:
dev:    size   erasesize  name
mtd0: 00040000 00040000 "ResetWord"
mtd1: 01ec0000 00040000 "User FS"
mtd2: 00100000 00040000 "UBOOT"


The size, erasesize and name look correct.  It does not say the starting point 
of each partitions.  Since our first and third partition are write-protected, 
so I tried to erase the mtd1.


And I typed:
#erase /dev/mtd1
== and I got:
File open error


And I typed:
#eraseall /dev/mtd1
== and I got:
eraseall: /dev/mtd1: No such device


Did I do anything wrong? 

             reply	other threads:[~2003-11-12 18:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-12 18:31 hking [this message]
2003-11-13 19:55 ` Problem: erase mtd device Cam Mayor

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=200311121031.08597.hking@qualcomm.com \
    --to=hking@qualcomm.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