Hi yuri
These are the steps I did for ddr callibration.
1. Ran ddr test tool to get ddr_callibration(log is as below)
MMDC registers updated from calibration
Read calibration
MPRDDLCTL PHY0 (0x021b0848) = 0x4644484A
Write calibration
MPWRDLCTL PHY0 (0x021b0850) = 0x3A363A30
2. changes in imximage.cfg file:
DATA 4 0x021b0848 0x4646484a //changed to test for 512:old value 0x4241444a
DATA 4 0x021b0850 0x3a343a30 //changed to test for 512:old value 0x3030312b
3. dts file in uboot and kernel
memory {
reg = <0x80000000 0x20000000>; //it was 0x40000000 changed for 512 Mb
};
4. Build (u-boot kernel rfs) and flash to device
Log while flashing:
U-Boot 2017.03-imx_v2017.03_4.9.88_2.0.0_ga+ge88a4b5270 (Sep 23 2019 - 15:50:48 +0530)
CPU: Freescale i.MX6SL rev1.2 996 MHz (running at 792 MHz)
CPU: Commercial temperature grade (0C to 95C) at 49C
Reset cause: WDOG
Model: Freescale i.MX6 SoloLite EVK Board
Board: MX6SLEVK
DRAM: 1 GiB
Initializing for QP4720 bona 2P8 display
Initializing for bona 2P8 display
PMIC: PFUZE100! DEV_ID=0x10 REV_ID=0x21
MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
gpio@020ac000: get_value: error: gpio GPIO5_0 not reserved
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Net:
Error: ethernet@02188000 address not set.
No ethernet found.
Boot from USB for mfgtools
Use default environment for mfgtools
Run bootcmd_mfg: run mfgtool_args;if test ${tee} = yes; then bootm ${tee_addr} ${initrd_addr} ${fdt_addr}; else bootz ${loadaddr} ${initrd_add;
Hit any key to stop autoboot: 0
Kernel image @ 0x80800000 [ 0x000000 - 0x5edac0 ]
## Loading init Ramdisk from Legacy Image at 83800000 ...
Image Name: fsl-image-mfgtool-initramfs-imx6
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 8594034 Bytes = 8.2 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 83000000
Booting using the fdt blob at 0x83000000
Using Device Tree in place at 83000000, end 8300c538
switch to ldo_bypass mode!
Starting kernel ...
But the rootfs still doesn't flash it just hangs at kernel
I tried bitbake fsl-image-mfgtool-initramfs and it created a
fsl-image-mfgtool-initramfs-imx6slevk-20190923104008.rootfs.cpio.gz.u-boot file
but even this doesn't help in flashing.
am I missing something?