iMX6: nand flash recognized but not initialized

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

iMX6: nand flash recognized but not initialized

2,755 次查看
EgleTeam
Contributor V

Hi,

we have an iMX6 custom board running under linux 3.0.35. The board has installed a Spansion 3.3V / 8bit / 512MB nand flash. Linux recognizes the chip and reads the ID (what make us think that all the "pad to pad" connections are right) but is unable to initialize the memory. This is the log:

-----------------------------------------------------------------------------

ONFI flash detected

ONFI param page 0 valid

NAND device: Manufacturer ID: 0x01, Chip ID: 0xdc (AMD S34ML04G1)

failed in set feature of mode : 4

Chip scan failed

gpmi-nand: probe of imx6q-gpmi-nand.0 failed with error -22

GPMI NAND driver registered. (IMX)

-----------------------------------------------------------------------------

Any advice?

Regards,

Manuel.

标签 (4)
0 项奖励
4 回复数

849 次查看
fortuneteller
Contributor I

Hello,

Actually I have Micron chip on board and get similar error. As you can see chip is also not detected properly. Do you have any hints on this topic? Did you change anything else than just NAND chip (Spansion -> Micron)?

I am using builroot/wandboard kernel 3.0.35 (and i.MX6 DL).

[ 1.849952] ONFI flash detected

[ 1.853241] ONFI param page 0 valid

[ 1.856739] NAND device: Manufacturer ID: 0x01, Chip ID: 0xf1 (AMD S34ML01G2)

[ 1.864119] failed in set feature of mode : 4

[ 1.868480] Chip scan failed

[ 1.871419] gpmi-nand: probe of imx6q-gpmi-nand.0 failed with error -22

[ 1.878158] GPMI NAND driver registered. (IMX)

Best regards!

0 项奖励

849 次查看
EgleTeam
Contributor V

Hi Fortune,

we changed the ICs. We have not tested yet with newer kernels, perhaps the issue is already solved: try with 3.10 (freescale's "fork") or 3.16 (mainline). Mainline kernels are the "standard" with a lot of benefits but unfortunately some hardware may be is not supported (gpu, vpu, and so on).

Hope to be helpful. Best regards.

0 项奖励

849 次查看
EgleTeam
Contributor V

We've tested an equivalent chip from Micron and it does work:

------------------------------------------------------------

ONFI flash detected

ONFI param page 0 valid

NAND device: Manufacturer ID: 0x2c, Chip ID: 0xdc (Micron MT29F4G08ABADAWP)

gpmi-nand imx6q-gpmi-nand.0: enable asynchronous EDO mode 5

Scanning device for bad blocks

GPMI NAND driver registered. (IMX)

------------------------------------------------------------

It seems that iMX6 or its GPMI linux driver doesn't like Spansion chips :smileyplain:.

Best regards,

Manuel.

0 项奖励

849 次查看
satoshishimoda
Senior Contributor I

Hi community,

Same issue was occurred on a i.MX6 custom board with AMD chip.

Could you give me some advice to avoid this issue?

Best Regards,

Satoshi Shimoda

0 项奖励