-
Notifications
You must be signed in to change notification settings - Fork 2
Create DDR Training File
Just like iMX6, in board/
folder, we can change or tuning DRAM parameters ourself,
With official DDR stress tool, we can create 2 files, ddr_init.c
and ddrphy_train.c
which already existed in uboot/board/freescale/imx8mq_evk/ddr
,
change the DRAM parameter and do some optimization.
- Download : i.MX8MSCALE DDR Tool Release
- Make sure you got driver : CP210x USB to UART Bridge VCP Drivers
Setup the board, and connect both debug port and typeC to your computer.
Setup boot mode pin to __SerialDownloader__ mode,
and switch boot device to SD card (None eMMC)
Press Search button to refresh comport list, and press Connect button to link to your board.
Load DDR Script that you created or customized.
Here I used sample script provide by NXP.
Press Download button to write the register to the iMX8 board.
Press Calibration button to training the DRAM.
If Calibration passed, Gen code button will be available.
Press Gen Code button to create ddr_init.c
and ddrphy_train.c
files
Replace ddr_init.c
and ddrphy_train.c
in uboot/board/freescale/imx8mq_evk/ddr
and make uboot with new parameter!
Have Fun!