* Problem: erase mtd device
@ 2003-11-12 18:31 hking
2003-11-13 19:55 ` Cam Mayor
0 siblings, 1 reply; 2+ messages in thread
From: hking @ 2003-11-12 18:31 UTC (permalink / raw)
To: linux-mtd
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?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Problem: erase mtd device
2003-11-12 18:31 Problem: erase mtd device hking
@ 2003-11-13 19:55 ` Cam Mayor
0 siblings, 0 replies; 2+ messages in thread
From: Cam Mayor @ 2003-11-13 19:55 UTC (permalink / raw)
To: hking, linux-mtd
On Wednesday 12 November 2003 12:31, hking wrote:
> 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
try unlocking that device before erasing. my flash (YMMV) powers up to a
locked state. (read the rest of this email first)
> And I typed:
> #eraseall /dev/mtd1
> == and I got:
> eraseall: /dev/mtd1: No such device
check your /dev/mtd? entries against ./Documentation/devices.txt
are the major/minor numbers correct?
cam
--
Cameron Mayor
Iders Incorporated
As of Decemeber 1, 2003 Until November 30, 2003
100-137 Innovation Drive 600A Clifton Street
Winnipeg, MB, Canada R3T 6B6 Winnipeg, MB Canada R3G 2X6
hi Luc
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-11-13 19:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-12 18:31 Problem: erase mtd device hking
2003-11-13 19:55 ` Cam Mayor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox