The data read from nand flash is wrong during booting.

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

The data read from nand flash is wrong during booting.

919 次查看
wangmeng0427
Contributor II

Hi 

I'm debugging booting from nand flash on T1024 CPU, using the config T1024RDB_NAND_defconfig of u-boot. After the ddr initialization, loading uboot from nand flash. But the datas from nand flash are all 0xff.

The function flow is : board_init_r(t102xrdb/spl.c)->nand_boot(fsl_ifc_spl.c)->nand_spl_load_image(fsl_ifc_spl.c). 

During the booting, there is no nand_init. Is the flow right? 

Thanks very much.

0 项奖励
回复
2 回复数

905 次查看
yipingwang
NXP TechSupport
NXP TechSupport

You need to modify section "ONFI NAND Flash mode0 Timing Params" in include/configs/T102xRDB.h in u-boot source code, please calculate IFC timing configuration based on the datasheet of NAND flash on your target board.

For IFC timing calculation, please refer to https://community.nxp.com/t5/Layerscape-Knowledge-Base/IFC-Controller-Configuration-on-QorIQ-Custom-...

0 项奖励
回复

898 次查看
wangmeng0427
Contributor II

Hi yiping,

The issue has been resolved. Thanks very much.

0 项奖励
回复