From: Adrian Hunter <ext-adrian.hunter@nokia.com>
To: ext Nancy <nancydreaming@gmail.com>
Cc: linux-mtd <linux-mtd@lists.infradead.org>
Subject: Re: UBI: badblock management confusion!
Date: Mon, 28 Apr 2008 14:58:21 +0300 [thread overview]
Message-ID: <4815BBDD.4090004@nokia.com> (raw)
In-Reply-To: <bae050c10804280450g591c74bfn711f668863b693f1@mail.gmail.com>
ext Nancy wrote:
>>> Oh, thank you for ponting out my mistake!
>>> You mean UBI admit the amount of current badblocks are part of
>>> reserved PEBs, right?
>>>
>> Not exactly. It is just that UBI does not mind if there are not enough
>> PEBs to meet the number desired for bad-block handling.
>>
>>> If the answer is yes, then the volume size I'm goting to create should
>>> be equal to
>>>
>>> (total number of PEB this ubi device has - total number of reserved
>>> PEBs) * LEB size
>>>
>>> not what UBI think:
>>> (number of good PEBs - total number of reserved PEBs) * LEB size
>>>
>>> Am I right?
>>>
>> I am not sure what you are trying to achieve. You can always use
>> the -m option of ubimkvol to set volume size to maximum available size.
>>
> Let me clarify the problem I met:
> there are so many Nand flash for burning. Each one of them may have
> different numbers of badblocks, but that number do not exceed the reserved
> badblock number. Each one of them should have the same maximum avaliable
> volume size. But the practice tell no, the maximum avaliable volume size
> effect by number of badblocks the current MTD partition has. That's wrong.
> You can try by yourself.
>
The following section from UBI documentation may help you:
http://linux-mtd.infradead.org/doc/ubi.html#L_autoresize
Let us know if it doesn't meet your needs.
next prev parent reply other threads:[~2008-04-28 12:03 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-25 6:54 UBI: badblock management confusion! Nancy
2008-04-25 10:47 ` Adrian Hunter
2008-04-25 12:08 ` Nancy
2008-04-25 12:12 ` Nancy
2008-04-28 7:59 ` Adrian Hunter
2008-04-28 11:45 ` Nancy
2008-04-28 7:57 ` Adrian Hunter
2008-04-28 11:50 ` Nancy
2008-04-28 11:58 ` Adrian Hunter [this message]
2008-04-28 12:24 ` Nancy
2008-04-28 14:08 ` Adrian Hunter
2008-04-29 2:06 ` Nancy
2008-04-30 9:14 ` Adrian Hunter
2008-05-04 1:42 ` Nancy
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=4815BBDD.4090004@nokia.com \
--to=ext-adrian.hunter@nokia.com \
--cc=linux-mtd@lists.infradead.org \
--cc=nancydreaming@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.