ls1046ardb: ERROR: fsl_ifc_read_buf beyond end of buffer (4096 requested, 512 available)

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

ls1046ardb: ERROR: fsl_ifc_read_buf beyond end of buffer (4096 requested, 512 available)

Jump to solution
728 Views
renaud
Contributor IV

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

 

 

0 Kudos
1 Solution
717 Views
yipingwang
NXP TechSupport
NXP TechSupport

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.

View solution in original post

0 Kudos
2 Replies
727 Views
renaud
Contributor IV

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

0 Kudos
718 Views
yipingwang
NXP TechSupport
NXP TechSupport

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.

0 Kudos