日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

nand ubi -2 ubi管理下的SLC nand

發(fā)布時間:2024/4/14 编程问答 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 nand ubi -2 ubi管理下的SLC nand 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

一 ubi管理下的SLC nand
refer to
http://www.linux-mtd.infradead.org/doc/ubi.html
http://www.360doc.com/content/12/0305/19/1317564_192019619.shtml
1
對于K9K8G08U0A (1GB SLC),


2.
假如對tiny6410的SLC 1G核心板的nand 的MTD分區(qū)如下,


3.
在58 0000 - 4000 0000的mtd分區(qū)之上,假如僅人為劃分了一個UBI Volume(默認(rèn)還有一個內(nèi)部卷),ubi管理下的這個mtd結(jié)構(gòu)如下,
(假設(shè)沒有子頁)

說明:
PEB physical eraseblock 物理擦除塊,即nand的最小擦除單位,為64個頁,131072B。
LEB logical eraseblock 邏輯擦除塊,是ubi 卷里的概念,是對物理擦除塊的映射,但不包含物理擦除塊最前面的EC頭頁和VID頭頁。所以是62個頁,126976B。
???
erase counter header (or EC header) which contains the erase counter of the physical eraseblock (PEB) plus some other not so important information
volume identifier header (or VID header) which stores volume ID and logical eraseblock (LEB) number thisPEB belongs to (plus some other not so important information).

layout volume 也就是mtd分區(qū)的卷表所在的卷,包括兩個LEB,但內(nèi)容一致。
Volume table is an on-flash data structure which contains information about each volume on this UBI device
Internally, the volume table resides in a special-purpose UBI volume which is called
layout volume

一個mtd分區(qū)下可以建好多ubi卷,但不能超過128個。

ubi管理下的nand的額外開銷:
2 PEBs are used to store the volume table;
1 PEB is reserved for wear-leveling purposes;
1 PEB is reserved for the atomic LEB change operation;
some amount of PEBs is reserved for bad PEB handling; this is applicable for NAND flash, but not for NOR flash; the amount of reserved PEBs is configurable and is equal to 20 blocks per 1024 blocks by default;
UBI stores the EC and VID headers at the beginning of each PEB; the amount of bytes used for these purposes depends on the flash type and is explained below.

在flash說明書上也有塊圖,里面的塊就是PEB,每個PEB去掉page 0,1就可以被映射為一個LEB


轉(zhuǎn)載于:https://www.cnblogs.com/-song/archive/2012/12/06/3331837.html

總結(jié)

以上是生活随笔為你收集整理的nand ubi -2 ubi管理下的SLC nand的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。