From: Artem Bityutskiy <dedekind@infradead.org>
To: Johan <kungjohan@gmail.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: Problem with ubiformat
Date: Fri, 16 Jan 2009 13:29:33 +0200 [thread overview]
Message-ID: <1232105373.25068.25.camel@localhost.localdomain> (raw)
In-Reply-To: <de9b121e0901150854w7b88abcendc36e4a5311890aa@mail.gmail.com>
On Thu, 2009-01-15 at 17:54 +0100, Johan wrote:
> I have a problem with ubiformat on one of my boards, the same command
> works on another board.
>
> #
> # ubiformat /dev/mtd0
> ubiformat: mtd0 (NAND), size 1073741824 bytes (1024.0 MiB), 131072
> eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes
> libscan: scanning eraseblock 8191 -- 100 % complete
> ubiformat: 2567 eraseblocks have valid erase counter, mean value is 3
> ubiformat: 5606 eraseblocks are supposedly empty
> ubiformat: bad eraseblocks: 2014, 2096, 2994, 4144, 4458, 5869, 6514,
> 6546, 6547, 7793, 8183, 8184, 8185, 8186, 8187, 8188, 8189, 8190, 8191
> ubiformat: warning!: only 2567 of 8173 eraseblocks have valid erase counter
> ubiformat: erase counter 0 will be used for all eraseblocks
> ubiformat: note, arbitrary erase counter value may be specified using -e option
> ubiformat: continue? (yes/no) yes
> ubiformat: use erase counter 0 for all eraseblocks
> ubiformat: formatting eraseblock 2571 -- 31 % complete ubiformat:
> error!: failed to erase eraseblock 2571
> error 5 (Input/output error)
> #
>
> I am using mtd-utils snapshot from 2008-12-18.
>
> Any ideas to what the problem might be?
I guess eraseblock number 2571 is bad and ubiformat cannot erase it.
Probably we should teach ubiformat taking care about bad eraseblocks by
marking them as bad. It should be easy. Try flash_eraseall - does it
complain about eraseblock 2571?
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
next prev parent reply other threads:[~2009-01-16 11:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-15 16:54 Problem with ubiformat Johan
2009-01-16 11:29 ` Artem Bityutskiy [this message]
2009-01-16 14:36 ` Johan
2009-01-16 14:46 ` Artem Bityutskiy
2009-03-26 12:39 ` Artem Bityutskiy
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=1232105373.25068.25.camel@localhost.localdomain \
--to=dedekind@infradead.org \
--cc=kungjohan@gmail.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