P2020 uboot spl problem

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

P2020 uboot spl problem

1,372 次查看
su007
Contributor I

hello,

i have a custom p2020 board.

i use sd boot and have checked the spl code, the boot hung once set law for

ddr space. board/Freescale/p1_p2_rdb/spl.c and ddr.c is the code file.

I comment the ddr initialization, it also hung once set law for ddr. I think set law is not related with ddr.

i also try other law set. It’s ok.

can the problem is tlb related?

so strange problem.

 

Waiting for your reply!

 

0 项奖励
回复
2 回复数

1,344 次查看
yipingwang
NXP TechSupport
NXP TechSupport

The following code is in board/freescale/p1_p2_rdb_pc/ddr.c.

if (set_ddr_laws(CONFIG_SYS_DDR_SDRAM_BASE,
ddr_size, LAW_TRGT_IF_DDR_1) < 0) {
printf("ERROR setting Local Access Windows for DDR\n");
return 0;
};

Please check whether the message "ERROR setting Local Access Windows for DDR" is printed after running set_ddr_laws(CONFIG_SYS_DDR_SDRAM_BASE, ddr_size, LAW_TRGT_IF_DDR_1) < 0

Please check whether DDR LAW configuration is overlapped with other LAWs configuration.

0 项奖励
回复

1,368 次查看
su007
Contributor I

one more thing:

should I print all tlb entries for debug?

0 项奖励
回复