First I think you could use P2020RDB-PC_init_sram_flash.tcl to initialize your customize target board and flash u-boot.(Probably you only need to modify the address for NOR Flash)
In you want to modify the initialization file to coincide with the 36bit address space, please pay attention to the following.
1. MMU TLB configuration, please note effective addresses are 32 bit, please refer to the table "e500v2 TLB1 Registers" in CW_PA_v10.3.3\PA\Help\PDF\Targeting_PA_Processors.pdf.
# MMU initialization
# define 256KB TLB1 entry 3: 0x00000000 - 0x0003FFFF; for internal chip SRAM
reg ${CAM_GROUP}L2MMU_CAM3 = 0x400001C0FC0800000000000000000001
# define 1MB TLB1 entry 1: 0xE0000000 - 0xE00FFFFF; for CCSR Space, non cacheable
reg ${CAM_GROUP}L2MMU_CAM1 = 0x500003CAFC080000E0000000E0000001
# define 16MB TLB1 entry 2: 0xFFF000000 - 0xFFFFFFFF; for Local Bus, cache inhibited
reg ${CAM_GROUP}L2MMU_CAM2 = 0x70000FCAFC08000FFF000000FF000001
# define 1MB TLB1 entry 7: 0xFF8000000 - 0xF80FFFFF; for NAND, cache inhibited
reg ${CAM_GROUP}L2MMU_CAM7 = 0x500003CAFC08000FF8000000F8000001
2. For CCSRBAR, please configure as the default
mem [CCSR 0x0] = 0x000e0000
set CCSRBAR 0xe0000000
Your configuration is correct, but if specifying variable CCSRBAR as 0xfe0000000, there is some problem in the tcl script to compute the value more than 32bit.
Attached an initialization file I modified based on yours.
Have a great day,
Yiping Wang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------