Kernel version is 2.6.35.3, and the board has a ST micro nand flash, totally 64MB(512+16 per page).
But when I burn the board, it fails to attach mtd1 to ubi0 subsystem. Here is the debug trace:
i.MX GPMI NFC
NFC: Version 1, 8-chip GPMI and BCH
Boot ROM: Version 1, Single-chip boot area, block mark swapping supported
Scanning for NAND Flash chips...
NAND device: Manufacturer ID: 0x20, Chip ID: 0x76 (ST Micro NAND 64MiB 3,3V 8-bit)
-----------------------------
NAND Flash Device Information
-----------------------------
Manufacturer : ST Micro (0x20)
Device Code : 0x76
Cell Technology : SLC
Chip Size : 64 MiB
Pages per Block : 32
Page Geometry : 512+16
ECC Strength : 8 bits
ECC Size : 512 B
Data Setup Time : 35 ns
Data Hold Time : 15 ns
Address Setup Time: 0 ns
GPMI Sample Delay : 6 ns
tREA : Unknown
tRLOH : Unknown
tRHOH : Unknown
Description : NAND512W3A2
-----------------
Physical Geometry
-----------------
Chip Count : 1
Page Data Size in Bytes: 512 (0x200)
Page OOB Size in Bytes : 16
Block Size in Bytes : 16384 (0x4000)
Block Size in Pages : 32 (0x20)
Chip Size in Bytes : 67108864 (0x4000000)
Chip Size in Pages : 131072 (0x20000)
Chip Size in Blocks : 4096 (0x1000)
Medium Size in Bytes : 67108864 (0x4000000)
------------
NFC Geometry
------------
ECC Algorithm : BCH
ECC Strength : 8
Page Size in Bytes : 528
Metadata Size in Bytes : 10
ECC Chunk Size in Bytes: 512
ECC Chunk Count : 1
Payload Size in Bytes : 512
Auxiliary Size in Bytes: 16
Auxiliary Status Offset: 12
Block Mark Byte Offset : 502
Block Mark Bit Offset : 0
-----------------
Boot ROM Geometry
-----------------
Boot Area Count : 1
Boot Area Size in Bytes : 20971520 (0x1400000)
Stride Size in Pages : 64
Search Area Stride Exponent: 2
Scanning device for bad blocks
Boot area protection is enabled.
Creating 2 MTD partitions on "gpmi-nfc-main":
0x000000000000-0x000001400000 : "gpmi-nfc-0-boot"
0x000001400000-0x000004000000 : "gpmi-nfc-general-use"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size: 16384 bytes (16 KiB)
UBI: logical eraseblock size: 15360 bytes
UBI: smallest flash I/O unit: 512
UBI: VID header offset: 512 (aligned 512)
UBI: data offset: 1024 <------------------------------------burn process stops here
according to the setup, BCH page layout is:
PAGE_SIZE = 528
META_SIZE = 10
DATA0_SEIZE = 512
ECC0 = 4
DATAN_SIZE = 512
ECCN = 4
NBLOCKS = 0
, which I think is OK.
So, what's the possible reason for attaching mtd fails? Wrong configuration of nand flash?
Solved! Go to Solution.
Hi h k
recommended to use nands with 2K,4K page
sizes as nand with 512B is not supported by gpmi driver. References
to it can be found in BSP reference manual (i.MX28_Linux_BSP_RM.pdf)
sections 2.3.8.1 (GPMI/NAND) and 14.2.2 (Error Correction) for details.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi h k
recommended to use nands with 2K,4K page
sizes as nand with 512B is not supported by gpmi driver. References
to it can be found in BSP reference manual (i.MX28_Linux_BSP_RM.pdf)
sections 2.3.8.1 (GPMI/NAND) and 14.2.2 (Error Correction) for details.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------