cannot access NAND STL partition

Iram Shahzad iram.shahzad at jp.fujitsu.com
Fri Feb 6 01:06:42 EST 2009


Hi

I am having the following problem related to reading data
from NAND. Any hints will be highly appreciated.

Problem in short:
-------------------
I can read some partitions but cannot read other ones.

Problem in long:
-------------------
I need to access my rootfs from Linux. The rootfs is located
in NAND. If I write the rootfs in the NAND using u-boot or
Linux itself, then I can read the rootfs from Linux without
problem.

But the flash has to be programmed using a special flash
writer. While doing this the flash is divided into several
partitions, some partitions are STL and the others are BML.
Now I find that u-boot/Linux can read BML partitions correctly
but cannot read STL partitions. Reading STL partition gives
unexpected data.

For test, I am able to place my rootfs in the BML partition
in which case everything works fine. But finally I have to
place the rootfs in STL partition.

Do you have any idea how can Linux read data from STL partition?
I guess I need some kind of translation layer on top of my
low level NAND driver but am not sure about that.
Currently I am using the following components.
    drivers/mtd/cmdlinepart + drivers/mtd/onenand

Is FTL/NFTL used for this purpose?

Best regards
Iram





More information about the linux-mtd mailing list