iMX.6 NAND: can BCH be disabled?

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

iMX.6 NAND: can BCH be disabled?

1,554件の閲覧回数
_timm
Contributor II

Hi, 

We are using a custom designed SoC with a iMX6D and a NAND device with built-in 4-bit ECC. Since we are not using the NAND as a filesystem, and don't expect to incur many bit errors due to wear, we would like to use the built-in 4-bit ECC mechanism in the NAND device, and disable the BCH in the iMX6. It is thought that this would increase the read/write speed, which are currently not good. I have modified the appropriate fields in the FCB that gets written to the NAND device, and also the Layout registers. I have also modified the read and write methods so that they do not set the ECC control fields in the descriptor chains. The SoC does not boot. Is there anything that I am missing here? Does Block 0 need to be set to ECC level 1 or some edge case that I am forgetting. I've reviewed the documentation, and haven't found the case described to turn off the BCH. 

Assistance is much appreciated. Thank you. 

Best Regards,

Tim Meese

ラベル(3)
0 件の賞賛
返信
4 返答(返信)

1,104件の閲覧回数
Yuri
NXP Employee
NXP Employee

Hello,

  when using a NAND device with built-in ECC - it may be possible to modify Linux / U-boot drivers 

to support such feature, but i.MX boot ROM cannot be changed, therefore boot with such 

NAND will provide problems.

Regards,

Yuri.

1,104件の閲覧回数
_timm
Contributor II

Thanks, Yuri. 

I tried setting all of the ECC levels in the BCH to zero, set the BCH values in the FCB structure to zero. I then booted the bootrom into RAM, erased the entire part, and wrote the FCB and bootrom. The system did not boot. Is is that I cannot specify 0 as an ECC level in the FCB, or if I do, do I have to do something else? 

Thanks,

Tim Meese

0 件の賞賛
返信

1,105件の閲覧回数
Yuri
NXP Employee
NXP Employee

Hello,

  i.MX boot ROM configures the GPMI registers - hardly it may be "workarounded".

Regards,

Yuri.

0 件の賞賛
返信

1,105件の閲覧回数
b36401
NXP Employee
NXP Employee

You can use raw NAND for such purposes.

By the way here is a document regarding to performance comparation:
https://community.nxp.com/docs/DOC-334290

Have a great day,
Victor

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信