Hello,
LogicPD EVM board for OMAP-L138 (Da850EVM) comes with a 512 MiBytes NAND flash.
It is a Micron MT29F4G08 device.
All the UBI tools handle the concepts of Erase Blocks (Physical an Logical), pages and sub-pages.
UBI needs two headers for each Physical Erase Block each needing a sub-page.
Usually on NAND devices page size is 2048 bytes and sub-page size is 512 bytes.
So, UBI headers need only one page. So we get :
Phgysical Erase Block size is 128 K
Logical Erase Block size is 126 K (ie 128K minus one page for headers - a page is the minimal I/O size).
I can't find trace of sub-page concept in the Micron documentation for this device.
So I conclude that page size is 2048 and sub-page size is 2048.
So headers that shall be independant needs 2 pages.
And Logical Erase Block size should be 124 KiBytes, 128 K minus 2 pages of 2K.
Unfortunately there is no way to force this value in the UBI tools.
the -s option in ubinize is without effect. At the end there is a mention of 512 bytes sub pages even with -s 2048.
And when you want to create empty UBI volumes there is no option to force the sub page size to 2048.
The ubimkvol
works but tells that Logical Erase Block size is 126 KiB.
I swear that further wear levelling or bad blocks management will not work.
Can somebody gives an explanation ?
Thank you
Gilbert Brisset.