my cpu is B4860 and I use the the sdk-v2.0-1703; my problem is : When the system restarts,Occasionally, The system will print “**fsl,ifc-nand fff810000.nand2: Controller is not responding” continuously,the reboot log as following:
.................
[11:16:20][ 1.574676] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xac
[11:16:20][ 1.581029] nand: AMD/Spansion S34MS04G1
[11:16:20][ 1.584950] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[11:16:20][ 1.593035] Bad block table found at page 262080, version 0x01
[11:16:20][ 1.599731] Bad block table found at page 262016, version 0x01
[11:16:20][ 1.606007] nand_read_bbt: bad block at 0x000011700000
[11:16:20][ 1.611573] 1 ofpart partitions found on MTD device fff800000.flash
[11:16:20][ 1.617839] Creating 1 MTD partitions on "fff800000.flash":
[11:16:20][ 1.623411] 0x000000000000-0x000020000000 : "user"
[11:16:20][ 1.629389] fsl,ifc-nand fff800000.nand: IFC NAND device at 0xfff800000, bank 1
[11:16:20][ 1.637595] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xac
fsl,ifc-nand fff810000.nand2: Controller is not responding
fsl,ifc-nand fff810000.nand2: Controller is not responding
fsl,ifc-nand fff810000.nand2: Controller is not responding
fsl,ifc-nand fff810000.nand2: Controller is not responding
........................
Hello zhiming qiu,
Please refer to the following section in drivers/mtd/nand/fsl_ifc_nand.c, please try whether increasing the value of IFC_TIMEOUT_MSECS in drivers/mtd/nand/fsl_ifc_nand.c would be helpful.
/* wait for command complete flag or timeout */
wait_event_timeout(ctrl->nand_wait, ctrl->nand_stat,
msecs_to_jiffies(IFC_TIMEOUT_MSECS));
/* ctrl->nand_stat will be updated from IRQ context */
if (!ctrl->nand_stat)
dev_err(priv->dev, "Controller is not responding\n");
Thanks,
Yiping
Hello Yiping wang,
We have increased the value of IFC_TIMEOUT_MSECS from 500 to 1000, but It's no use . From the log above, we have two nand flash chips on IFC,but only nand2 have the problem, Do you have any other suggestions?
Thanks,
Hello zhiming qiu,
Please check IFC timing configuration defined in u-boot header file.
Please refer to https://community.nxp.com/docs/DOC-333350 .
Thanks,
Yiping