当前位置: 动力学知识库 > 问答 > 编程问答 >

embedded linux - Kernel does NOT recognize NAND bad blocks marked by u-boot

问题描述:

While in u-boot of my ARM based board (DM368) I mark some kernel partition block manually as bad. U-boot says that it was marked and, for example, while writing/reading kernel image I see it skipping this bad block.

But when I try to write the same partition from within Linux (loaded via NFS) I see that Linux nandwrite command USES this bad block! I checked this in several ways - Linux ignores bad block mark for 100%. But everywhere in the internet it is said that BBT is one for both u-boot and Linux.

So, where is the catch?

网友答案:

OK, the answer is found. For some unclear reason Texas Instruments, manufacturer of the board DM365EVM which I use for development, provides the kernel with different BBT structure. They defined BBT offset as 2, while all the world, including the provided u-boot, defines this offset as 8. I wish them a good health for many years.

分享给朋友:
您可能感兴趣的文章:
随机阅读: