ok I have gone through all of this in great detail to make it work. currently when I try to boot it just freezes at DRAM
U-Boot 2017.03-imx_v2017.03_4.9.88_2.0.0_ga+gb76bb1bf9f (Dec 18 2020 - 19:53:16 -0800)
CPU: Freescale i.MX7ULP rev2.0 at 500 MHz
Reset cause: POR
Boot mode: Dual boot
Model: NXP i.MX7ULP EVK
DRAM:
when I did the stress test calibration I got values that were fairly close to default
Read calibration
MPRDDLCTL PHY0 (0x40ab0848) = 0x383A343A
Write calibration
MPWRDLCTL PHY0 (0x40ab0850) = 0x32323432
The total things i changed to the u-boot-img recipe were:
mx7ulp_evk.h
#define PHYS_SDRAM_SIZE SZ_2G
and in imximage.cfg the following register values were updated
40AB0800 : A1310000 -> A1390003
40AB085C : 0D3900A0 -> 1B39009F
40AB0890 : 00400000 -> 00480000
40AB0848 : 40404040 -> 383A343A
40AB0850 : 40404040 -> 32323432
40AB0004 : 00020052 -> 00020012
40AB0010 : 00100A22 -> B6AD0B22
40AB0038 : 00120556 -> 00130556
40AB083C : 20000000 -> A0000000
40AB0404 : 00011006 -> 00010106
These were based on the Register programming aid (and the two that were from the calibrations)
There were no other changes I could see that needed to be done based on the four links you provided. That being said I could not get the stress test to run, it just sat there at the first frequency.
DDR Stress Test Iteration 1
DDR Freq: 297 MHz
t0.1: data is addr test
I left it there for 6 hour one time just to be sure. But the calibration worked fine, and I am using the eval board so I knew the MHZ were at 320.
Also every time I download any script to the stress test tool it always starts saying
" DDR configuration
DDR type is LPDDR3 in 1-channel mode.
Data width: 32, bank num: 8
Row size: 14, col size: 10
Both chip select CSD0 and CSD1 are used
Density per chip select: 512MB
Density per channel: 1024MB "
no matter what the drop down menu settings are.
Any help is greatly appreciated.