Legacy gpmi-nand layout device tree option not handled correctly

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Legacy gpmi-nand layout device tree option not handled correctly

2,498件の閲覧回数
austinphillips
Contributor II

Hello,

 

I'm using the Linux BSP source code from git://git.freescale.com/imx/linux-2.6-imx.git, tag rel_imx_4.1.15_1.2.0_ga.  Hardware is i.MX6 SOLO with Micron NAND MT29F4G08ABADAWP which has 2K + 64bytes OOB pages.

 

The gpmi-nand.c driver implements an interface to NAND parts which utilise the BCH ECC module for hardware-supported bit error correction within the i.MX 6.  The gpmi-driver supports two NAND layouts, the current and 'legacy' layouts.  From what I understand, the legacy layout was used with 3.x kernels which for the NAND device I'm using had an ECC strength of 8.  Newer layout appear to use an ECC strength of 4 for our Micron part as this is the minimum ECC strength reported by the NAND device.

 

According to the documentation, the gpmi-nand driver should accept a 'fsl,legacy-bch-geometry' device tree option to support the legacy BCH layout.

 

There is a bug in the implemention from rel_imx_4.1.15_1.2.0_ga where fsl,legacy-bch-geometry is only recognized if the option to put bad block table on flash is selected.  I've attached a patch to fix this issue.

 

Regards

Austin

Original Attachment has been moved to: fix-gpmi-fsl-legacy-bch-geometry-device-tree-option.patch.zip

ラベル(3)
1 返信

1,326件の閲覧回数
peacefulatom
Contributor II

Austin, thanks a lot, Your experience is very useful!

0 件の賞賛
返信