P2020 uboot spl problem

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

P2020 uboot spl problem

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

709 Views
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 Kudos

733 Views
su007
Contributor I

one more thing:

should I print all tlb entries for debug?

0 Kudos