public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Chen Yaoming <ming@ocdtt.com>
To: linux-mtd@lists.infradead.org
Subject: Why does /dev/mtd0 complain Intel TE28F160C3B as read only file system?
Date: Wed, 24 Oct 2001 09:51:44 +0800	[thread overview]
Message-ID: <3BD61EB0.6FC080F6@ocdtt.com> (raw)

# ls -l /dev/mtd0
crw-rw----    1 root     disk      90,   0 Oct 15  2001 /dev/mtd0

# ./mtd_debug info /dev/mtd0
mtd.type = MTD_NORFLASH
mtd.flags = MTD_CAP_NORFLASH
mtd.size = 2097152 (2M)
mtd.erasesize = 65536 (64K)
mtd.oobblock = 0
mtd.oobsize = 0
mtd.ecctype = MTD_ECC_NONE
regions = 2

region[0].offset = 0x00000000
region[0].erasesize = 8192 (8K)
region[0].numblocks = 8
region[0].regionindex = 0
region[1].offset = 0x00010000
region[1].erasesize = 65536 (64K)
region[1].numblocks = 31

# ./mtd_debug write /dev/mtd0 0x100000 16 /boot/vmlinuz
Copied 16 bytes from /boot/vmlinuz to address 0x00000000 in flash

# dd if=/boot/vmlinuz of=/dev/mtd0 bs=1k seek=1024
dd: writing `/dev/mtd0': Read-only file system
1+0 records in
0+0 records out

# ./mtd_debug erase /dev/mtd0 1048576 65536
MEMERASE: Read-only file system

# ./erase /dev/mtd0 0x100000 1
Erase Total 1 Units
Region 0 is at 0 of 8 sector and with sector size 2000
Region 1 is at 65536 of 31 sector and with sector size 10000
Performing Flash Erase of length 65536 at offset 0x100000
MTD Erase failure: Read-only file system

                 reply	other threads:[~2001-10-24  1:41 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=3BD61EB0.6FC080F6@ocdtt.com \
    --to=ming@ocdtt.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