Please teach UBI
dedekind1 at gmail.com
Tue Dec 14 11:44:36 EST 2010
On Sat, 2010-12-11 at 02:34 +0900, Tarosa wrote:
> Because I do not usually use English, unknown sentences might be written.
> It is a basic question.
> UBI is an array of the initial of "Unsorted block images". Please teach the
> meaning of this "Unsorted block images".
Well, you can consider physical erase blocks to be sorted. Then when you
put UBI on top, you have logical eraseblocks (LEBs). Each LEB contains
an "image" (data), and it is mapped to a PEB (block), and and UBI makes
these images to be unsorted in physical level.
1. block = physical eraseblock
2. block image - the contents of a physical eraseblocks.
Without UBI, "block images" are sorted.
With UBI, they become "unsorted", in a sense that UBI adds logical layer
with mapping, so on the physical level the "block images" become
Hence the name. It also means "where" in Latin. IBM guys invented it,
not me, so my understanding can be wrong.
> Was there a filesystem of "Sorted block images" in the past?
In physical eraseblocks.
> What after the filesystem is different as for not sorting block images?
UBI is not file-system at all. It is a layer between MTD and
file-system. UBIFS is a file-system which relies on UBI. It name comes
from UBI + FS = UBIFS.
> Where of UBI is unsorted block images?
> I do not understand. Please tell me.
> There are another and a question.
> It is defined that CONFIG_MTD_UBI_WL_THRESHOLD is 4096. It is thought this is to
> mean WL is done as difference between a maximum and a minimum of the value of
> erace counter of PEBs are always in the range of 4096*2(=8192).
Not 8192, but 4096.
> Why is it 8192 ?
> In a value that is bigger than 8192, isn't it good? Or, isn't it good in a
> narrower range?
This is just a default. For modern flash you may need lower value, this
Artem Bityutskiy (Артём Битюцкий)
More information about the linux-mtd