The data read from nand flash is wrong during booting.

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

The data read from nand flash is wrong during booting.

890 Views
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 Kudos
Reply
2 Replies

876 Views
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 Kudos
Reply

869 Views
wangmeng0427
Contributor II

Hi yiping,

The issue has been resolved. Thanks very much.

0 Kudos
Reply