[PATCH] Make the mtdblock read/write skip the bad nand sector

Hans Zhang zhanghonghui at innofidei.com
Sun Nov 24 20:29:11 EST 2013


On 2013/11/22 19:45, Ezequiel Garcia wrote:
>> Thanks for your reply.
>> This is for my embed system upgrade, I reserved one nand partition for filesystem
>> environment which will load to DDR while uboot booting.
>> This filesystem.uboot file should be able to read both by uboot and kernel, and
>> maybe written by uboot and kernel. There will be no filesystems upon the nand in
>> case the loader may not support some filesystem types while uboot booting.
>>
>> Seems that the trimmed environment of OS has get rid of the mtd-tools, So the dd
>> command was the most convenience tools to use by hand.
>>
> I still don't understand why are you using mtdblock. Why can't you write
> through the char device?

Well, yes, write through the char device would be a solution.
I think that maybe it's an optional approach through mtdblock in case we do not have
the mtd-tools in our environments, we do provider a simpler way to write the NAND
through mtdblock.

“This E-mail and its attachments may contain legally privileged or confidential information from Innofidei Corporation. Any unauthorized copy, use, disclosure or distribution of this information is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by E-mail or telephone and delete this E-mail and all its attachments immediately.
本邮件及其附件内容可能包含创毅公司享有专有法律权利的或者需要保密的信息。严禁任何人未经发件人许可以任何形式复制、使用、披露或者散发此项信息。如果您不是该收件人,请您立即通过邮件或者电话通知发件人并立即删除本邮件及其附件内容.”





More information about the linux-mtd mailing list