nvflash problem on TK1(PM375) custom board

Hi,

We build custom board and DDR3 works only row frequency.
We are trying to figure it out. (Any suggestions welcome)

At the same time, we try to flash firmware but it failed like below.
It said “Error while getting the SDRam size”.
What does it means ?
Any suggestions?

Thanks.

runreg

nvhost.exe --avp --sdram PM375_TK1_Micron_4GB_MT41K512M16HA107_204MHz.cfg --skip-reset --chip t124 wfblit_lite.axf --  -fc 1,50,0 -fh 150   -vic 300  -reg 1
nvhost: ========================================
nvhost: Found --chip parameter
nvhost:   ...success!  Found t124
nvhost: ========================================
nvblserver: Loading "wfblit_lite.axg" via usb:...
Done.
WARNING: Ignoring auto-detect due to --chip parameter

...Now connected to target using usb

target_stdout: enter NvTestMain V01
target_stdout: Processing argument 1: -fc
target_stdout: Processing argument 3: -fh
target_stdout: Processing argument 5: -vic
target_stdout: -vic 300
target_stdout: Processing argument 7: -reg
target_stdout: The number of pattern: 16, box num 30
target_stdout: box width/height 2048 128 Surface width/height: 2048 3840
target_stdout: init sdram
target_stdout: Memory size = 0x00000400
target_stdout: SDRAM Subtest Start
target_stdout: SDRAM Subtest PASS
target_stdout: SDRAM Subtest Start
target_stdout: SDRAM Subtest PASS
target_stdout: SDRAM Subtest Start
target_stdout: SDRAM Subtest PASS
target_stdout: SDRAM Subtest Start
target_stdout: SDRAM Subtest PASS
target_stdout: SDRAM test PASSED
target_stdout: Register Engine
target_stdout: Find Engine id: 0x5d
target_stdout: search id: 0x5e
target_stdout: search id: 0x5d
target_stdout: Engine ID: 0x5d found
target_stdout:
target_stdout:
target_stdout: -------Start: sanity in Register based mode
target_stdout: Board: E1186
target_stdout: top 0xfffffffe
target_stdout: initBLit
target_stdout: Init Vic Frequency Ctrl
target_stdout: Setting PLLC (600MHz). VIC (300MHz), AVP (150MHz), Host1x (150MHz)
target_stdout: SOURCE_VIC reg: 0x20000002 VIC source: PLLC_OUT0
target_stdout: ENB X reg: 0x01040000 vic clock: enable
target_stdout: SOURCE_HOST1X reg: 0x40000006 HOST1X source: PLLC_OUT0
target_stdout: ENB L reg: 0x90409130 host1x clock: enable
target_stdout: AllocSyncpt
target_stdout: channe base:0x50000000 sync base:0x2100, syncpt0 base:0xf80
target_stdout: prep surface
target_stdout: DRAM addr range: 0x80000000 - 0xfffffffe
target_stdout: DRAM footprint:  0x80000000 - 0x81e00000 (wfblit)
target_stdout: DRAM used: 30.0MB (blit uses 30.0MB)
target_stdout: Blit Start Addr: 0x80000000, Medium loops: 0x1
target_stdout: == Range 0 in 1: 0x80000000 - 0x81dfffff
target_stdout: wfblitcore
target_stdout: Patterns loaded. starting blits.
target_stdout: PMC aperture space
target_stdout: PMC_PLLP_WB0_OVERRIDE reg: 0x00000422
target_stdout: PLLM_WB0_OVERRIDE_FREQ reg: 0x0000010c
target_stdout: PMC:PLLP: override: disable
target_stdout: PMC:PLLM: override: disable (12,1)
target_stdout:
target_stdout: CAR aperture space
target_stdout: PLLM: 408MHz(1,34,0), PLL_BASE: 0x4c002201,
target_stdout: PLLP: override: disable
target_stdout: PLLP: 408MHz(12,1,0), PLL_BASE: 0x4800010c,
target_stdout: PLLC: 600MHz(1,50,0), PLL_BASE: 0x48003201,
target_stdout: EMC source clk: PLLP_OUT0,  SOURCE_EMC: 0x40000002
target_stdout: (ref=12MHz)
target_stdout: EMC freq: 204MHz
target_stdout: start box. loops: 0x10 numbox: 30
target_stdout: end box
target_stdout: Programming done. Waiting test done.
target_stdout: ----------------------
target_stdout: T124 Memory Statistics
target_stdout: ----------------------
target_stdout: Stats (
target_stdout:
target_stdout: Channel 0:
target_stdout: DEV 0:
target_stdout: .RD   (
target_stdout: .RD8  (
target_stdout: .WR   (
target_stdout: .WR8  (
target_stdout: .ACT  (
target_stdout: .REF  (
target_stdout: .SREF (
target_stdout: .E1CA (
target_stdout: .E1SA (
target_stdout: .E0CA (
target_stdout: .E0SA (
target_stdout: .E1CN (
target_stdout: .E1SN (
target_stdout: .E0CN (
target_stdout: .E0SN (
target_stdout:
target_stdout: DEV 1:
target_stdout: .RD   (
target_stdout: .RD8  (
target_stdout: .WR   (
target_stdout: .WR8  (
target_stdout: .ACT  (
target_stdout: .REF  (
target_stdout: .SREF (
target_stdout: .E1CA (
target_stdout: .E1SA (
target_stdout: .E0CA (
target_stdout: .E0SA (
target_stdout: .E1CN (
target_stdout: .E1SN (
target_stdout: .E0CN (
target_stdout: .E0SN (
target_stdout:
target_stdout: Channel 0 Bandwidth(avg): 1218MB/s, or 74% (assuming static 204MHz)
target_stdout: =====================
target_stdout: End Memory Statistics
target_stdout: =====================
target_stdout: Blit done. The blit took 9.0 seconds
target_stdout: Read back check. Mask = 0xffffffff
target_stdout: wfblitcore done!
target_stdout: ------- End: sanity in Register based mode
target_stdout: [pass: SubtestWfblit]
target_stdout: ---------------
target_stdout: total subtests: 1
target_stdout: total failures: 0
target_stdout:
target_exit(0)
nvhost: QUIT

runmats

nvhost.exe --avp --sdram PM375_TK1_Micron_4GB_MT41K512M16HA107_204MHz.cfg --skip-reset --chip t124 mats.axf
nvhost: ========================================
nvhost: Found --chip parameter
nvhost:   ...success!  Found t124
nvhost: ========================================
nvblserver: Loading "mats.axg" via usb:...
Done.
WARNING: Ignoring auto-detect due to --chip parameter

...Now connected to target using usb

target_stdout: Initializing SDRAM controller.
target_stdout: Init PLLM: M=1, N=34, P=0, Misc1=1879048192, Misc2=0,StableTime=3356171
target_stdout: Memory size = 0x00000400
target_stdout: SDRAM Subtest Start
target_stdout: SDRAM Subtest PASS
target_stdout: SDRAM Subtest Start
target_stdout: SDRAM Subtest PASS
target_stdout: SDRAM Subtest Start
target_stdout: SDRAM Subtest PASS
target_stdout: SDRAM Subtest Start
target_stdout: SDRAM Subtest PASS
target_stdout: SDRAM test PASSED
target_stdout: SDRAM size: 2047 MB (0x7ff00000)
target_stdout: [pass: SubtestInitSdramController]
target_stdout: Memory size:   0x7ff00000
target_stdout: [pass: SubtestCheckPatLength]
target_stdout: Beginning AddressOnData Test.
target_stdout: Memory_AddressOnDataTest start
target_stdout: Writing test range 0 (0x80000040 - 0xbff80000)
target_stdout: Writing test range 1 (0xbff80000 - 0xfff00000)
target_stdout: Verifying range 0 (0x80000040 - 0xbff80000)
target_stdout: Verifying range 1 (0xbff80000 - 0xfff00000)
target_stdout: Memory_AddressOnDataTest end
target_stdout: [pass: SubtestAddressOnData]
target_stdout: ---------------
target_stdout: total subtests: 3
target_stdout: total failures: 0
target_stdout:
target_exit(0)
nvhost: QUIT

flashing

[0000.000] [TegraBoot] (version UNDEF_BUILD)
[0000.004] Reset reason: power on reset
[0000.008] Processing in recovery mode
[0000.011] Established communication link with host
[0000.000] [TegraBoot] (version UNDEF_BUILD)
[0000.004] Reset reason: power on reset
[0000.007] Processing in recovery mode
[0000.010] Established communication link with host
[0001.149] Downloaded bct successfully
[0001.153] No Battery Present
[0001.157] Sdram initialization is successful
[0001.170] Downloaded DTB successfully
[0001.175] No Battery Present
[0001.255] Downloaded bootloader successfully
[0001.259] CPU-bootloader entry address: 0x83d88000
[0001.263] BoardId: 375
[0001.265] Vpr Carveout Base=0x0f4600000 Size=0x00ba00000
[0001.271] Tsec Carveout Base=0x0f2600000 Size=0x002000000
[0001.276] Lp0 Carveout Base=0x0f25ff000 Size=0x000001000
[0001.281] Xusb Carveout Base=0x0f2300000 Size=0x000200000
[0001.286] Platform-DebugCarveout: 0
[0001.313] CPU power rail is up
[0001.316] Performing RAM repair
[0001.318] CPU clock init successful
[0001.322] Starting CPU & Halting co-processor
[b]Error while getting the SDRam size
Error while getting the SDRam size[/b]
NVRM Initialized shmoo database
NVRM CLOCKS: PLLX0:      696000 Khz
NVRM CLOCKS: PLLM0:      408000 Khz
NVRM CLOCKS: PLLC0:      0 Khz
NVRM CLOCKS: PLLP0:      408000 Khz
NVRM CLOCKS: PLLA0:      11289 Khz
NVRM CLOCKS: CPU:        696000 Khz
NVRM CLOCKS: AVP:        48000 Khz
NVRM CLOCKS: System Bus: 48000 Khz
NVRM CLOCKS: Memory Controller: 204000
NVRM CLOCKS: External Memory Controller: 204000
EEPROM instance-5: No slave at this instance.
EEPROM instance-0: No slave at this instance.
EEPROM instance-0: Querying board info from BCT.
EEPROM instance-0: No board info available for this instance in BCT.
EEPROM instance-1: No slave at this instance.
EEPROM instance-1: Querying board info from BCT.
EEPROM instance-1: Board info present in BCT is invalid.
EEPROM instance-2: No slave at this instance.
EEPROM instance-2: Querying board info from BCT.
EEPROM instance-2: No board info available for this instance in BCT.
EEPROM instance-3: No slave at this instance.
EEPROM instance-3: Querying board info from BCT.
EEPROM instance-3: No board info available for this instance in BCT.
EEPROM instance-4: No slave at this instance.
EEPROM instance-4: Querying board info from BCT.
EEPROM instance-4: Board info present in BCT is invalid.
EEPROM instance-5: No slave at this instance.
EEPROM instance-5: Querying board info from BCT.
EEPROM instance-5: BoardInfo: 0x0000:0x0000:0375:0000:05:EEPROM instance-6: Querying board info from BCT.
EEPROM instance-6: BoardInfo: 0xffff:0xffff:0375:0000:05:EEPROM instance-7: No slave at this instance.
EEPROM instance-7: Querying board info from BCT.
EEPROM instance-7: No board info available for this instance in BCT.
Final BoardID: proc: 375 and pmu 375
ADJUSTED CLOCKS:
MC clock is set to 204000 KHz
EMC clock is set to 204000 KHz (DDR clock is at 204000 KHz)
PLLX0 clock is set to 696000 KHz
PLLC0 clock is set to      0 KHz
CPU clock is set to 696000 KHz
System and AVP clock is set to  48000 KHz
GraphicsHost clock is set to 163200 KHz
MSENC clock is set to  40800 KHz
Vde clock is set to 204000 KHz
[b]Error while getting the SDRam size
Error while getting the SDRam size[/b]

Currently, I’m using R21.5.
If I replace “fastboot.bin” from R21.2 version, it works fine. (Didn’t check other version)
What’s different these two versions?
If I use old one, what will not work?

Thanks.

This may be due to RAMCODE strapping support from R21.5. Below is the statement from https://developer.nvidia.com/embedded/dlc/l4t-Jetson-TK1-Driver-Package-Release-Notes-R21-5

Added support for Hynix H5TC4G63CFR-RDA as an alternate DRAM for Jetson TK1.
Updated BCT and EMC-DVFS tables are present to support this part. The updated BCT
and kernel provide support for both DRAM based upon RAMCODE strapping options.

Please make sure SDRAM[0]/SDRAM[1]/SDRAM[2]/SDRAM[3] copies exist in your PM375_TK1_Micron_4GB_MT41K512M16HA107_204MHz.cfg to see if get rid of the issue.

Hi Vickyy,

I copied SDRAM[0] to SDRAM[1]/[2]/[3] in my config file and tested but still same error.
Below is my config file.
Can you check what I’m missing?

Thank you.

# Do not edit. Generated by TK1_emc_reg_toolV5.0.18 V5.0.18. Command: 
#   TK1_emc_reg_toolV5.0.18 -i ..\param_files\Micron_4GB_MT41K512M16HA107_ddr3.par 4.901960
#      -dram_board_cfg 14 -s emc_reg_swz.txt -is_mid_package 1 -round_trip_dly_ps 560.13
#      -o CFG_204MHz.cfg -b tBKV_RESULT04MHz_emc_reg.txt -temp_derating 0 
# Parameter file: ..\param_files\Micron_4GB_MT41K512M16HA107_ddr3.par, tck = 4.90 ns (204.00 MHz)
# bkv file: tBKV_RESULT04MHz_emc_reg.txt
# swz file: emc_reg_swz.txt
SDRAM[0].MemoryType                               = NvBootMemoryType_Ddr3;
SDRAM[0].PllMInputDivider                         = 0x00000001;
SDRAM[0].PllMFeedbackDivider                      = 0x00000022;
SDRAM[0].PllMStableTime                           = 0x0000012c;
SDRAM[0].PllMSetupControl                         = 0x00000000;
SDRAM[0].PllMSelectDiv2                           = 0x00000000;
SDRAM[0].PllMPDLshiftPh45                         = 0x00000001;
SDRAM[0].PllMPDLshiftPh90                         = 0x00000001;
SDRAM[0].PllMPDLshiftPh135                        = 0x00000001;
SDRAM[0].PllMKCP                                  = 0x00000000;
SDRAM[0].PllMKVCO                                 = 0x00000000;
SDRAM[0].EmcBctSpare0                             = 0x00000000;
SDRAM[0].EmcBctSpare1                             = 0x00000000;
SDRAM[0].EmcBctSpare2                             = 0x00000000;
SDRAM[0].EmcBctSpare3                             = 0x00000000;
SDRAM[0].EmcBctSpare4                             = 0x00000000;
SDRAM[0].EmcBctSpare5                             = 0x00000000;
SDRAM[0].EmcBctSpare6                             = 0x00000000;
SDRAM[0].EmcBctSpare7                             = 0x00000000;
SDRAM[0].EmcBctSpare8                             = 0x00000000;
SDRAM[0].EmcBctSpare9                             = 0x00000000;
SDRAM[0].EmcBctSpare10                            = 0x00000000;
SDRAM[0].EmcBctSpare11                            = 0x00000000;
SDRAM[0].EmcClockSource                           = 0x40000002;
SDRAM[0].EmcAutoCalInterval                       = 0x001fffff;
SDRAM[0].EmcAutoCalConfig                         = 0xa1430000;
SDRAM[0].EmcAutoCalConfig2                        = 0x00000000;
SDRAM[0].EmcAutoCalConfig3                        = 0x00000000;
SDRAM[0].EmcAutoCalWait                           = 0x00000190;
SDRAM[0].EmcAdrCfg                                = 0x00000000;
SDRAM[0].EmcPinProgramWait                        = 0x00000001;
SDRAM[0].EmcPinExtraWait                          = 0x00000000;
SDRAM[0].EmcTimingControlWait                     = 0x00000000;
SDRAM[0].EmcRc                                    = 0x00000009;
SDRAM[0].EmcRfc                                   = 0x00000035;
SDRAM[0].EmcRfcSlr                                = 0x00000000;
SDRAM[0].EmcRas                                   = 0x00000006;
SDRAM[0].EmcRp                                    = 0x00000002;
SDRAM[0].EmcR2r                                   = 0x00000000;
SDRAM[0].EmcW2w                                   = 0x00000000;
SDRAM[0].EmcR2w                                   = 0x00000006;
SDRAM[0].EmcW2r                                   = 0x0000000a;
SDRAM[0].EmcR2p                                   = 0x00000005;
SDRAM[0].EmcW2p                                   = 0x0000000b;
SDRAM[0].EmcRdRcd                                 = 0x00000002;
SDRAM[0].EmcWrRcd                                 = 0x00000002;
SDRAM[0].EmcRrd                                   = 0x00000003;
SDRAM[0].EmcRext                                  = 0x00000003;
SDRAM[0].EmcWext                                  = 0x00000000;
SDRAM[0].EmcWdv                                   = 0x00000005;
SDRAM[0].EmcWdvMask                               = 0x00000005;
SDRAM[0].EmcQUse                                  = 0x00000006;
SDRAM[0].EmcQuseWidth                             = 0x00000003;
SDRAM[0].EmcIbdly                                 = 0x00000000;
SDRAM[0].EmcEInput                                = 0x00000004;
SDRAM[0].EmcEInputDuration                        = 0x00000007;
SDRAM[0].EmcPutermExtra                           = 0x00010000;
SDRAM[0].EmcPutermWidth                           = 0x00000004;
SDRAM[0].EmcPutermAdj                             = 0x00000000;
SDRAM[0].EmcCdbCntl1                              = 0x00000000;
SDRAM[0].EmcCdbCntl2                              = 0x00000000;
SDRAM[0].EmcCdbCntl3                              = 0x00000000;
SDRAM[0].EmcQRst                                  = 0x00000003;
SDRAM[0].EmcQSafe                                 = 0x0000000e;
SDRAM[0].EmcRdv                                   = 0x00000010;
SDRAM[0].EmcRdvMask                               = 0x00000012;
SDRAM[0].EmcQpop                                  = 0x0000000b;
SDRAM[0].EmcCtt                                   = 0x00000000;
SDRAM[0].EmcCttDuration                           = 0x00000004;
SDRAM[0].EmcRefresh                               = 0x00000607;
SDRAM[0].EmcBurstRefreshNum                       = 0x00000000;
SDRAM[0].EmcPreRefreshReqCnt                      = 0x00000181;
SDRAM[0].EmcPdEx2Wr                               = 0x00000002;
SDRAM[0].EmcPdEx2Rd                               = 0x00000002;
SDRAM[0].EmcPChg2Pden                             = 0x00000001;
SDRAM[0].EmcAct2Pden                              = 0x00000000;
SDRAM[0].EmcAr2Pden                               = 0x00000032;
SDRAM[0].EmcRw2Pden                               = 0x0000000f;
SDRAM[0].EmcTxsr                                  = 0x00000038;
SDRAM[0].EmcTxsrDll                               = 0x00000038;
SDRAM[0].EmcTcke                                  = 0x00000004;
SDRAM[0].EmcTckesr                                = 0x00000005;
SDRAM[0].EmcTpd                                   = 0x00000004;
SDRAM[0].EmcTfaw                                  = 0x00000006;
SDRAM[0].EmcTrpab                                 = 0x00000000;
SDRAM[0].EmcTClkStable                            = 0x00000005;
SDRAM[0].EmcTClkStop                              = 0x00000005;
SDRAM[0].EmcTRefBw                                = 0x00000638;
SDRAM[0].EmcFbioCfg5                              = 0x106aa298;
SDRAM[0].EmcFbioCfg6                              = 0x00000000;
SDRAM[0].EmcFbioSpare                             = 0x00000000;
SDRAM[0].EmcCfgRsv                                = 0xff00ff00;
SDRAM[0].EmcMrs                                   = 0x80001221;
SDRAM[0].EmcEmrs                                  = 0x80100003;
SDRAM[0].EmcEmrs2                                 = 0x80200008;
SDRAM[0].EmcEmrs3                                 = 0x80300000;
SDRAM[0].EmcMrw1                                  = 0x00000000;
SDRAM[0].EmcMrw2                                  = 0x00000000;
SDRAM[0].EmcMrw3                                  = 0x00000000;
SDRAM[0].EmcMrw4                                  = 0x00000000;
SDRAM[0].EmcMrwExtra                              = 0x00000000;
SDRAM[0].EmcWarmBootMrwExtra                      = 0x00000000;
SDRAM[0].EmcWarmBootExtraModeRegWriteEnable       = 0x00000000;
SDRAM[0].EmcExtraModeRegWriteEnable               = 0x00000000;
SDRAM[0].EmcMrwResetCommand                       = 0x00000000;
SDRAM[0].EmcMrwResetNInitWait                     = 0x00000000;
SDRAM[0].EmcMrsWaitCnt                            = 0x000e000e;
SDRAM[0].EmcMrsWaitCnt2                           = 0x000e000e;
SDRAM[0].EmcCfg                                   = 0x73240000;
SDRAM[0].EmcCfg2                                  = 0x0000088d;
SDRAM[0].EmcCfgPipe                               = 0x0000d2b3;
SDRAM[0].EmcDbg                                   = 0x01000c00;
SDRAM[0].EmcCmdQ                                  = 0x10004408;
SDRAM[0].EmcMc2EmcQ                               = 0x06000404;
SDRAM[0].EmcDynSelfRefControl                     = 0x80000d22;
SDRAM[0].AhbArbitrationXbarCtrlMemInitDone        = 0x00000001;
SDRAM[0].EmcCfgDigDll                             = 0x002c00a0;
SDRAM[0].EmcCfgDigDllPeriod                       = 0x00008000;
SDRAM[0].EmcDevSelect                             = 0x00000002;
SDRAM[0].EmcSelDpdCtrl                            = 0x00040000;
SDRAM[0].EmcDllXformDqs0                          = 0x00064000;
SDRAM[0].EmcDllXformDqs1                          = 0x00064000;
SDRAM[0].EmcDllXformDqs2                          = 0x00064000;
SDRAM[0].EmcDllXformDqs3                          = 0x00064000;
SDRAM[0].EmcDllXformDqs4                          = 0x00064000;
SDRAM[0].EmcDllXformDqs5                          = 0x00064000;
SDRAM[0].EmcDllXformDqs6                          = 0x00064000;
SDRAM[0].EmcDllXformDqs7                          = 0x00064000;
SDRAM[0].EmcDllXformDqs8                          = 0x00064000;
SDRAM[0].EmcDllXformDqs9                          = 0x00064000;
SDRAM[0].EmcDllXformDqs10                         = 0x00064000;
SDRAM[0].EmcDllXformDqs11                         = 0x00064000;
SDRAM[0].EmcDllXformDqs12                         = 0x00064000;
SDRAM[0].EmcDllXformDqs13                         = 0x00064000;
SDRAM[0].EmcDllXformDqs14                         = 0x00064000;
SDRAM[0].EmcDllXformDqs15                         = 0x00064000;
SDRAM[0].EmcDllXformQUse0                         = 0x00000000;
SDRAM[0].EmcDllXformQUse1                         = 0x00000000;
SDRAM[0].EmcDllXformQUse2                         = 0x00000000;
SDRAM[0].EmcDllXformQUse3                         = 0x00000000;
SDRAM[0].EmcDllXformQUse4                         = 0x00000000;
SDRAM[0].EmcDllXformQUse5                         = 0x00000000;
SDRAM[0].EmcDllXformQUse6                         = 0x00000000;
SDRAM[0].EmcDllXformQUse7                         = 0x00000000;
SDRAM[0].EmcDllXformAddr0                         = 0x00000000;
SDRAM[0].EmcDllXformAddr1                         = 0x00000000;
SDRAM[0].EmcDllXformAddr2                         = 0x00000000;
SDRAM[0].EmcDllXformAddr3                         = 0x00000000;
SDRAM[0].EmcDllXformAddr4                         = 0x00000000;
SDRAM[0].EmcDllXformAddr5                         = 0x00000000;
SDRAM[0].EmcDllXformQUse8                         = 0x00000000;
SDRAM[0].EmcDllXformQUse9                         = 0x00000000;
SDRAM[0].EmcDllXformQUse10                        = 0x00000000;
SDRAM[0].EmcDllXformQUse11                        = 0x00000000;
SDRAM[0].EmcDllXformQUse12                        = 0x00000000;
SDRAM[0].EmcDllXformQUse13                        = 0x00000000;
SDRAM[0].EmcDllXformQUse14                        = 0x00000000;
SDRAM[0].EmcDllXformQUse15                        = 0x00000000;
SDRAM[0].EmcDliTrimTxDqs0                         = 0x00000000;
SDRAM[0].EmcDliTrimTxDqs1                         = 0x00000000;
SDRAM[0].EmcDliTrimTxDqs2                         = 0x00000000;
SDRAM[0].EmcDliTrimTxDqs3                         = 0x00000000;
SDRAM[0].EmcDliTrimTxDqs4                         = 0x00000000;
SDRAM[0].EmcDliTrimTxDqs5                         = 0x00000000;
SDRAM[0].EmcDliTrimTxDqs6                         = 0x00000000;
SDRAM[0].EmcDliTrimTxDqs7                         = 0x00000000;
SDRAM[0].EmcDliTrimTxDqs8                         = 0x00000000;
SDRAM[0].EmcDliTrimTxDqs9                         = 0x00000000;
SDRAM[0].EmcDliTrimTxDqs10                        = 0x00000000;
SDRAM[0].EmcDliTrimTxDqs11                        = 0x00000000;
SDRAM[0].EmcDliTrimTxDqs12                        = 0x00000000;
SDRAM[0].EmcDliTrimTxDqs13                        = 0x00000000;
SDRAM[0].EmcDliTrimTxDqs14                        = 0x00000000;
SDRAM[0].EmcDliTrimTxDqs15                        = 0x00000000;
SDRAM[0].EmcDllXformDq0                           = 0x00090000;
SDRAM[0].EmcDllXformDq1                           = 0x00090000;
SDRAM[0].EmcDllXformDq2                           = 0x00090000;
SDRAM[0].EmcDllXformDq3                           = 0x00090000;
SDRAM[0].EmcDllXformDq4                           = 0x00009000;
SDRAM[0].EmcDllXformDq5                           = 0x00009000;
SDRAM[0].EmcDllXformDq6                           = 0x00009000;
SDRAM[0].EmcDllXformDq7                           = 0x00009000;
SDRAM[0].WarmBootWait                             = 0x00000002;
SDRAM[0].EmcCttTermCtrl                           = 0x00000802;
SDRAM[0].EmcOdtWrite                              = 0x00000000;
SDRAM[0].EmcOdtRead                               = 0x00000000;
SDRAM[0].EmcZcalInterval                          = 0x00020000;
SDRAM[0].EmcZcalWaitCnt                           = 0x00000042;
SDRAM[0].EmcZcalMrwCmd                            = 0x80000000;
SDRAM[0].EmcMrsResetDll                           = 0x00000000;
SDRAM[0].EmcZcalInitDev0                          = 0x80000011;
SDRAM[0].EmcZcalInitDev1                          = 0x00000000;
SDRAM[0].EmcZcalInitWait                          = 0x00000003;
SDRAM[0].EmcZcalWarmColdBootEnables               = 0x00000003;
SDRAM[0].EmcMrwLpddr2ZcalWarmBoot                 = 0x040a00ab;
SDRAM[0].EmcZqCalDdr3WarmBoot                     = 0x00000000;
SDRAM[0].EmcZcalWarmBootWait                      = 0x00000002;
SDRAM[0].EmcMrsWarmBootEnable                     = 0x00000001;
SDRAM[0].EmcMrsResetDllWait                       = 0x00000000;
SDRAM[0].EmcMrsExtra                              = 0x80001221;
SDRAM[0].EmcWarmBootMrsExtra                      = 0x80100003;
SDRAM[0].EmcEmrsDdr2DllEnable                     = 0x00000000;
SDRAM[0].EmcMrsDdr2DllReset                       = 0x00000000;
SDRAM[0].EmcEmrsDdr2OcdCalib                      = 0x00000000;
SDRAM[0].EmcDdr2Wait                              = 0x00000000;
SDRAM[0].EmcClkenOverride                         = 0x00000000;
SDRAM[0].McDisExtraSnapLevels                     = 0x00000000;
SDRAM[0].EmcExtraRefreshNum                       = 0x00000002;
SDRAM[0].EmcClkenOverrideAllWarmBoot              = 0x00000000;
SDRAM[0].McClkenOverrideAllWarmBoot               = 0x00000000;
SDRAM[0].EmcCfgDigDllPeriodWarmBoot               = 0x00000003;
SDRAM[0].PmcVddpSel                               = 0x00000002;
SDRAM[0].PmcVddpSelWait                           = 0x00000002;
SDRAM[0].PmcDdrPwr                                = 0x00000003;
SDRAM[0].PmcDdrCfg                                = 0x00002002;
SDRAM[0].PmcIoDpd3Req                             = 0x4fff2f97;
SDRAM[0].PmcIoDpd3ReqWait                         = 0x00000000;
SDRAM[0].PmcRegShort                              = 0x00000000;
SDRAM[0].PmcNoIoPower                             = 0x00000000;
SDRAM[0].PmcPorDpdCtrlWait                        = 0x00000000;
SDRAM[0].EmcXm2CmdPadCtrl                         = 0x10000280;
SDRAM[0].EmcXm2CmdPadCtrl2                        = 0x770c0000;
SDRAM[0].EmcXm2CmdPadCtrl3                        = 0x050c0000;
SDRAM[0].EmcXm2CmdPadCtrl4                        = 0x00000000;
SDRAM[0].EmcXm2CmdPadCtrl5                        = 0x00111111;
SDRAM[0].EmcXm2DqsPadCtrl                         = 0x770c1414;
SDRAM[0].EmcXm2DqsPadCtrl2                        = 0x0130b118;
SDRAM[0].EmcXm2DqsPadCtrl3                        = 0x51451400;
SDRAM[0].EmcXm2DqsPadCtrl4                        = 0x00514514;
SDRAM[0].EmcXm2DqsPadCtrl5                        = 0x00514514;
SDRAM[0].EmcXm2DqsPadCtrl6                        = 0x51451400;
SDRAM[0].EmcXm2DqPadCtrl                          = 0x770c2990;
SDRAM[0].EmcXm2DqPadCtrl2                         = 0x00000000;
SDRAM[0].EmcXm2DqPadCtrl3                         = 0x00000000;
SDRAM[0].EmcXm2ClkPadCtrl                         = 0x77ffc081;
SDRAM[0].EmcXm2ClkPadCtrl2                        = 0x00000606;
SDRAM[0].EmcXm2CompPadCtrl                        = 0x81f1f108;
SDRAM[0].EmcXm2VttGenPadCtrl                      = 0x07070004;
SDRAM[0].EmcXm2VttGenPadCtrl2                     = 0x0000003f;
SDRAM[0].EmcXm2VttGenPadCtrl3                     = 0x016eeeee;
SDRAM[0].EmcAcpdControl                           = 0x00000000;
SDRAM[0].EmcSwizzleRank0ByteCfg                   = 0x00002031;
SDRAM[0].EmcSwizzleRank0Byte0                     = 0x25301476;
SDRAM[0].EmcSwizzleRank0Byte1                     = 0x24530617;
SDRAM[0].EmcSwizzleRank0Byte2                     = 0x74130652;
SDRAM[0].EmcSwizzleRank0Byte3                     = 0x24563071;
SDRAM[0].EmcSwizzleRank1ByteCfg                   = 0x00002031;
SDRAM[0].EmcSwizzleRank1Byte0                     = 0x62043517;
SDRAM[0].EmcSwizzleRank1Byte1                     = 0x36147205;
SDRAM[0].EmcSwizzleRank1Byte2                     = 0x73541260;
SDRAM[0].EmcSwizzleRank1Byte3                     = 0x51743602;
SDRAM[0].EmcDsrVttgenDrv                          = 0x0000003f;
SDRAM[0].EmcTxdsrvttgen                           = 0x00000066;
SDRAM[0].EmcBgbiasCtl0                            = 0x00000008;
SDRAM[0].McEmemAdrCfg                             = 0x00000000;
SDRAM[0].McEmemAdrCfgDev0                         = 0x00090303;
SDRAM[0].McEmemAdrCfgDev1                         = 0x00090303;
SDRAM[0].McEmemAdrCfgBankMask0                    = 0x00001248;
SDRAM[0].McEmemAdrCfgBankMask1                    = 0x00002490;
SDRAM[0].McEmemAdrCfgBankMask2                    = 0x00000920;
SDRAM[0].McEmemAdrCfgBankSwizzle3                 = 0x00000001;
SDRAM[0].McEmemCfg                                = 0x00001000;
SDRAM[0].McEmemArbCfg                             = 0x01000003;
SDRAM[0].McEmemArbOutstandingReq                  = 0x80000040;
SDRAM[0].McEmemArbTimingRcd                       = 0x00000001;
SDRAM[0].McEmemArbTimingRp                        = 0x00000001;
SDRAM[0].McEmemArbTimingRc                        = 0x00000004;
SDRAM[0].McEmemArbTimingRas                       = 0x00000002;
SDRAM[0].McEmemArbTimingFaw                       = 0x00000003;
SDRAM[0].McEmemArbTimingRrd                       = 0x00000001;
SDRAM[0].McEmemArbTimingRap2Pre                   = 0x00000003;
SDRAM[0].McEmemArbTimingWap2Pre                   = 0x00000008;
SDRAM[0].McEmemArbTimingR2R                       = 0x00000003;
SDRAM[0].McEmemArbTimingW2W                       = 0x00000002;
SDRAM[0].McEmemArbTimingR2W                       = 0x00000004;
SDRAM[0].McEmemArbTimingW2R                       = 0x00000006;
SDRAM[0].McEmemArbDaTurns                         = 0x06040203;
SDRAM[0].McEmemArbDaCovers                        = 0x000a0504;
SDRAM[0].McEmemArbMisc0                           = 0x73840a05;
SDRAM[0].McEmemArbMisc1                           = 0x70000f03;
SDRAM[0].McEmemArbRing1Throttle                   = 0x001f0000;
SDRAM[0].McEmemArbOverride                        = 0x10000000;
SDRAM[0].McEmemArbOverride1                       = 0x00000000;
SDRAM[0].McEmemArbRsv                             = 0xff00ff00;
SDRAM[0].McClkenOverride                          = 0x00000000;
SDRAM[0].McStatControl                            = 0x00000000;
SDRAM[0].McDisplaySnapRing                        = 0x00000003;
SDRAM[0].McVideoProtectBom                        = 0xfff00000;
SDRAM[0].McVideoProtectBomAdrHi                   = 0x00000000;
SDRAM[0].McVideoProtectSizeMb                     = 0x00000000;
SDRAM[0].McVideoProtectVprOverride                = 0xe4bac743;
SDRAM[0].McVideoProtectVprOverride1               = 0x00000013;
SDRAM[0].McVideoProtectGpuOverride0               = 0x00000000;
SDRAM[0].McVideoProtectGpuOverride1               = 0x00000000;
SDRAM[0].McSecCarveoutBom                         = 0xfff00000;
SDRAM[0].McSecCarveoutAdrHi                       = 0x00000000;
SDRAM[0].McSecCarveoutSizeMb                      = 0x00000000;
SDRAM[0].McVideoProtectWriteAccess                = 0x00000000;
SDRAM[0].McSecCarveoutProtectWriteAccess          = 0x00000000;
SDRAM[0].EmcCaTrainingEnable                      = 0x00000000;
SDRAM[0].EmcCaTrainingTimingCntl1                 = 0x1f7df7df;
SDRAM[0].EmcCaTrainingTimingCntl2                 = 0x0000001f;
SDRAM[0].SwizzleRankByteEncode                    = 0x0000000e;
SDRAM[0].BootRomPatchControl                      = 0x00000000;
SDRAM[0].BootRomPatchData                         = 0x00000000;
SDRAM[0].McMtsCarveoutBom                         = 0xfff00000;
SDRAM[0].McMtsCarveoutAdrHi                       = 0x00000000;
SDRAM[0].McMtsCarveoutSizeMb                      = 0x00000000;
SDRAM[0].McMtsCarveoutRegCtrl                     = 0x00000000;

SDRAM[1].MemoryType                               = NvBootMemoryType_Ddr3;
SDRAM[1].PllMInputDivider                         = 0x00000001;
SDRAM[1].PllMFeedbackDivider                      = 0x00000022;
SDRAM[1].PllMStableTime                           = 0x0000012c;
SDRAM[1].PllMSetupControl                         = 0x00000000;
SDRAM[1].PllMSelectDiv2                           = 0x00000000;
SDRAM[1].PllMPDLshiftPh45                         = 0x00000001;
SDRAM[1].PllMPDLshiftPh90                         = 0x00000001;
SDRAM[1].PllMPDLshiftPh135                        = 0x00000001;
SDRAM[1].PllMKCP                                  = 0x00000000;
SDRAM[1].PllMKVCO                                 = 0x00000000;
SDRAM[1].EmcBctSpare0                             = 0x00000000;
SDRAM[1].EmcBctSpare1                             = 0x00000000;
SDRAM[1].EmcBctSpare2                             = 0x00000000;
SDRAM[1].EmcBctSpare3                             = 0x00000000;
SDRAM[1].EmcBctSpare4                             = 0x00000000;
SDRAM[1].EmcBctSpare5                             = 0x00000000;
SDRAM[1].EmcBctSpare6                             = 0x00000000;
SDRAM[1].EmcBctSpare7                             = 0x00000000;
SDRAM[1].EmcBctSpare8                             = 0x00000000;
SDRAM[1].EmcBctSpare9                             = 0x00000000;
SDRAM[1].EmcBctSpare10                            = 0x00000000;
SDRAM[1].EmcBctSpare11                            = 0x00000000;
SDRAM[1].EmcClockSource                           = 0x40000002;
SDRAM[1].EmcAutoCalInterval                       = 0x001fffff;
SDRAM[1].EmcAutoCalConfig                         = 0xa1430000;
SDRAM[1].EmcAutoCalConfig2                        = 0x00000000;
SDRAM[1].EmcAutoCalConfig3                        = 0x00000000;
SDRAM[1].EmcAutoCalWait                           = 0x00000190;
SDRAM[1].EmcAdrCfg                                = 0x00000000;
SDRAM[1].EmcPinProgramWait                        = 0x00000001;
SDRAM[1].EmcPinExtraWait                          = 0x00000000;
SDRAM[1].EmcTimingControlWait                     = 0x00000000;
SDRAM[1].EmcRc                                    = 0x00000009;
SDRAM[1].EmcRfc                                   = 0x00000035;
SDRAM[1].EmcRfcSlr                                = 0x00000000;
SDRAM[1].EmcRas                                   = 0x00000006;
SDRAM[1].EmcRp                                    = 0x00000002;
SDRAM[1].EmcR2r                                   = 0x00000000;
SDRAM[1].EmcW2w                                   = 0x00000000;
SDRAM[1].EmcR2w                                   = 0x00000006;
SDRAM[1].EmcW2r                                   = 0x0000000a;
SDRAM[1].EmcR2p                                   = 0x00000005;
SDRAM[1].EmcW2p                                   = 0x0000000b;
SDRAM[1].EmcRdRcd                                 = 0x00000002;
SDRAM[1].EmcWrRcd                                 = 0x00000002;
SDRAM[1].EmcRrd                                   = 0x00000003;
SDRAM[1].EmcRext                                  = 0x00000003;
SDRAM[1].EmcWext                                  = 0x00000000;
SDRAM[1].EmcWdv                                   = 0x00000005;
SDRAM[1].EmcWdvMask                               = 0x00000005;
SDRAM[1].EmcQUse                                  = 0x00000006;
SDRAM[1].EmcQuseWidth                             = 0x00000003;
SDRAM[1].EmcIbdly                                 = 0x00000000;
SDRAM[1].EmcEInput                                = 0x00000004;
SDRAM[1].EmcEInputDuration                        = 0x00000007;
SDRAM[1].EmcPutermExtra                           = 0x00010000;
SDRAM[1].EmcPutermWidth                           = 0x00000004;
SDRAM[1].EmcPutermAdj                             = 0x00000000;
SDRAM[1].EmcCdbCntl1                              = 0x00000000;
SDRAM[1].EmcCdbCntl2                              = 0x00000000;
SDRAM[1].EmcCdbCntl3                              = 0x00000000;
SDRAM[1].EmcQRst                                  = 0x00000003;
SDRAM[1].EmcQSafe                                 = 0x0000000e;
SDRAM[1].EmcRdv                                   = 0x00000010;
SDRAM[1].EmcRdvMask                               = 0x00000012;
SDRAM[1].EmcQpop                                  = 0x0000000b;
SDRAM[1].EmcCtt                                   = 0x00000000;
SDRAM[1].EmcCttDuration                           = 0x00000004;
SDRAM[1].EmcRefresh                               = 0x00000607;
SDRAM[1].EmcBurstRefreshNum                       = 0x00000000;
SDRAM[1].EmcPreRefreshReqCnt                      = 0x00000181;
SDRAM[1].EmcPdEx2Wr                               = 0x00000002;
SDRAM[1].EmcPdEx2Rd                               = 0x00000002;
SDRAM[1].EmcPChg2Pden                             = 0x00000001;
SDRAM[1].EmcAct2Pden                              = 0x00000000;
SDRAM[1].EmcAr2Pden                               = 0x00000032;
SDRAM[1].EmcRw2Pden                               = 0x0000000f;
SDRAM[1].EmcTxsr                                  = 0x00000038;
SDRAM[1].EmcTxsrDll                               = 0x00000038;
SDRAM[1].EmcTcke                                  = 0x00000004;
SDRAM[1].EmcTckesr                                = 0x00000005;
SDRAM[1].EmcTpd                                   = 0x00000004;
SDRAM[1].EmcTfaw                                  = 0x00000006;
SDRAM[1].EmcTrpab                                 = 0x00000000;
SDRAM[1].EmcTClkStable                            = 0x00000005;
SDRAM[1].EmcTClkStop                              = 0x00000005;
SDRAM[1].EmcTRefBw                                = 0x00000638;
SDRAM[1].EmcFbioCfg5                              = 0x106aa298;
SDRAM[1].EmcFbioCfg6                              = 0x00000000;
SDRAM[1].EmcFbioSpare                             = 0x00000000;
SDRAM[1].EmcCfgRsv                                = 0xff00ff00;
SDRAM[1].EmcMrs                                   = 0x80001221;
SDRAM[1].EmcEmrs                                  = 0x80100003;
SDRAM[1].EmcEmrs2                                 = 0x80200008;
SDRAM[1].EmcEmrs3                                 = 0x80300000;
SDRAM[1].EmcMrw1                                  = 0x00000000;
SDRAM[1].EmcMrw2                                  = 0x00000000;
SDRAM[1].EmcMrw3                                  = 0x00000000;
SDRAM[1].EmcMrw4                                  = 0x00000000;
SDRAM[1].EmcMrwExtra                              = 0x00000000;
SDRAM[1].EmcWarmBootMrwExtra                      = 0x00000000;
SDRAM[1].EmcWarmBootExtraModeRegWriteEnable       = 0x00000000;
SDRAM[1].EmcExtraModeRegWriteEnable               = 0x00000000;
SDRAM[1].EmcMrwResetCommand                       = 0x00000000;
SDRAM[1].EmcMrwResetNInitWait                     = 0x00000000;
SDRAM[1].EmcMrsWaitCnt                            = 0x000e000e;
SDRAM[1].EmcMrsWaitCnt2                           = 0x000e000e;
SDRAM[1].EmcCfg                                   = 0x73240000;
SDRAM[1].EmcCfg2                                  = 0x0000088d;
SDRAM[1].EmcCfgPipe                               = 0x0000d2b3;
SDRAM[1].EmcDbg                                   = 0x01000c00;
SDRAM[1].EmcCmdQ                                  = 0x10004408;
SDRAM[1].EmcMc2EmcQ                               = 0x06000404;
SDRAM[1].EmcDynSelfRefControl                     = 0x80000d22;
SDRAM[1].AhbArbitrationXbarCtrlMemInitDone        = 0x00000001;
SDRAM[1].EmcCfgDigDll                             = 0x002c00a0;
SDRAM[1].EmcCfgDigDllPeriod                       = 0x00008000;
SDRAM[1].EmcDevSelect                             = 0x00000002;
SDRAM[1].EmcSelDpdCtrl                            = 0x00040000;
SDRAM[1].EmcDllXformDqs0                          = 0x00064000;
SDRAM[1].EmcDllXformDqs1                          = 0x00064000;
SDRAM[1].EmcDllXformDqs2                          = 0x00064000;
SDRAM[1].EmcDllXformDqs3                          = 0x00064000;
SDRAM[1].EmcDllXformDqs4                          = 0x00064000;
SDRAM[1].EmcDllXformDqs5                          = 0x00064000;
SDRAM[1].EmcDllXformDqs6                          = 0x00064000;
SDRAM[1].EmcDllXformDqs7                          = 0x00064000;
SDRAM[1].EmcDllXformDqs8                          = 0x00064000;
SDRAM[1].EmcDllXformDqs9                          = 0x00064000;
SDRAM[1].EmcDllXformDqs10                         = 0x00064000;
SDRAM[1].EmcDllXformDqs11                         = 0x00064000;
SDRAM[1].EmcDllXformDqs12                         = 0x00064000;
SDRAM[1].EmcDllXformDqs13                         = 0x00064000;
SDRAM[1].EmcDllXformDqs14                         = 0x00064000;
SDRAM[1].EmcDllXformDqs15                         = 0x00064000;
SDRAM[1].EmcDllXformQUse0                         = 0x00000000;
SDRAM[1].EmcDllXformQUse1                         = 0x00000000;
SDRAM[1].EmcDllXformQUse2                         = 0x00000000;
SDRAM[1].EmcDllXformQUse3                         = 0x00000000;
SDRAM[1].EmcDllXformQUse4                         = 0x00000000;
SDRAM[1].EmcDllXformQUse5                         = 0x00000000;
SDRAM[1].EmcDllXformQUse6                         = 0x00000000;
SDRAM[1].EmcDllXformQUse7                         = 0x00000000;
SDRAM[1].EmcDllXformAddr0                         = 0x00000000;
SDRAM[1].EmcDllXformAddr1                         = 0x00000000;
SDRAM[1].EmcDllXformAddr2                         = 0x00000000;
SDRAM[1].EmcDllXformAddr3                         = 0x00000000;
SDRAM[1].EmcDllXformAddr4                         = 0x00000000;
SDRAM[1].EmcDllXformAddr5                         = 0x00000000;
SDRAM[1].EmcDllXformQUse8                         = 0x00000000;
SDRAM[1].EmcDllXformQUse9                         = 0x00000000;
SDRAM[1].EmcDllXformQUse10                        = 0x00000000;
SDRAM[1].EmcDllXformQUse11                        = 0x00000000;
SDRAM[1].EmcDllXformQUse12                        = 0x00000000;
SDRAM[1].EmcDllXformQUse13                        = 0x00000000;
SDRAM[1].EmcDllXformQUse14                        = 0x00000000;
SDRAM[1].EmcDllXformQUse15                        = 0x00000000;
SDRAM[1].EmcDliTrimTxDqs0                         = 0x00000000;
SDRAM[1].EmcDliTrimTxDqs1                         = 0x00000000;
SDRAM[1].EmcDliTrimTxDqs2                         = 0x00000000;
SDRAM[1].EmcDliTrimTxDqs3                         = 0x00000000;
SDRAM[1].EmcDliTrimTxDqs4                         = 0x00000000;
SDRAM[1].EmcDliTrimTxDqs5                         = 0x00000000;
SDRAM[1].EmcDliTrimTxDqs6                         = 0x00000000;
SDRAM[1].EmcDliTrimTxDqs7                         = 0x00000000;
SDRAM[1].EmcDliTrimTxDqs8                         = 0x00000000;
SDRAM[1].EmcDliTrimTxDqs9                         = 0x00000000;
SDRAM[1].EmcDliTrimTxDqs10                        = 0x00000000;
SDRAM[1].EmcDliTrimTxDqs11                        = 0x00000000;
SDRAM[1].EmcDliTrimTxDqs12                        = 0x00000000;
SDRAM[1].EmcDliTrimTxDqs13                        = 0x00000000;
SDRAM[1].EmcDliTrimTxDqs14                        = 0x00000000;
SDRAM[1].EmcDliTrimTxDqs15                        = 0x00000000;
SDRAM[1].EmcDllXformDq0                           = 0x00090000;
SDRAM[1].EmcDllXformDq1                           = 0x00090000;
SDRAM[1].EmcDllXformDq2                           = 0x00090000;
SDRAM[1].EmcDllXformDq3                           = 0x00090000;
SDRAM[1].EmcDllXformDq4                           = 0x00009000;
SDRAM[1].EmcDllXformDq5                           = 0x00009000;
SDRAM[1].EmcDllXformDq6                           = 0x00009000;
SDRAM[1].EmcDllXformDq7                           = 0x00009000;
SDRAM[1].WarmBootWait                             = 0x00000002;
SDRAM[1].EmcCttTermCtrl                           = 0x00000802;
SDRAM[1].EmcOdtWrite                              = 0x00000000;
SDRAM[1].EmcOdtRead                               = 0x00000000;
SDRAM[1].EmcZcalInterval                          = 0x00020000;
SDRAM[1].EmcZcalWaitCnt                           = 0x00000042;
SDRAM[1].EmcZcalMrwCmd                            = 0x80000000;
SDRAM[1].EmcMrsResetDll                           = 0x00000000;
SDRAM[1].EmcZcalInitDev0                          = 0x80000011;
SDRAM[1].EmcZcalInitDev1                          = 0x00000000;
SDRAM[1].EmcZcalInitWait                          = 0x00000003;
SDRAM[1].EmcZcalWarmColdBootEnables               = 0x00000003;
SDRAM[1].EmcMrwLpddr2ZcalWarmBoot                 = 0x040a00ab;
SDRAM[1].EmcZqCalDdr3WarmBoot                     = 0x00000000;
SDRAM[1].EmcZcalWarmBootWait                      = 0x00000002;
SDRAM[1].EmcMrsWarmBootEnable                     = 0x00000001;
SDRAM[1].EmcMrsResetDllWait                       = 0x00000000;
SDRAM[1].EmcMrsExtra                              = 0x80001221;
SDRAM[1].EmcWarmBootMrsExtra                      = 0x80100003;
SDRAM[1].EmcEmrsDdr2DllEnable                     = 0x00000000;
SDRAM[1].EmcMrsDdr2DllReset                       = 0x00000000;
SDRAM[1].EmcEmrsDdr2OcdCalib                      = 0x00000000;
SDRAM[1].EmcDdr2Wait                              = 0x00000000;
SDRAM[1].EmcClkenOverride                         = 0x00000000;
SDRAM[1].McDisExtraSnapLevels                     = 0x00000000;
SDRAM[1].EmcExtraRefreshNum                       = 0x00000002;
SDRAM[1].EmcClkenOverrideAllWarmBoot              = 0x00000000;
SDRAM[1].McClkenOverrideAllWarmBoot               = 0x00000000;
SDRAM[1].EmcCfgDigDllPeriodWarmBoot               = 0x00000003;
SDRAM[1].PmcVddpSel                               = 0x00000002;
SDRAM[1].PmcVddpSelWait                           = 0x00000002;
SDRAM[1].PmcDdrPwr                                = 0x00000003;
SDRAM[1].PmcDdrCfg                                = 0x00002002;
SDRAM[1].PmcIoDpd3Req                             = 0x4fff2f97;
SDRAM[1].PmcIoDpd3ReqWait                         = 0x00000000;
SDRAM[1].PmcRegShort                              = 0x00000000;
SDRAM[1].PmcNoIoPower                             = 0x00000000;
SDRAM[1].PmcPorDpdCtrlWait                        = 0x00000000;
SDRAM[1].EmcXm2CmdPadCtrl                         = 0x10000280;
SDRAM[1].EmcXm2CmdPadCtrl2                        = 0x770c0000;
SDRAM[1].EmcXm2CmdPadCtrl3                        = 0x050c0000;
SDRAM[1].EmcXm2CmdPadCtrl4                        = 0x00000000;
SDRAM[1].EmcXm2CmdPadCtrl5                        = 0x00111111;
SDRAM[1].EmcXm2DqsPadCtrl                         = 0x770c1414;
SDRAM[1].EmcXm2DqsPadCtrl2                        = 0x0130b118;
SDRAM[1].EmcXm2DqsPadCtrl3                        = 0x51451400;
SDRAM[1].EmcXm2DqsPadCtrl4                        = 0x00514514;
SDRAM[1].EmcXm2DqsPadCtrl5                        = 0x00514514;
SDRAM[1].EmcXm2DqsPadCtrl6                        = 0x51451400;
SDRAM[1].EmcXm2DqPadCtrl                          = 0x770c2990;
SDRAM[1].EmcXm2DqPadCtrl2                         = 0x00000000;
SDRAM[1].EmcXm2DqPadCtrl3                         = 0x00000000;
SDRAM[1].EmcXm2ClkPadCtrl                         = 0x77ffc081;
SDRAM[1].EmcXm2ClkPadCtrl2                        = 0x00000606;
SDRAM[1].EmcXm2CompPadCtrl                        = 0x81f1f108;
SDRAM[1].EmcXm2VttGenPadCtrl                      = 0x07070004;
SDRAM[1].EmcXm2VttGenPadCtrl2                     = 0x0000003f;
SDRAM[1].EmcXm2VttGenPadCtrl3                     = 0x016eeeee;
SDRAM[1].EmcAcpdControl                           = 0x00000000;
SDRAM[1].EmcSwizzleRank0ByteCfg                   = 0x00002031;
SDRAM[1].EmcSwizzleRank0Byte0                     = 0x25301476;
SDRAM[1].EmcSwizzleRank0Byte1                     = 0x24530617;
SDRAM[1].EmcSwizzleRank0Byte2                     = 0x74130652;
SDRAM[1].EmcSwizzleRank0Byte3                     = 0x24563071;
SDRAM[1].EmcSwizzleRank1ByteCfg                   = 0x00002031;
SDRAM[1].EmcSwizzleRank1Byte0                     = 0x62043517;
SDRAM[1].EmcSwizzleRank1Byte1                     = 0x36147205;
SDRAM[1].EmcSwizzleRank1Byte2                     = 0x73541260;
SDRAM[1].EmcSwizzleRank1Byte3                     = 0x51743602;
SDRAM[1].EmcDsrVttgenDrv                          = 0x0000003f;
SDRAM[1].EmcTxdsrvttgen                           = 0x00000066;
SDRAM[1].EmcBgbiasCtl0                            = 0x00000008;
SDRAM[1].McEmemAdrCfg                             = 0x00000000;
SDRAM[1].McEmemAdrCfgDev0                         = 0x00090303;
SDRAM[1].McEmemAdrCfgDev1                         = 0x00090303;
SDRAM[1].McEmemAdrCfgBankMask0                    = 0x00001248;
SDRAM[1].McEmemAdrCfgBankMask1                    = 0x00002490;
SDRAM[1].McEmemAdrCfgBankMask2                    = 0x00000920;
SDRAM[1].McEmemAdrCfgBankSwizzle3                 = 0x00000001;
SDRAM[1].McEmemCfg                                = 0x00001000;
SDRAM[1].McEmemArbCfg                             = 0x01000003;
SDRAM[1].McEmemArbOutstandingReq                  = 0x80000040;
SDRAM[1].McEmemArbTimingRcd                       = 0x00000001;
SDRAM[1].McEmemArbTimingRp                        = 0x00000001;
SDRAM[1].McEmemArbTimingRc                        = 0x00000004;
SDRAM[1].McEmemArbTimingRas                       = 0x00000002;
SDRAM[1].McEmemArbTimingFaw                       = 0x00000003;
SDRAM[1].McEmemArbTimingRrd                       = 0x00000001;
SDRAM[1].McEmemArbTimingRap2Pre                   = 0x00000003;
SDRAM[1].McEmemArbTimingWap2Pre                   = 0x00000008;
SDRAM[1].McEmemArbTimingR2R                       = 0x00000003;
SDRAM[1].McEmemArbTimingW2W                       = 0x00000002;
SDRAM[1].McEmemArbTimingR2W                       = 0x00000004;
SDRAM[1].McEmemArbTimingW2R                       = 0x00000006;
SDRAM[1].McEmemArbDaTurns                         = 0x06040203;
SDRAM[1].McEmemArbDaCovers                        = 0x000a0504;
SDRAM[1].McEmemArbMisc0                           = 0x73840a05;
SDRAM[1].McEmemArbMisc1                           = 0x70000f03;
SDRAM[1].McEmemArbRing1Throttle                   = 0x001f0000;
SDRAM[1].McEmemArbOverride                        = 0x10000000;
SDRAM[1].McEmemArbOverride1                       = 0x00000000;
SDRAM[1].McEmemArbRsv                             = 0xff00ff00;
SDRAM[1].McClkenOverride                          = 0x00000000;
SDRAM[1].McStatControl                            = 0x00000000;
SDRAM[1].McDisplaySnapRing                        = 0x00000003;
SDRAM[1].McVideoProtectBom                        = 0xfff00000;
SDRAM[1].McVideoProtectBomAdrHi                   = 0x00000000;
SDRAM[1].McVideoProtectSizeMb                     = 0x00000000;
SDRAM[1].McVideoProtectVprOverride                = 0xe4bac743;
SDRAM[1].McVideoProtectVprOverride1               = 0x00000013;
SDRAM[1].McVideoProtectGpuOverride0               = 0x00000000;
SDRAM[1].McVideoProtectGpuOverride1               = 0x00000000;
SDRAM[1].McSecCarveoutBom                         = 0xfff00000;
SDRAM[1].McSecCarveoutAdrHi                       = 0x00000000;
SDRAM[1].McSecCarveoutSizeMb                      = 0x00000000;
SDRAM[1].McVideoProtectWriteAccess                = 0x00000000;
SDRAM[1].McSecCarveoutProtectWriteAccess          = 0x00000000;
SDRAM[1].EmcCaTrainingEnable                      = 0x00000000;
SDRAM[1].EmcCaTrainingTimingCntl1                 = 0x1f7df7df;
SDRAM[1].EmcCaTrainingTimingCntl2                 = 0x0000001f;
SDRAM[1].SwizzleRankByteEncode                    = 0x0000000e;
SDRAM[1].BootRomPatchControl                      = 0x00000000;
SDRAM[1].BootRomPatchData                         = 0x00000000;
SDRAM[1].McMtsCarveoutBom                         = 0xfff00000;
SDRAM[1].McMtsCarveoutAdrHi                       = 0x00000000;
SDRAM[1].McMtsCarveoutSizeMb                      = 0x00000000;
SDRAM[1].McMtsCarveoutRegCtrl                     = 0x00000000;

SDRAM[2].MemoryType                               = NvBootMemoryType_Ddr3;
SDRAM[2].PllMInputDivider                         = 0x00000001;
SDRAM[2].PllMFeedbackDivider                      = 0x00000022;
SDRAM[2].PllMStableTime                           = 0x0000012c;
SDRAM[2].PllMSetupControl                         = 0x00000000;
SDRAM[2].PllMSelectDiv2                           = 0x00000000;
SDRAM[2].PllMPDLshiftPh45                         = 0x00000001;
SDRAM[2].PllMPDLshiftPh90                         = 0x00000001;
SDRAM[2].PllMPDLshiftPh135                        = 0x00000001;
SDRAM[2].PllMKCP                                  = 0x00000000;
SDRAM[2].PllMKVCO                                 = 0x00000000;
SDRAM[2].EmcBctSpare0                             = 0x00000000;
SDRAM[2].EmcBctSpare1                             = 0x00000000;
SDRAM[2].EmcBctSpare2                             = 0x00000000;
SDRAM[2].EmcBctSpare3                             = 0x00000000;
SDRAM[2].EmcBctSpare4                             = 0x00000000;
SDRAM[2].EmcBctSpare5                             = 0x00000000;
SDRAM[2].EmcBctSpare6                             = 0x00000000;
SDRAM[2].EmcBctSpare7                             = 0x00000000;
SDRAM[2].EmcBctSpare8                             = 0x00000000;
SDRAM[2].EmcBctSpare9                             = 0x00000000;
SDRAM[2].EmcBctSpare10                            = 0x00000000;
SDRAM[2].EmcBctSpare11                            = 0x00000000;
SDRAM[2].EmcClockSource                           = 0x40000002;
SDRAM[2].EmcAutoCalInterval                       = 0x001fffff;
SDRAM[2].EmcAutoCalConfig                         = 0xa1430000;
SDRAM[2].EmcAutoCalConfig2                        = 0x00000000;
SDRAM[2].EmcAutoCalConfig3                        = 0x00000000;
SDRAM[2].EmcAutoCalWait                           = 0x00000190;
SDRAM[2].EmcAdrCfg                                = 0x00000000;
SDRAM[2].EmcPinProgramWait                        = 0x00000001;
SDRAM[2].EmcPinExtraWait                          = 0x00000000;
SDRAM[2].EmcTimingControlWait                     = 0x00000000;
SDRAM[2].EmcRc                                    = 0x00000009;
SDRAM[2].EmcRfc                                   = 0x00000035;
SDRAM[2].EmcRfcSlr                                = 0x00000000;
SDRAM[2].EmcRas                                   = 0x00000006;
SDRAM[2].EmcRp                                    = 0x00000002;
SDRAM[2].EmcR2r                                   = 0x00000000;
SDRAM[2].EmcW2w                                   = 0x00000000;
SDRAM[2].EmcR2w                                   = 0x00000006;
SDRAM[2].EmcW2r                                   = 0x0000000a;
SDRAM[2].EmcR2p                                   = 0x00000005;
SDRAM[2].EmcW2p                                   = 0x0000000b;
SDRAM[2].EmcRdRcd                                 = 0x00000002;
SDRAM[2].EmcWrRcd                                 = 0x00000002;
SDRAM[2].EmcRrd                                   = 0x00000003;
SDRAM[2].EmcRext                                  = 0x00000003;
SDRAM[2].EmcWext                                  = 0x00000000;
SDRAM[2].EmcWdv                                   = 0x00000005;
SDRAM[2].EmcWdvMask                               = 0x00000005;
SDRAM[2].EmcQUse                                  = 0x00000006;
SDRAM[2].EmcQuseWidth                             = 0x00000003;
SDRAM[2].EmcIbdly                                 = 0x00000000;
SDRAM[2].EmcEInput                                = 0x00000004;
SDRAM[2].EmcEInputDuration                        = 0x00000007;
SDRAM[2].EmcPutermExtra                           = 0x00010000;
SDRAM[2].EmcPutermWidth                           = 0x00000004;
SDRAM[2].EmcPutermAdj                             = 0x00000000;
SDRAM[2].EmcCdbCntl1                              = 0x00000000;
SDRAM[2].EmcCdbCntl2                              = 0x00000000;
SDRAM[2].EmcCdbCntl3                              = 0x00000000;
SDRAM[2].EmcQRst                                  = 0x00000003;
SDRAM[2].EmcQSafe                                 = 0x0000000e;
SDRAM[2].EmcRdv                                   = 0x00000010;
SDRAM[2].EmcRdvMask                               = 0x00000012;
SDRAM[2].EmcQpop                                  = 0x0000000b;
SDRAM[2].EmcCtt                                   = 0x00000000;
SDRAM[2].EmcCttDuration                           = 0x00000004;
SDRAM[2].EmcRefresh                               = 0x00000607;
SDRAM[2].EmcBurstRefreshNum                       = 0x00000000;
SDRAM[2].EmcPreRefreshReqCnt                      = 0x00000181;
SDRAM[2].EmcPdEx2Wr                               = 0x00000002;
SDRAM[2].EmcPdEx2Rd                               = 0x00000002;
SDRAM[2].EmcPChg2Pden                             = 0x00000001;
SDRAM[2].EmcAct2Pden                              = 0x00000000;
SDRAM[2].EmcAr2Pden                               = 0x00000032;
SDRAM[2].EmcRw2Pden                               = 0x0000000f;
SDRAM[2].EmcTxsr                                  = 0x00000038;
SDRAM[2].EmcTxsrDll                               = 0x00000038;
SDRAM[2].EmcTcke                                  = 0x00000004;
SDRAM[2].EmcTckesr                                = 0x00000005;
SDRAM[2].EmcTpd                                   = 0x00000004;
SDRAM[2].EmcTfaw                                  = 0x00000006;
SDRAM[2].EmcTrpab                                 = 0x00000000;
SDRAM[2].EmcTClkStable                            = 0x00000005;
SDRAM[2].EmcTClkStop                              = 0x00000005;
SDRAM[2].EmcTRefBw                                = 0x00000638;
SDRAM[2].EmcFbioCfg5                              = 0x106aa298;
SDRAM[2].EmcFbioCfg6                              = 0x00000000;
SDRAM[2].EmcFbioSpare                             = 0x00000000;
SDRAM[2].EmcCfgRsv                                = 0xff00ff00;
SDRAM[2].EmcMrs                                   = 0x80001221;
SDRAM[2].EmcEmrs                                  = 0x80100003;
SDRAM[2].EmcEmrs2                                 = 0x80200008;
SDRAM[2].EmcEmrs3                                 = 0x80300000;
SDRAM[2].EmcMrw1                                  = 0x00000000;
SDRAM[2].EmcMrw2                                  = 0x00000000;
SDRAM[2].EmcMrw3                                  = 0x00000000;
SDRAM[2].EmcMrw4                                  = 0x00000000;
SDRAM[2].EmcMrwExtra                              = 0x00000000;
SDRAM[2].EmcWarmBootMrwExtra                      = 0x00000000;
SDRAM[2].EmcWarmBootExtraModeRegWriteEnable       = 0x00000000;
SDRAM[2].EmcExtraModeRegWriteEnable               = 0x00000000;
SDRAM[2].EmcMrwResetCommand                       = 0x00000000;
SDRAM[2].EmcMrwResetNInitWait                     = 0x00000000;
SDRAM[2].EmcMrsWaitCnt                            = 0x000e000e;
SDRAM[2].EmcMrsWaitCnt2                           = 0x000e000e;
SDRAM[2].EmcCfg                                   = 0x73240000;
SDRAM[2].EmcCfg2                                  = 0x0000088d;
SDRAM[2].EmcCfgPipe                               = 0x0000d2b3;
SDRAM[2].EmcDbg                                   = 0x01000c00;
SDRAM[2].EmcCmdQ                                  = 0x10004408;
SDRAM[2].EmcMc2EmcQ                               = 0x06000404;
SDRAM[2].EmcDynSelfRefControl                     = 0x80000d22;
SDRAM[2].AhbArbitrationXbarCtrlMemInitDone        = 0x00000001;
SDRAM[2].EmcCfgDigDll                             = 0x002c00a0;
SDRAM[2].EmcCfgDigDllPeriod                       = 0x00008000;
SDRAM[2].EmcDevSelect                             = 0x00000002;
SDRAM[2].EmcSelDpdCtrl                            = 0x00040000;
SDRAM[2].EmcDllXformDqs0                          = 0x00064000;
SDRAM[2].EmcDllXformDqs1                          = 0x00064000;
SDRAM[2].EmcDllXformDqs2                          = 0x00064000;
SDRAM[2].EmcDllXformDqs3                          = 0x00064000;
SDRAM[2].EmcDllXformDqs4                          = 0x00064000;
SDRAM[2].EmcDllXformDqs5                          = 0x00064000;
SDRAM[2].EmcDllXformDqs6                          = 0x00064000;
SDRAM[2].EmcDllXformDqs7                          = 0x00064000;
SDRAM[2].EmcDllXformDqs8                          = 0x00064000;
SDRAM[2].EmcDllXformDqs9                          = 0x00064000;
SDRAM[2].EmcDllXformDqs10                         = 0x00064000;
SDRAM[2].EmcDllXformDqs11                         = 0x00064000;
SDRAM[2].EmcDllXformDqs12                         = 0x00064000;
SDRAM[2].EmcDllXformDqs13                         = 0x00064000;
SDRAM[2].EmcDllXformDqs14                         = 0x00064000;
SDRAM[2].EmcDllXformDqs15                         = 0x00064000;
SDRAM[2].EmcDllXformQUse0                         = 0x00000000;
SDRAM[2].EmcDllXformQUse1                         = 0x00000000;
SDRAM[2].EmcDllXformQUse2                         = 0x00000000;
SDRAM[2].EmcDllXformQUse3                         = 0x00000000;
SDRAM[2].EmcDllXformQUse4                         = 0x00000000;
SDRAM[2].EmcDllXformQUse5                         = 0x00000000;
SDRAM[2].EmcDllXformQUse6                         = 0x00000000;
SDRAM[2].EmcDllXformQUse7                         = 0x00000000;
SDRAM[2].EmcDllXformAddr0                         = 0x00000000;
SDRAM[2].EmcDllXformAddr1                         = 0x00000000;
SDRAM[2].EmcDllXformAddr2                         = 0x00000000;
SDRAM[2].EmcDllXformAddr3                         = 0x00000000;
SDRAM[2].EmcDllXformAddr4                         = 0x00000000;
SDRAM[2].EmcDllXformAddr5                         = 0x00000000;
SDRAM[2].EmcDllXformQUse8                         = 0x00000000;
SDRAM[2].EmcDllXformQUse9                         = 0x00000000;
SDRAM[2].EmcDllXformQUse10                        = 0x00000000;
SDRAM[2].EmcDllXformQUse11                        = 0x00000000;
SDRAM[2].EmcDllXformQUse12                        = 0x00000000;
SDRAM[2].EmcDllXformQUse13                        = 0x00000000;
SDRAM[2].EmcDllXformQUse14                        = 0x00000000;
SDRAM[2].EmcDllXformQUse15                        = 0x00000000;
SDRAM[2].EmcDliTrimTxDqs0                         = 0x00000000;
SDRAM[2].EmcDliTrimTxDqs1                         = 0x00000000;
SDRAM[2].EmcDliTrimTxDqs2                         = 0x00000000;
SDRAM[2].EmcDliTrimTxDqs3                         = 0x00000000;
SDRAM[2].EmcDliTrimTxDqs4                         = 0x00000000;
SDRAM[2].EmcDliTrimTxDqs5                         = 0x00000000;
SDRAM[2].EmcDliTrimTxDqs6                         = 0x00000000;
SDRAM[2].EmcDliTrimTxDqs7                         = 0x00000000;
SDRAM[2].EmcDliTrimTxDqs8                         = 0x00000000;
SDRAM[2].EmcDliTrimTxDqs9                         = 0x00000000;
SDRAM[2].EmcDliTrimTxDqs10                        = 0x00000000;
SDRAM[2].EmcDliTrimTxDqs11                        = 0x00000000;
SDRAM[2].EmcDliTrimTxDqs12                        = 0x00000000;
SDRAM[2].EmcDliTrimTxDqs13                        = 0x00000000;
SDRAM[2].EmcDliTrimTxDqs14                        = 0x00000000;
SDRAM[2].EmcDliTrimTxDqs15                        = 0x00000000;
SDRAM[2].EmcDllXformDq0                           = 0x00090000;
SDRAM[2].EmcDllXformDq1                           = 0x00090000;
SDRAM[2].EmcDllXformDq2                           = 0x00090000;
SDRAM[2].EmcDllXformDq3                           = 0x00090000;
SDRAM[2].EmcDllXformDq4                           = 0x00009000;
SDRAM[2].EmcDllXformDq5                           = 0x00009000;
SDRAM[2].EmcDllXformDq6                           = 0x00009000;
SDRAM[2].EmcDllXformDq7                           = 0x00009000;
SDRAM[2].WarmBootWait                             = 0x00000002;
SDRAM[2].EmcCttTermCtrl                           = 0x00000802;
SDRAM[2].EmcOdtWrite                              = 0x00000000;
SDRAM[2].EmcOdtRead                               = 0x00000000;
SDRAM[2].EmcZcalInterval                          = 0x00020000;
SDRAM[2].EmcZcalWaitCnt                           = 0x00000042;
SDRAM[2].EmcZcalMrwCmd                            = 0x80000000;
SDRAM[2].EmcMrsResetDll                           = 0x00000000;
SDRAM[2].EmcZcalInitDev0                          = 0x80000011;
SDRAM[2].EmcZcalInitDev1                          = 0x00000000;
SDRAM[2].EmcZcalInitWait                          = 0x00000003;
SDRAM[2].EmcZcalWarmColdBootEnables               = 0x00000003;
SDRAM[2].EmcMrwLpddr2ZcalWarmBoot                 = 0x040a00ab;
SDRAM[2].EmcZqCalDdr3WarmBoot                     = 0x00000000;
SDRAM[2].EmcZcalWarmBootWait                      = 0x00000002;
SDRAM[2].EmcMrsWarmBootEnable                     = 0x00000001;
SDRAM[2].EmcMrsResetDllWait                       = 0x00000000;
SDRAM[2].EmcMrsExtra                              = 0x80001221;
SDRAM[2].EmcWarmBootMrsExtra                      = 0x80100003;
SDRAM[2].EmcEmrsDdr2DllEnable                     = 0x00000000;
SDRAM[2].EmcMrsDdr2DllReset                       = 0x00000000;
SDRAM[2].EmcEmrsDdr2OcdCalib                      = 0x00000000;
SDRAM[2].EmcDdr2Wait                              = 0x00000000;
SDRAM[2].EmcClkenOverride                         = 0x00000000;
SDRAM[2].McDisExtraSnapLevels                     = 0x00000000;
SDRAM[2].EmcExtraRefreshNum                       = 0x00000002;
SDRAM[2].EmcClkenOverrideAllWarmBoot              = 0x00000000;
SDRAM[2].McClkenOverrideAllWarmBoot               = 0x00000000;
SDRAM[2].EmcCfgDigDllPeriodWarmBoot               = 0x00000003;
SDRAM[2].PmcVddpSel                               = 0x00000002;
SDRAM[2].PmcVddpSelWait                           = 0x00000002;
SDRAM[2].PmcDdrPwr                                = 0x00000003;
SDRAM[2].PmcDdrCfg                                = 0x00002002;
SDRAM[2].PmcIoDpd3Req                             = 0x4fff2f97;
SDRAM[2].PmcIoDpd3ReqWait                         = 0x00000000;
SDRAM[2].PmcRegShort                              = 0x00000000;
SDRAM[2].PmcNoIoPower                             = 0x00000000;
SDRAM[2].PmcPorDpdCtrlWait                        = 0x00000000;
SDRAM[2].EmcXm2CmdPadCtrl                         = 0x10000280;
SDRAM[2].EmcXm2CmdPadCtrl2                        = 0x770c0000;
SDRAM[2].EmcXm2CmdPadCtrl3                        = 0x050c0000;
SDRAM[2].EmcXm2CmdPadCtrl4                        = 0x00000000;
SDRAM[2].EmcXm2CmdPadCtrl5                        = 0x00111111;
SDRAM[2].EmcXm2DqsPadCtrl                         = 0x770c1414;
SDRAM[2].EmcXm2DqsPadCtrl2                        = 0x0130b118;
SDRAM[2].EmcXm2DqsPadCtrl3                        = 0x51451400;
SDRAM[2].EmcXm2DqsPadCtrl4                        = 0x00514514;
SDRAM[2].EmcXm2DqsPadCtrl5                        = 0x00514514;
SDRAM[2].EmcXm2DqsPadCtrl6                        = 0x51451400;
SDRAM[2].EmcXm2DqPadCtrl                          = 0x770c2990;
SDRAM[2].EmcXm2DqPadCtrl2                         = 0x00000000;
SDRAM[2].EmcXm2DqPadCtrl3                         = 0x00000000;
SDRAM[2].EmcXm2ClkPadCtrl                         = 0x77ffc081;
SDRAM[2].EmcXm2ClkPadCtrl2                        = 0x00000606;
SDRAM[2].EmcXm2CompPadCtrl                        = 0x81f1f108;
SDRAM[2].EmcXm2VttGenPadCtrl                      = 0x07070004;
SDRAM[2].EmcXm2VttGenPadCtrl2                     = 0x0000003f;
SDRAM[2].EmcXm2VttGenPadCtrl3                     = 0x016eeeee;
SDRAM[2].EmcAcpdControl                           = 0x00000000;
SDRAM[2].EmcSwizzleRank0ByteCfg                   = 0x00002031;
SDRAM[2].EmcSwizzleRank0Byte0                     = 0x25301476;
SDRAM[2].EmcSwizzleRank0Byte1                     = 0x24530617;
SDRAM[2].EmcSwizzleRank0Byte2                     = 0x74130652;
SDRAM[2].EmcSwizzleRank0Byte3                     = 0x24563071;
SDRAM[2].EmcSwizzleRank1ByteCfg                   = 0x00002031;
SDRAM[2].EmcSwizzleRank1Byte0                     = 0x62043517;
SDRAM[2].EmcSwizzleRank1Byte1                     = 0x36147205;
SDRAM[2].EmcSwizzleRank1Byte2                     = 0x73541260;
SDRAM[2].EmcSwizzleRank1Byte3                     = 0x51743602;
SDRAM[2].EmcDsrVttgenDrv                          = 0x0000003f;
SDRAM[2].EmcTxdsrvttgen                           = 0x00000066;
SDRAM[2].EmcBgbiasCtl0                            = 0x00000008;
SDRAM[2].McEmemAdrCfg                             = 0x00000000;
SDRAM[2].McEmemAdrCfgDev0                         = 0x00090303;
SDRAM[2].McEmemAdrCfgDev1                         = 0x00090303;
SDRAM[2].McEmemAdrCfgBankMask0                    = 0x00001248;
SDRAM[2].McEmemAdrCfgBankMask1                    = 0x00002490;
SDRAM[2].McEmemAdrCfgBankMask2                    = 0x00000920;
SDRAM[2].McEmemAdrCfgBankSwizzle3                 = 0x00000001;
SDRAM[2].McEmemCfg                                = 0x00001000;
SDRAM[2].McEmemArbCfg                             = 0x01000003;
SDRAM[2].McEmemArbOutstandingReq                  = 0x80000040;
SDRAM[2].McEmemArbTimingRcd                       = 0x00000001;
SDRAM[2].McEmemArbTimingRp                        = 0x00000001;
SDRAM[2].McEmemArbTimingRc                        = 0x00000004;
SDRAM[2].McEmemArbTimingRas                       = 0x00000002;
SDRAM[2].McEmemArbTimingFaw                       = 0x00000003;
SDRAM[2].McEmemArbTimingRrd                       = 0x00000001;
SDRAM[2].McEmemArbTimingRap2Pre                   = 0x00000003;
SDRAM[2].McEmemArbTimingWap2Pre                   = 0x00000008;
SDRAM[2].McEmemArbTimingR2R                       = 0x00000003;
SDRAM[2].McEmemArbTimingW2W                       = 0x00000002;
SDRAM[2].McEmemArbTimingR2W                       = 0x00000004;
SDRAM[2].McEmemArbTimingW2R                       = 0x00000006;
SDRAM[2].McEmemArbDaTurns                         = 0x06040203;
SDRAM[2].McEmemArbDaCovers                        = 0x000a0504;
SDRAM[2].McEmemArbMisc0                           = 0x73840a05;
SDRAM[2].McEmemArbMisc1                           = 0x70000f03;
SDRAM[2].McEmemArbRing1Throttle                   = 0x001f0000;
SDRAM[2].McEmemArbOverride                        = 0x10000000;
SDRAM[2].McEmemArbOverride1                       = 0x00000000;
SDRAM[2].McEmemArbRsv                             = 0xff00ff00;
SDRAM[2].McClkenOverride                          = 0x00000000;
SDRAM[2].McStatControl                            = 0x00000000;
SDRAM[2].McDisplaySnapRing                        = 0x00000003;
SDRAM[2].McVideoProtectBom                        = 0xfff00000;
SDRAM[2].McVideoProtectBomAdrHi                   = 0x00000000;
SDRAM[2].McVideoProtectSizeMb                     = 0x00000000;
SDRAM[2].McVideoProtectVprOverride                = 0xe4bac743;
SDRAM[2].McVideoProtectVprOverride1               = 0x00000013;
SDRAM[2].McVideoProtectGpuOverride0               = 0x00000000;
SDRAM[2].McVideoProtectGpuOverride1               = 0x00000000;
SDRAM[2].McSecCarveoutBom                         = 0xfff00000;
SDRAM[2].McSecCarveoutAdrHi                       = 0x00000000;
SDRAM[2].McSecCarveoutSizeMb                      = 0x00000000;
SDRAM[2].McVideoProtectWriteAccess                = 0x00000000;
SDRAM[2].McSecCarveoutProtectWriteAccess          = 0x00000000;
SDRAM[2].EmcCaTrainingEnable                      = 0x00000000;
SDRAM[2].EmcCaTrainingTimingCntl1                 = 0x1f7df7df;
SDRAM[2].EmcCaTrainingTimingCntl2                 = 0x0000001f;
SDRAM[2].SwizzleRankByteEncode                    = 0x0000000e;
SDRAM[2].BootRomPatchControl                      = 0x00000000;
SDRAM[2].BootRomPatchData                         = 0x00000000;
SDRAM[2].McMtsCarveoutBom                         = 0xfff00000;
SDRAM[2].McMtsCarveoutAdrHi                       = 0x00000000;
SDRAM[2].McMtsCarveoutSizeMb                      = 0x00000000;
SDRAM[2].McMtsCarveoutRegCtrl                     = 0x00000000;

SDRAM[3].MemoryType                               = NvBootMemoryType_Ddr3;
SDRAM[3].PllMInputDivider                         = 0x00000001;
SDRAM[3].PllMFeedbackDivider                      = 0x00000022;
SDRAM[3].PllMStableTime                           = 0x0000012c;
SDRAM[3].PllMSetupControl                         = 0x00000000;
SDRAM[3].PllMSelectDiv2                           = 0x00000000;
SDRAM[3].PllMPDLshiftPh45                         = 0x00000001;
SDRAM[3].PllMPDLshiftPh90                         = 0x00000001;
SDRAM[3].PllMPDLshiftPh135                        = 0x00000001;
SDRAM[3].PllMKCP                                  = 0x00000000;
SDRAM[3].PllMKVCO                                 = 0x00000000;
SDRAM[3].EmcBctSpare0                             = 0x00000000;
SDRAM[3].EmcBctSpare1                             = 0x00000000;
SDRAM[3].EmcBctSpare2                             = 0x00000000;
SDRAM[3].EmcBctSpare3                             = 0x00000000;
SDRAM[3].EmcBctSpare4                             = 0x00000000;
SDRAM[3].EmcBctSpare5                             = 0x00000000;
SDRAM[3].EmcBctSpare6                             = 0x00000000;
SDRAM[3].EmcBctSpare7                             = 0x00000000;
SDRAM[3].EmcBctSpare8                             = 0x00000000;
SDRAM[3].EmcBctSpare9                             = 0x00000000;
SDRAM[3].EmcBctSpare10                            = 0x00000000;
SDRAM[3].EmcBctSpare11                            = 0x00000000;
SDRAM[3].EmcClockSource                           = 0x40000002;
SDRAM[3].EmcAutoCalInterval                       = 0x001fffff;
SDRAM[3].EmcAutoCalConfig                         = 0xa1430000;
SDRAM[3].EmcAutoCalConfig2                        = 0x00000000;
SDRAM[3].EmcAutoCalConfig3                        = 0x00000000;
SDRAM[3].EmcAutoCalWait                           = 0x00000190;
SDRAM[3].EmcAdrCfg                                = 0x00000000;
SDRAM[3].EmcPinProgramWait                        = 0x00000001;
SDRAM[3].EmcPinExtraWait                          = 0x00000000;
SDRAM[3].EmcTimingControlWait                     = 0x00000000;
SDRAM[3].EmcRc                                    = 0x00000009;
SDRAM[3].EmcRfc                                   = 0x00000035;
SDRAM[3].EmcRfcSlr                                = 0x00000000;
SDRAM[3].EmcRas                                   = 0x00000006;
SDRAM[3].EmcRp                                    = 0x00000002;
SDRAM[3].EmcR2r                                   = 0x00000000;
SDRAM[3].EmcW2w                                   = 0x00000000;
SDRAM[3].EmcR2w                                   = 0x00000006;
SDRAM[3].EmcW2r                                   = 0x0000000a;
SDRAM[3].EmcR2p                                   = 0x00000005;
SDRAM[3].EmcW2p                                   = 0x0000000b;
SDRAM[3].EmcRdRcd                                 = 0x00000002;
SDRAM[3].EmcWrRcd                                 = 0x00000002;
SDRAM[3].EmcRrd                                   = 0x00000003;
SDRAM[3].EmcRext                                  = 0x00000003;
SDRAM[3].EmcWext                                  = 0x00000000;
SDRAM[3].EmcWdv                                   = 0x00000005;
SDRAM[3].EmcWdvMask                               = 0x00000005;
SDRAM[3].EmcQUse                                  = 0x00000006;
SDRAM[3].EmcQuseWidth                             = 0x00000003;
SDRAM[3].EmcIbdly                                 = 0x00000000;
SDRAM[3].EmcEInput                                = 0x00000004;
SDRAM[3].EmcEInputDuration                        = 0x00000007;
SDRAM[3].EmcPutermExtra                           = 0x00010000;
SDRAM[3].EmcPutermWidth                           = 0x00000004;
SDRAM[3].EmcPutermAdj                             = 0x00000000;
SDRAM[3].EmcCdbCntl1                              = 0x00000000;
SDRAM[3].EmcCdbCntl2                              = 0x00000000;
SDRAM[3].EmcCdbCntl3                              = 0x00000000;
SDRAM[3].EmcQRst                                  = 0x00000003;
SDRAM[3].EmcQSafe                                 = 0x0000000e;
SDRAM[3].EmcRdv                                   = 0x00000010;
SDRAM[3].EmcRdvMask                               = 0x00000012;
SDRAM[3].EmcQpop                                  = 0x0000000b;
SDRAM[3].EmcCtt                                   = 0x00000000;
SDRAM[3].EmcCttDuration                           = 0x00000004;
SDRAM[3].EmcRefresh                               = 0

Hi Jack
From your comment the SDRAM[3] lost many item. Could you check it.

Hi Shane,

During copy and past, look like data was missing.
Below is my SDRAM[3] data.

By the way, I did same test on Tegra TK1 board and it works fine.
It looks like R21.5 fastboot.bin read ram size information from somewhere(like EEPROM or something?)
Can you confirm it does?
If it does, can you advise how to avoid this?

Thank you.

SDRAM[3].MemoryType                               = NvBootMemoryType_Ddr3;
SDRAM[3].PllMInputDivider                         = 0x00000001;
SDRAM[3].PllMFeedbackDivider                      = 0x00000022;
SDRAM[3].PllMStableTime                           = 0x0000012c;
SDRAM[3].PllMSetupControl                         = 0x00000000;
SDRAM[3].PllMSelectDiv2                           = 0x00000000;
SDRAM[3].PllMPDLshiftPh45                         = 0x00000001;
SDRAM[3].PllMPDLshiftPh90                         = 0x00000001;
SDRAM[3].PllMPDLshiftPh135                        = 0x00000001;
SDRAM[3].PllMKCP                                  = 0x00000000;
SDRAM[3].PllMKVCO                                 = 0x00000000;
SDRAM[3].EmcBctSpare0                             = 0x00000000;
SDRAM[3].EmcBctSpare1                             = 0x00000000;
SDRAM[3].EmcBctSpare2                             = 0x00000000;
SDRAM[3].EmcBctSpare3                             = 0x00000000;
SDRAM[3].EmcBctSpare4                             = 0x00000000;
SDRAM[3].EmcBctSpare5                             = 0x00000000;
SDRAM[3].EmcBctSpare6                             = 0x00000000;
SDRAM[3].EmcBctSpare7                             = 0x00000000;
SDRAM[3].EmcBctSpare8                             = 0x00000000;
SDRAM[3].EmcBctSpare9                             = 0x00000000;
SDRAM[3].EmcBctSpare10                            = 0x00000000;
SDRAM[3].EmcBctSpare11                            = 0x00000000;
SDRAM[3].EmcClockSource                           = 0x40000002;
SDRAM[3].EmcAutoCalInterval                       = 0x001fffff;
SDRAM[3].EmcAutoCalConfig                         = 0xa1430000;
SDRAM[3].EmcAutoCalConfig2                        = 0x00000000;
SDRAM[3].EmcAutoCalConfig3                        = 0x00000000;
SDRAM[3].EmcAutoCalWait                           = 0x00000190;
SDRAM[3].EmcAdrCfg                                = 0x00000000;
SDRAM[3].EmcPinProgramWait                        = 0x00000001;
SDRAM[3].EmcPinExtraWait                          = 0x00000000;
SDRAM[3].EmcTimingControlWait                     = 0x00000000;
SDRAM[3].EmcRc                                    = 0x00000009;
SDRAM[3].EmcRfc                                   = 0x00000035;
SDRAM[3].EmcRfcSlr                                = 0x00000000;
SDRAM[3].EmcRas                                   = 0x00000006;
SDRAM[3].EmcRp                                    = 0x00000002;
SDRAM[3].EmcR2r                                   = 0x00000000;
SDRAM[3].EmcW2w                                   = 0x00000000;
SDRAM[3].EmcR2w                                   = 0x00000006;
SDRAM[3].EmcW2r                                   = 0x0000000a;
SDRAM[3].EmcR2p                                   = 0x00000005;
SDRAM[3].EmcW2p                                   = 0x0000000b;
SDRAM[3].EmcRdRcd                                 = 0x00000002;
SDRAM[3].EmcWrRcd                                 = 0x00000002;
SDRAM[3].EmcRrd                                   = 0x00000003;
SDRAM[3].EmcRext                                  = 0x00000003;
SDRAM[3].EmcWext                                  = 0x00000000;
SDRAM[3].EmcWdv                                   = 0x00000005;
SDRAM[3].EmcWdvMask                               = 0x00000005;
SDRAM[3].EmcQUse                                  = 0x00000006;
SDRAM[3].EmcQuseWidth                             = 0x00000003;
SDRAM[3].EmcIbdly                                 = 0x00000000;
SDRAM[3].EmcEInput                                = 0x00000004;
SDRAM[3].EmcEInputDuration                        = 0x00000007;
SDRAM[3].EmcPutermExtra                           = 0x00010000;
SDRAM[3].EmcPutermWidth                           = 0x00000004;
SDRAM[3].EmcPutermAdj                             = 0x00000000;
SDRAM[3].EmcCdbCntl1                              = 0x00000000;
SDRAM[3].EmcCdbCntl2                              = 0x00000000;
SDRAM[3].EmcCdbCntl3                              = 0x00000000;
SDRAM[3].EmcQRst                                  = 0x00000003;
SDRAM[3].EmcQSafe                                 = 0x0000000e;
SDRAM[3].EmcRdv                                   = 0x00000010;
SDRAM[3].EmcRdvMask                               = 0x00000012;
SDRAM[3].EmcQpop                                  = 0x0000000b;
SDRAM[3].EmcCtt                                   = 0x00000000;
SDRAM[3].EmcCttDuration                           = 0x00000004;
SDRAM[3].EmcRefresh                               = 0x00000607;
SDRAM[3].EmcBurstRefreshNum                       = 0x00000000;
SDRAM[3].EmcPreRefreshReqCnt                      = 0x00000181;
SDRAM[3].EmcPdEx2Wr                               = 0x00000002;
SDRAM[3].EmcPdEx2Rd                               = 0x00000002;
SDRAM[3].EmcPChg2Pden                             = 0x00000001;
SDRAM[3].EmcAct2Pden                              = 0x00000000;
SDRAM[3].EmcAr2Pden                               = 0x00000032;
SDRAM[3].EmcRw2Pden                               = 0x0000000f;
SDRAM[3].EmcTxsr                                  = 0x00000038;
SDRAM[3].EmcTxsrDll                               = 0x00000038;
SDRAM[3].EmcTcke                                  = 0x00000004;
SDRAM[3].EmcTckesr                                = 0x00000005;
SDRAM[3].EmcTpd                                   = 0x00000004;
SDRAM[3].EmcTfaw                                  = 0x00000006;
SDRAM[3].EmcTrpab                                 = 0x00000000;
SDRAM[3].EmcTClkStable                            = 0x00000005;
SDRAM[3].EmcTClkStop                              = 0x00000005;
SDRAM[3].EmcTRefBw                                = 0x00000638;
SDRAM[3].EmcFbioCfg5                              = 0x106aa298;
SDRAM[3].EmcFbioCfg6                              = 0x00000000;
SDRAM[3].EmcFbioSpare                             = 0x00000000;
SDRAM[3].EmcCfgRsv                                = 0xff00ff00;
SDRAM[3].EmcMrs                                   = 0x80001221;
SDRAM[3].EmcEmrs                                  = 0x80100003;
SDRAM[3].EmcEmrs2                                 = 0x80200008;
SDRAM[3].EmcEmrs3                                 = 0x80300000;
SDRAM[3].EmcMrw1                                  = 0x00000000;
SDRAM[3].EmcMrw2                                  = 0x00000000;
SDRAM[3].EmcMrw3                                  = 0x00000000;
SDRAM[3].EmcMrw4                                  = 0x00000000;
SDRAM[3].EmcMrwExtra                              = 0x00000000;
SDRAM[3].EmcWarmBootMrwExtra                      = 0x00000000;
SDRAM[3].EmcWarmBootExtraModeRegWriteEnable       = 0x00000000;
SDRAM[3].EmcExtraModeRegWriteEnable               = 0x00000000;
SDRAM[3].EmcMrwResetCommand                       = 0x00000000;
SDRAM[3].EmcMrwResetNInitWait                     = 0x00000000;
SDRAM[3].EmcMrsWaitCnt                            = 0x000e000e;
SDRAM[3].EmcMrsWaitCnt2                           = 0x000e000e;
SDRAM[3].EmcCfg                                   = 0x73240000;
SDRAM[3].EmcCfg2                                  = 0x0000088d;
SDRAM[3].EmcCfgPipe                               = 0x0000d2b3;
SDRAM[3].EmcDbg                                   = 0x01000c00;
SDRAM[3].EmcCmdQ                                  = 0x10004408;
SDRAM[3].EmcMc2EmcQ                               = 0x06000404;
SDRAM[3].EmcDynSelfRefControl                     = 0x80000d22;
SDRAM[3].AhbArbitrationXbarCtrlMemInitDone        = 0x00000001;
SDRAM[3].EmcCfgDigDll                             = 0x002c00a0;
SDRAM[3].EmcCfgDigDllPeriod                       = 0x00008000;
SDRAM[3].EmcDevSelect                             = 0x00000002;
SDRAM[3].EmcSelDpdCtrl                            = 0x00040000;
SDRAM[3].EmcDllXformDqs0                          = 0x00064000;
SDRAM[3].EmcDllXformDqs1                          = 0x00064000;
SDRAM[3].EmcDllXformDqs2                          = 0x00064000;
SDRAM[3].EmcDllXformDqs3                          = 0x00064000;
SDRAM[3].EmcDllXformDqs4                          = 0x00064000;
SDRAM[3].EmcDllXformDqs5                          = 0x00064000;
SDRAM[3].EmcDllXformDqs6                          = 0x00064000;
SDRAM[3].EmcDllXformDqs7                          = 0x00064000;
SDRAM[3].EmcDllXformDqs8                          = 0x00064000;
SDRAM[3].EmcDllXformDqs9                          = 0x00064000;
SDRAM[3].EmcDllXformDqs10                         = 0x00064000;
SDRAM[3].EmcDllXformDqs11                         = 0x00064000;
SDRAM[3].EmcDllXformDqs12                         = 0x00064000;
SDRAM[3].EmcDllXformDqs13                         = 0x00064000;
SDRAM[3].EmcDllXformDqs14                         = 0x00064000;
SDRAM[3].EmcDllXformDqs15                         = 0x00064000;
SDRAM[3].EmcDllXformQUse0                         = 0x00000000;
SDRAM[3].EmcDllXformQUse1                         = 0x00000000;
SDRAM[3].EmcDllXformQUse2                         = 0x00000000;
SDRAM[3].EmcDllXformQUse3                         = 0x00000000;
SDRAM[3].EmcDllXformQUse4                         = 0x00000000;
SDRAM[3].EmcDllXformQUse5                         = 0x00000000;
SDRAM[3].EmcDllXformQUse6                         = 0x00000000;
SDRAM[3].EmcDllXformQUse7                         = 0x00000000;
SDRAM[3].EmcDllXformAddr0                         = 0x00000000;
SDRAM[3].EmcDllXformAddr1                         = 0x00000000;
SDRAM[3].EmcDllXformAddr2                         = 0x00000000;
SDRAM[3].EmcDllXformAddr3                         = 0x00000000;
SDRAM[3].EmcDllXformAddr4                         = 0x00000000;
SDRAM[3].EmcDllXformAddr5                         = 0x00000000;
SDRAM[3].EmcDllXformQUse8                         = 0x00000000;
SDRAM[3].EmcDllXformQUse9                         = 0x00000000;
SDRAM[3].EmcDllXformQUse10                        = 0x00000000;
SDRAM[3].EmcDllXformQUse11                        = 0x00000000;
SDRAM[3].EmcDllXformQUse12                        = 0x00000000;
SDRAM[3].EmcDllXformQUse13                        = 0x00000000;
SDRAM[3].EmcDllXformQUse14                        = 0x00000000;
SDRAM[3].EmcDllXformQUse15                        = 0x00000000;
SDRAM[3].EmcDliTrimTxDqs0                         = 0x00000000;
SDRAM[3].EmcDliTrimTxDqs1                         = 0x00000000;
SDRAM[3].EmcDliTrimTxDqs2                         = 0x00000000;
SDRAM[3].EmcDliTrimTxDqs3                         = 0x00000000;
SDRAM[3].EmcDliTrimTxDqs4                         = 0x00000000;
SDRAM[3].EmcDliTrimTxDqs5                         = 0x00000000;
SDRAM[3].EmcDliTrimTxDqs6                         = 0x00000000;
SDRAM[3].EmcDliTrimTxDqs7                         = 0x00000000;
SDRAM[3].EmcDliTrimTxDqs8                         = 0x00000000;
SDRAM[3].EmcDliTrimTxDqs9                         = 0x00000000;
SDRAM[3].EmcDliTrimTxDqs10                        = 0x00000000;
SDRAM[3].EmcDliTrimTxDqs11                        = 0x00000000;
SDRAM[3].EmcDliTrimTxDqs12                        = 0x00000000;
SDRAM[3].EmcDliTrimTxDqs13                        = 0x00000000;
SDRAM[3].EmcDliTrimTxDqs14                        = 0x00000000;
SDRAM[3].EmcDliTrimTxDqs15                        = 0x00000000;
SDRAM[3].EmcDllXformDq0                           = 0x00090000;
SDRAM[3].EmcDllXformDq1                           = 0x00090000;
SDRAM[3].EmcDllXformDq2                           = 0x00090000;
SDRAM[3].EmcDllXformDq3                           = 0x00090000;
SDRAM[3].EmcDllXformDq4                           = 0x00009000;
SDRAM[3].EmcDllXformDq5                           = 0x00009000;
SDRAM[3].EmcDllXformDq6                           = 0x00009000;
SDRAM[3].EmcDllXformDq7                           = 0x00009000;
SDRAM[3].WarmBootWait                             = 0x00000002;
SDRAM[3].EmcCttTermCtrl                           = 0x00000802;
SDRAM[3].EmcOdtWrite                              = 0x00000000;
SDRAM[3].EmcOdtRead                               = 0x00000000;
SDRAM[3].EmcZcalInterval                          = 0x00020000;
SDRAM[3].EmcZcalWaitCnt                           = 0x00000042;
SDRAM[3].EmcZcalMrwCmd                            = 0x80000000;
SDRAM[3].EmcMrsResetDll                           = 0x00000000;
SDRAM[3].EmcZcalInitDev0                          = 0x80000011;
SDRAM[3].EmcZcalInitDev1                          = 0x00000000;
SDRAM[3].EmcZcalInitWait                          = 0x00000003;
SDRAM[3].EmcZcalWarmColdBootEnables               = 0x00000003;
SDRAM[3].EmcMrwLpddr2ZcalWarmBoot                 = 0x040a00ab;
SDRAM[3].EmcZqCalDdr3WarmBoot                     = 0x00000000;
SDRAM[3].EmcZcalWarmBootWait                      = 0x00000002;
SDRAM[3].EmcMrsWarmBootEnable                     = 0x00000001;
SDRAM[3].EmcMrsResetDllWait                       = 0x00000000;
SDRAM[3].EmcMrsExtra                              = 0x80001221;
SDRAM[3].EmcWarmBootMrsExtra                      = 0x80100003;
SDRAM[3].EmcEmrsDdr2DllEnable                     = 0x00000000;
SDRAM[3].EmcMrsDdr2DllReset                       = 0x00000000;
SDRAM[3].EmcEmrsDdr2OcdCalib                      = 0x00000000;
SDRAM[3].EmcDdr2Wait                              = 0x00000000;
SDRAM[3].EmcClkenOverride                         = 0x00000000;
SDRAM[3].McDisExtraSnapLevels                     = 0x00000000;
SDRAM[3].EmcExtraRefreshNum                       = 0x00000002;
SDRAM[3].EmcClkenOverrideAllWarmBoot              = 0x00000000;
SDRAM[3].McClkenOverrideAllWarmBoot               = 0x00000000;
SDRAM[3].EmcCfgDigDllPeriodWarmBoot               = 0x00000003;
SDRAM[3].PmcVddpSel                               = 0x00000002;
SDRAM[3].PmcVddpSelWait                           = 0x00000002;
SDRAM[3].PmcDdrPwr                                = 0x00000003;
SDRAM[3].PmcDdrCfg                                = 0x00002002;
SDRAM[3].PmcIoDpd3Req                             = 0x4fff2f97;
SDRAM[3].PmcIoDpd3ReqWait                         = 0x00000000;
SDRAM[3].PmcRegShort                              = 0x00000000;
SDRAM[3].PmcNoIoPower                             = 0x00000000;
SDRAM[3].PmcPorDpdCtrlWait                        = 0x00000000;
SDRAM[3].EmcXm2CmdPadCtrl                         = 0x10000280;
SDRAM[3].EmcXm2CmdPadCtrl2                        = 0x770c0000;
SDRAM[3].EmcXm2CmdPadCtrl3                        = 0x050c0000;
SDRAM[3].EmcXm2CmdPadCtrl4                        = 0x00000000;
SDRAM[3].EmcXm2CmdPadCtrl5                        = 0x00111111;
SDRAM[3].EmcXm2DqsPadCtrl                         = 0x770c1414;
SDRAM[3].EmcXm2DqsPadCtrl2                        = 0x0130b118;
SDRAM[3].EmcXm2DqsPadCtrl3                        = 0x51451400;
SDRAM[3].EmcXm2DqsPadCtrl4                        = 0x00514514;
SDRAM[3].EmcXm2DqsPadCtrl5                        = 0x00514514;
SDRAM[3].EmcXm2DqsPadCtrl6                        = 0x51451400;
SDRAM[3].EmcXm2DqPadCtrl                          = 0x770c2990;
SDRAM[3].EmcXm2DqPadCtrl2                         = 0x00000000;
SDRAM[3].EmcXm2DqPadCtrl3                         = 0x00000000;
SDRAM[3].EmcXm2ClkPadCtrl                         = 0x77ffc081;
SDRAM[3].EmcXm2ClkPadCtrl2                        = 0x00000606;
SDRAM[3].EmcXm2CompPadCtrl                        = 0x81f1f108;
SDRAM[3].EmcXm2VttGenPadCtrl                      = 0x07070004;
SDRAM[3].EmcXm2VttGenPadCtrl2                     = 0x0000003f;
SDRAM[3].EmcXm2VttGenPadCtrl3                     = 0x016eeeee;
SDRAM[3].EmcAcpdControl                           = 0x00000000;
SDRAM[3].EmcSwizzleRank0ByteCfg                   = 0x00002031;
SDRAM[3].EmcSwizzleRank0Byte0                     = 0x25301476;
SDRAM[3].EmcSwizzleRank0Byte1                     = 0x24530617;
SDRAM[3].EmcSwizzleRank0Byte2                     = 0x74130652;
SDRAM[3].EmcSwizzleRank0Byte3                     = 0x24563071;
SDRAM[3].EmcSwizzleRank1ByteCfg                   = 0x00002031;
SDRAM[3].EmcSwizzleRank1Byte0                     = 0x62043517;
SDRAM[3].EmcSwizzleRank1Byte1                     = 0x36147205;
SDRAM[3].EmcSwizzleRank1Byte2                     = 0x73541260;
SDRAM[3].EmcSwizzleRank1Byte3                     = 0x51743602;
SDRAM[3].EmcDsrVttgenDrv                          = 0x0000003f;
SDRAM[3].EmcTxdsrvttgen                           = 0x00000066;
SDRAM[3].EmcBgbiasCtl0                            = 0x00000008;
SDRAM[3].McEmemAdrCfg                             = 0x00000000;
SDRAM[3].McEmemAdrCfgDev0                         = 0x00090303;
SDRAM[3].McEmemAdrCfgDev1                         = 0x00090303;
SDRAM[3].McEmemAdrCfgBankMask0                    = 0x00001248;
SDRAM[3].McEmemAdrCfgBankMask1                    = 0x00002490;
SDRAM[3].McEmemAdrCfgBankMask2                    = 0x00000920;
SDRAM[3].McEmemAdrCfgBankSwizzle3                 = 0x00000001;
SDRAM[3].McEmemCfg                                = 0x00001000;
SDRAM[3].McEmemArbCfg                             = 0x01000003;
SDRAM[3].McEmemArbOutstandingReq                  = 0x80000040;
SDRAM[3].McEmemArbTimingRcd                       = 0x00000001;
SDRAM[3].McEmemArbTimingRp                        = 0x00000001;
SDRAM[3].McEmemArbTimingRc                        = 0x00000004;
SDRAM[3].McEmemArbTimingRas                       = 0x00000002;
SDRAM[3].McEmemArbTimingFaw                       = 0x00000003;
SDRAM[3].McEmemArbTimingRrd                       = 0x00000001;
SDRAM[3].McEmemArbTimingRap2Pre                   = 0x00000003;
SDRAM[3].McEmemArbTimingWap2Pre                   = 0x00000008;
SDRAM[3].McEmemArbTimingR2R                       = 0x00000003;
SDRAM[3].McEmemArbTimingW2W                       = 0x00000002;
SDRAM[3].McEmemArbTimingR2W                       = 0x00000004;
SDRAM[3].McEmemArbTimingW2R                       = 0x00000006;
SDRAM[3].McEmemArbDaTurns                         = 0x06040203;
SDRAM[3].McEmemArbDaCovers                        = 0x000a0504;
SDRAM[3].McEmemArbMisc0                           = 0x73840a05;
SDRAM[3].McEmemArbMisc1                           = 0x70000f03;
SDRAM[3].McEmemArbRing1Throttle                   = 0x001f0000;
SDRAM[3].McEmemArbOverride                        = 0x10000000;
SDRAM[3].McEmemArbOverride1                       = 0x00000000;
SDRAM[3].McEmemArbRsv                             = 0xff00ff00;
SDRAM[3].McClkenOverride                          = 0x00000000;
SDRAM[3].McStatControl                            = 0x00000000;
SDRAM[3].McDisplaySnapRing                        = 0x00000003;
SDRAM[3].McVideoProtectBom                        = 0xfff00000;
SDRAM[3].McVideoProtectBomAdrHi                   = 0x00000000;
SDRAM[3].McVideoProtectSizeMb                     = 0x00000000;
SDRAM[3].McVideoProtectVprOverride                = 0xe4bac743;
SDRAM[3].McVideoProtectVprOverride1               = 0x00000013;
SDRAM[3].McVideoProtectGpuOverride0               = 0x00000000;
SDRAM[3].McVideoProtectGpuOverride1               = 0x00000000;
SDRAM[3].McSecCarveoutBom                         = 0xfff00000;
SDRAM[3].McSecCarveoutAdrHi                       = 0x00000000;
SDRAM[3].McSecCarveoutSizeMb                      = 0x00000000;
SDRAM[3].McVideoProtectWriteAccess                = 0x00000000;
SDRAM[3].McSecCarveoutProtectWriteAccess          = 0x00000000;
SDRAM[3].EmcCaTrainingEnable                      = 0x00000000;
SDRAM[3].EmcCaTrainingTimingCntl1                 = 0x1f7df7df;
SDRAM[3].EmcCaTrainingTimingCntl2                 = 0x0000001f;
SDRAM[3].SwizzleRankByteEncode                    = 0x0000000e;
SDRAM[3].BootRomPatchControl                      = 0x00000000;
SDRAM[3].BootRomPatchData                         = 0x00000000;
SDRAM[3].McMtsCarveoutBom                         = 0xfff00000;
SDRAM[3].McMtsCarveoutAdrHi                       = 0x00000000;
SDRAM[3].McMtsCarveoutSizeMb                      = 0x00000000;
SDRAM[3].McMtsCarveoutRegCtrl                     = 0x00000000;

Could you replace this to collect the uart log to check.
fastboot.tar.gz (325 KB)

Hi Shane,

Below is uart log msg.

[0000.000] [TegraBoot] (version UNDEF_BUILD)
[0000.004] Reset reason: power on reset
[0000.007] Processing in recovery mode
[0000.011] Established communication link with host
[0001.107] Downloaded bct successfully
[0001.111] No Battery Present
[0001.115] Sdram initialization is successful
[0001.134] Downloaded DTB successfully
[0001.139] No Battery Present
[0001.225] Downloaded bootloader successfully
[0001.229] CPU-bootloader entry address: 0x83d88000
[0001.234] BoardId: 375
[0001.236] Vpr Carveout Base=0x0f4600000 Size=0x00ba00000
[0001.241] Tsec Carveout Base=0x0f2600000 Size=0x002000000
[0001.246] Lp0 Carveout Base=0x0f25ff000 Size=0x000001000
[0001.251] Xusb Carveout Base=0x0f2300000 Size=0x000200000
[0001.256] Platform-DebugCarveout: 0
[0001.283] CPU power rail is up
[0001.286] Performing RAM repair
[0001.289] CPU clock init successful
[0001.292] Starting CPU & Halting co-processor
NvBctInit +++++
NvBctInit -----
NvBctGetData +++++
NvBctGetData -----7
NvBctGetData +++++111
Error while getting the SDRam size
NvBctInit +++++
NvBctInit -----
NvBctGetData +++++
NvBctGetData -----7
NvBctGetData +++++111
Error while getting the SDRam size
NVRM Initialized shmoo database
NVRM CLOCKS: PLLX0:      696000 Khz
NVRM CLOCKS: PLLM0:      408000 Khz
NVRM CLOCKS: PLLC0:      0 Khz
NVRM CLOCKS: PLLP0:      408000 Khz
NVRM CLOCKS: PLLA0:      11289 Khz
NVRM CLOCKS: CPU:        696000 Khz
NVRM CLOCKS: AVP:        48000 Khz
NVRM CLOCKS: System Bus: 48000 Khz
NVRM CLOCKS: Memory Controller: 204000
NVRM CLOCKS: External Memory Controller: 204000
EEPROM instance-5: No slave at this instance.
EEPROM instance-0: No slave at this instance.
EEPROM instance-0: Querying board info from BCT.
EEPROM instance-0: No board info available for this instance in BCT.
EEPROM instance-1: No slave at this instance.
EEPROM instance-1: Querying board info from BCT.
EEPROM instance-1: Board info present in BCT is invalid.
EEPROM instance-2: No slave at this instance.
EEPROM instance-2: Querying board info from BCT.
EEPROM instance-2: No board info available for this instance in BCT.
EEPROM instance-3: No slave at this instance.
EEPROM instance-3: Querying board info from BCT.
EEPROM instance-3: No board info available for this instance in BCT.
EEPROM instance-4: No slave at this instance.
EEPROM instance-4: Querying board info from BCT.
EEPROM instance-4: Board info present in BCT is invalid.
EEPROM instance-5: No slave at this instance.
EEPROM instance-5: Querying board info from BCT.
EEPROM instance-5: BoardInfo: 0x0000:0x0000:0375:0000:05:EEPROM instance-6: Querying board info from BCT.
EEPROM instance-6: BoardInfo: 0xffff:0xffff:0375:0000:05:EEPROM instance-7: No slave at this instance.
EEPROM instance-7: Querying board info from BCT.
EEPROM instance-7: No board info available for this instance in BCT.
Final BoardID: proc: 375 and pmu 375
ADJUSTED CLOCKS:
MC clock is set to 204000 KHz
EMC clock is set to 204000 KHz (DDR clock is at 204000 KHz)
PLLX0 clock is set to 696000 KHz
PLLC0 clock is set to      0 KHz
CPU clock is set to 696000 KHz
System and AVP clock is set to  48000 KHz
GraphicsHost clock is set to 163200 KHz
MSENC clock is set to  40800 KHz
Vde clock is set to 204000 KHz
NvBctInit +++++
NvBctInit -----
NvBctGetData +++++
NvBctGetData -----7
NvBctGetData +++++111
Error while getting the SDRam size
NvBctInit +++++
NvBctInit -----
NvBctGetData +++++
NvBctGetData -----7
NvBctGetData +++++111
Error while getting the SDRam size

Hi Jack71
The fastboot have some coding error cause the issue. Please verify this attached file.
fastboot_dbg.tar.gz (325 KB)

Thank you Shane,

It works well.
Below is uart log msg for your reference.
Will you make release version ?

Thanks again.

[0000.000] [TegraBoot] (version UNDEF_BUILD)
[0000.004] Reset reason: power on reset
[0000.007] Processing in recovery mode
[0000.011] Established communication link with host
[0001.073] Downloaded bct successfully
[0001.077] No Battery Present
[0001.081] Sdram initialization is successful
[0001.093] Downloaded DTB successfully
[0001.101] No Battery Present
[0001.182] Downloaded bootloader successfully
[0001.186] CPU-bootloader entry address: 0x83d88000
[0001.191] BoardId: 375
[0001.193] Vpr Carveout Base=0x0f4600000 Size=0x00ba00000
[0001.198] Tsec Carveout Base=0x0f2600000 Size=0x002000000
[0001.203] Lp0 Carveout Base=0x0f25ff000 Size=0x000001000
[0001.208] Xusb Carveout Base=0x0f2300000 Size=0x000200000
[0001.213] Platform-DebugCarveout: 0
[0001.240] CPU power rail is up
[0001.243] Performing RAM repair
[0001.246] CPU clock init successful
[0001.249] Starting CPU & Halting co-processor
NvBctInit +++++
NvBctInit -----
NvBctGetData +++++
NvBctGetData -----3
NvBctGetData +++++111
NvBctGetData -----111 DramSize 400000f0
NVRM Initialized shmoo database
NVRM CLOCKS: PLLX0:      696000 Khz
NVRM CLOCKS: PLLM0:      408000 Khz
NVRM CLOCKS: PLLC0:      0 Khz
NVRM CLOCKS: PLLP0:      408000 Khz
NVRM CLOCKS: PLLA0:      11289 Khz
NVRM CLOCKS: CPU:        696000 Khz
NVRM CLOCKS: AVP:        48000 Khz
NVRM CLOCKS: System Bus: 48000 Khz
NVRM CLOCKS: Memory Controller: 204000
NVRM CLOCKS: External Memory Controller: 204000
EEPROM instance-5: No slave at this instance.
EEPROM instance-0: No slave at this instance.
EEPROM instance-0: Querying board info from BCT.
EEPROM instance-0: No board info available for this instance in BCT.
EEPROM instance-1: No slave at this instance.
EEPROM instance-1: Querying board info from BCT.
EEPROM instance-1: Board info present in BCT is invalid.
EEPROM instance-2: No slave at this instance.
EEPROM instance-2: Querying board info from BCT.
EEPROM instance-2: No board info available for this instance in BCT.
EEPROM instance-3: No slave at this instance.
EEPROM instance-3: Querying board info from BCT.
EEPROM instance-3: No board info available for this instance in BCT.
EEPROM instance-4: No slave at this instance.
EEPROM instance-4: Querying board info from BCT.
EEPROM instance-4: Board info present in BCT is invalid.
EEPROM instance-5: No slave at this instance.
EEPROM instance-5: Querying board info from BCT.
EEPROM instance-5: BoardInfo: 0x0000:0x0000:0375:0000:05:EEPROM instance-6: Querying board info from BCT.
EEPROM instance-6: BoardInfo: 0xffff:0xffff:0375:0000:05:EEPROM instance-7: No slave at this instance.
EEPROM instance-7: Querying board info from BCT.
EEPROM instance-7: No board info available for this instance in BCT.
Final BoardID: proc: 375 and pmu 375
ADJUSTED CLOCKS:
MC clock is set to 204000 KHz
EMC clock is set to 204000 KHz (DDR clock is at 204000 KHz)
PLLX0 clock is set to 696000 KHz
PLLC0 clock is set to      0 KHz
CPU clock is set to 696000 KHz
System and AVP clock is set to  48000 KHz
GraphicsHost clock is set to 163200 KHz
MSENC clock is set to  40800 KHz
Vde clock is set to 204000 KHz

Bootloader-Cpu Init at (time stamp): 92501696 us

Pinmux changes applied in kernel way

[bootloader] (version UNDEF_BUILD)
Platform Pre Boot configuration...
NvDdkUsbhBlockDevInit..
Initializing Display
The proc BoardInfo: 0x0177:0x0000:0x05:0x00:0x00
The proc BoardInfo: 0x0177:0x0000:0x05:0x00:0x00
This Pmu Module is not present.
The best display mode is 2560x1600/60Hz, pclk: 268627Khz

DSI PAD calibration done

DSI PAD calibration done

DSI PAD calibration done

DSI PAD calibration done
Entering NvFlash recovery mode / Nv3p Server

Nv3pServer Version 4.13.0000

***: DecodeCSD:
   : readBlkBits=9, readBlkSize=512 Bytes
   : nSectors=(CSIZE+1)*(2**(CSizeMult+2))=4096 * 512 = 2097152 Sectors
   : writeBlkBits=9, writeBlkSize=512 Bytes
   : ERASE_GRP_SIZE=31, ERASE_GRP_MULT=31
   : EraseGrpSize=(31+1)*(31+1)=1024 Sectors (524288 Bytes)
   : WPGrpSize=31744 Sectors (16252928 Bytes)
***: ReadExtCSD:
   : overriding USER Sectors = 61071360 Sectors
   : keep CSD EraseGrpSize = 1024 Sectors (524288 Bytes)
   : keep CSD WPGrpSize = 31744 wBlks (16252928 Bytes)
   : BootPartSize = 4194304 Bytes (8192 Sectors)
***: SetBlockSize to 512 Bytes SKIPPED because CMD16 is illegal for DDR50...
***: SdGetDevInfo: PagesPerBlock = 32 pages (256 Sectors)
***: SdGetDevInfo: TotSecs=TotBlk(238624)*PgPerBlk(32)*SecsPerPg(8)=61087744
Region=1 SD Erase start 512B-sector=0,512B-sector-num=8192
Region=2 SD Erase start 512B-sector=0,512B-sector-num=8192
Region=0 SD Erase start 512B-sector=0,512B-sector-num=61071360
SD Alloc Partid=2, start sector=0,num=2048
SD Alloc Partid=3, start sector=2048,num=512
SD Alloc Partid=4, start sector=2560,num=512
SD Alloc Partid=5, start sector=3072,num=1024
SD Alloc Partid=6, start sector=4096,num=4096
SD Alloc Partid=7, start sector=8192,num=1536
SD Alloc Partid=8, start sector=9728,num=512
SD Alloc Partid=9, start sector=10240,num=1536
SD Alloc Partid=10, start sector=11776,num=1536
SD Alloc Partid=11, start sector=13312,num=512
SD Alloc Partid=12, start sector=13824,num=5767168
SD Alloc Partid=13, start sector=5780992,num=1024
SD Alloc Partid=14, start sector=5782016,num=16384
SD Alloc Partid=15, start sector=5798400,num=1024
SD Alloc Partid=16, start sector=5799424,num=1024
SD Alloc Partid=17, start sector=5800448,num=1024
SD Alloc Partid=18, start sector=5801472,num=1024
SD Alloc Partid=19, start sector=5802496,num=512
SD Alloc Partid=20, start sector=5803008,num=1832448
SD Alloc Partid=21, start sector=7635456,num=512
Region=0 SD Erase start 512B-sector=4096,512B-sector-num=4096
Start Downloading PPT
Parallel write enabled

End Downloading PPT
Time taken to download partition: 217 ms

Start Downloading EBT

End Downloading EBT
Time taken to download partition: 222 ms

Start Downloading APP

End Downloading APP
Time taken to download partition: 1008 ms

Start Downloading DTB

End Downloading DTB
Time taken to download partition: 27 ms

Start Downloading GPT

End Downloading GPT
Time taken to download partition: 205 ms
WriterThread: Exiting
Rebooting device after flashing.

U-Boot SPL 2014.10-rc2-dirty (Dec 13 2016 - 12:42:20)
boot device - 0
mkimage signature not found - ih_magic = ffffffff
Jumping to U-Boot


U-Boot 2014.10-rc2-dirty (Dec 13 2016 - 12:42:20)

This modify was base on the r21.5, After next public release you can use this for your customize board.

ok thanks.

Hi Shane,

Thanks for your support.

I’m wondering above problem is related with “enabling boot loader redundancy” I posted at https://devtalk.nvidia.com/default/topic/1002610/jetson-tk1/enabling-boot-loader-redundancy-on-custom-board/.

Our custom board can flash with your patch fastboot.bin only.
I’m using custom generated DDR configuration which is 528MHz clock.
It is attached.

The symptom is like this.

  1. Evaluation Board
    Works well with both of original R21.5 fastboot.bin and patched fastboot.bin

  2. Our Custom board
    Can’t flash with original R21.5 fastboot.bin
    Can flash with patched fastboot.bin but fail to boot if I enable redundancy.

Is there any way to debug boot fail problem ?

Thanks.

PM375_Hynix_2GB_H5TC4G63CFR_RDA_528MHz.txt (80.5 KB)