I have a ls1046ardb for which I am doing my own boot loader port.
I am getting the error described in the title after NAND flash identification:
nand_base: device found, Manufacturer ID: 0x2c, Chip ID: 0xac
nand_base: Micron MT29F4G08ABBEAH4
nand_base: 512 MiB, SLC, erase size: 256 KiB, page size: 4096, OOB size: 224
ERROR: fsl_ifc_read_buf beyond end of buffer (4096 requested, 512 available)
I can neither read or write data to the NAND. Though, it seems I can read OOB data correctly.
NAND controller configuration seems correct compared to U-boot (CSOR, FTIMx,)
The NAND driver I am using is properly working with a P1014.
In which circumstances would this message appear?
Could it be that I have not configured some registers outside of the IFC controller? clock,...?
Cheers,
Renaud
Solved! Go to Solution.
Please check IFC AMASK register definition, it is defined as the following in include/configs/ls1046ardb.h in u-boot source code.
#define CONFIG_SYS_NAND_AMASK IFC_AMASK(64 * 1024)
NAND flash is not memory mapped device, AMASK is 64k NAND Flash buffer size.
In fact the whole error is:
nand_base: device found, Manufacturer ID: 0x2c, Chip ID: 0xac
nand_base: Micron MT29F4G08ABBEAH4
nand_base: 512 MiB, SLC, erase size: 256 KiB, page size: 4096, OOB size: 224
ERROR: fsl_ifc_read_buf beyond end of buffer (4096 requested, 512 available)
ERROR: fsl_ifc_read_buf beyond end of buffer (224 requested, 0 available)
ERROR: fsl_ifc_read_buf beyond end of buffer (4096 requested, 0 available)
ERROR: fsl_ifc_read_buf beyond end of buffer (224 requested, 0 available)
ERROR: fsl_ifc_read_buf beyond end of buffer (4096 requested, 0 available)
ERROR: fsl_ifc_read_buf beyond end of buffer (224 requested, 0 available)
ERROR: fsl_ifc_read_buf beyond end of buffer (4096 requested, 0 available)
ERROR: fsl_ifc_read_buf beyond end of buffer (224 requested, 0 available)
Seems related to reading the BBT
Please check IFC AMASK register definition, it is defined as the following in include/configs/ls1046ardb.h in u-boot source code.
#define CONFIG_SYS_NAND_AMASK IFC_AMASK(64 * 1024)
NAND flash is not memory mapped device, AMASK is 64k NAND Flash buffer size.