public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: zhang jingxin <zhangjingxin@sict.ac.cn>
To: list <linux-mtd@lists.infradead.org>
Subject: doc2000 flash_eraseall error
Date: Thu, 16 Dec 2004 10:30:10 +0800	[thread overview]
Message-ID: <1103164209.2460.9.camel@z21921> (raw)

hi

I'am having trouble eraseing the doc2000.

I use doc2000(NAND device: Manufacturer ID: 0x98, Chip ID: 0x75 (Toshiba
NAND 32MiB 3,3V 8-bit)).This is a linux with kernel 2.4.27 and the
mtdsnapshot 20041128.

The dmesg show:
Dec 16 08:46:16 localhost kernel: mtd: Giving out device 0 to DiskOnChip
2000 (NFTL Model)
Dec 16 08:46:16 localhost kernel: Creating 1 MTD partitions on
"DiskOnChip 2000(NFTL Model)":
Dec 16 08:46:16 localhost kernel: 0x00014000-0x02000000 : " DiskOnChip
BDTL partition"

and the /proc/mtd show:
[root@localhost util]# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 02000000 00004000 "DiskOnChip 2000 (NFTL Model)"
mtd1: 01fec000 00004000 " DiskOnChip BDTL partition"

It seems to be ok.
Then I use utils/erase

[root@localhost util]# ./flash_eraseall -j /dev/mtd1
./flash_eraseall: /dev/mtd1: No such device

but I am sure the mtd* device exist.
I have use MAKEDEV.

[root@localhost util]# ls -l /dev/mtd*
crw-r--r--    1 root     root      90,   0 Dec 16 08:19 /dev/mtd0
crw-r--r--    1 root     root      90,   2 Dec 16 08:19 /dev/mtd1
crw-r--r--    1 root     root      90,  20 Dec 16 08:19 /dev/mtd10
crw-r--r--    1 root     root      90,  22 Dec 16 08:19 /dev/mtd11
crw-r--r--    1 root     root      90,  24 Dec 16 08:19 /dev/mtd12
crw-r--r--    1 root     root      90,  26 Dec 16 08:19 /dev/mtd13
crw-r--r--    1 root     root      90,  28 Dec 16 08:19 /dev/mtd14
crw-r--r--    1 root     root      90,  30 Dec 16 08:19 /dev/mtd15
crw-r--r--    1 root     root      90,  32 Dec 16 08:19 /dev/mtd16
crw-r--r--    1 root     root      90,   4 Dec 16 08:19 /dev/mtd2
crw-r--r--    1 root     root      90,   6 Dec 16 08:19 /dev/mtd3
crw-r--r--    1 root     root      90,   8 Dec 16 08:19 /dev/mtd4
crw-r--r--    1 root     root      90,  10 Dec 16 08:19 /dev/mtd5
crw-r--r--    1 root     root      90,  12 Dec 16 08:19 /dev/mtd6
crw-r--r--    1 root     root      90,  14 Dec 16 08:19 /dev/mtd7
..........

So what should I do?

Thanks.
			zhang jingxin

                 reply	other threads:[~2004-12-16  2:30 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=1103164209.2460.9.camel@z21921 \
    --to=zhangjingxin@sict.ac.cn \
    --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