NAND Flash ONFI Read Problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

NAND Flash ONFI Read Problem

787 Views
xiluo
Contributor II

Hi All,

I am working on a board powered by QorIQ P1021. It used P1021RDB as the reference.

I built a nor-flash based u-boot image and made it run on the board. During the bootup, u-boot tries to detect the NAND flash, by reading the "Device ID" and ONFI information. The reading of "Device ID" gives 0x4F4E4649 (that's 'O', 'N', 'F', 'I'), which is correct. However, the reading of ONFI information gives the following:

0xF8000000 FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
0xF8000020 FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
0xF8000040 FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FF4F4E46 ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿONF
0xF8000060 4902001C 001B0000 00000000 00000000 00000000 00000000 00000000 00535041 I............................SPA
0xF8000080 4E53494F 4E202020 20533334 4D4C3032 47312020 20202020 20202020 20010000 NSION S34ML02G1 ...
0xF80000A0 00000000 00000000 00000000 00000800 00400000 02000010 00400000 00000800 .................@.......@......
0xF80000C0 00012301 28000105 01010304 00010104 00000000 00000000 00000000 000A1F00 ..#.(...........................
0xF80000E0 1F00BC02 10271900 64000000 00000000 00000000 00000000 00000000 00000000 ..¼..'..d.......................

 

Notice that 0xF8000000 is the base address of the eLBC/FCM buffer. Apparently, there is an offset of 0xFD with the ONFI information read. And this offset causes the NAND detection to fail. The NAND flash chip used is Spansion S34ML02G1.

Any help would be appreciated.

Thanks,

Xiaoming

Tags (2)
0 Kudos
3 Replies

749 Views
ufedor
NXP Employee
NXP Employee

> there is an offset of 0xFD with the ONFI information read

What does it mean?

 

Which Linux SDK is used?

0 Kudos

743 Views
xiluo
Contributor II

Thanks for reply.

The eLBC/FCM NAND driver buffer is at 0xF8000000. The memory dump after ONFI read shows that the information we read from NAND starts at 0xF800005D (sorry I made a mistake, the offset is 0x5D not 0xFD). This offset makes the ONFI detection fail.

The SDK I am using is QorIQ-SDK-V1.8. That's the one I can build without problem after trying many combinations of Linux and SDK.

0 Kudos

733 Views
ufedor
NXP Employee
NXP Employee

The issue was not reported by other customers.

Please use a debugger to determine cause of the issue.

0 Kudos