Hi, i am using a custom card based on LS1046ardb, however in the custom card iam using MT40A512M16LY for DDR4.
Iam unable to boot please let me know how do i change the ATF corresponding to MT40A512M16LY.
Thanks
解決済! 解決策の投稿を見る。
Hi, the issue is resolved, i had used the DDR4 from LS1046afrwy, hence i modified the DDRinit.c file accordingly and now iam able to detect the DDR4 SDRAM on the Custom board.
Thank you for ur support.
You need to modify the following sections in ATF source code plat/nxp/soc-ls1046a/ls1046ardb/ddr_init.c according to your custom board.
static const struct rc_timing rce[] = {
{1600, 8, 7},
{1867, 8, 7},
{2134, 8, 9},
{}
};
static const struct board_timing udimm[] = {
{0x04, rce, 0x01020304, 0x06070805},
{0x1f, rce, 0x01020304, 0x06070805},
};
You could use QCVS DDRv tool to assist you to get the optimized parameters.
1. Please create a QCVS DDR project with reading from SPD method.
2. Please open Validation panel to connect to the target board to do validation and optimization. Please refer to "1.2 DDR validation" in attached user manaul.
3. After validation, please click "Project->Generate Processor Expert Code", please refer to file ddr_init1.c in Generated_Code folder in QCVS tool.
Hi,
I was able to successfully do the ddr validation (i used a ddr project of ls1046afrwy) and was able to Generate Processor Expert Code in my custom board.
Following files are generated in the "Generated_Code" folder
ddr1.h,
ddrCtrl_1.py
ddr_init1.c
InitDdrRegisters_1.c
pbi_commands_1.txt
platform_def1.h
uboot_ddr1.c
now, please let me know what needs to be done next to generate Firmware image.
Please make sure that you have connected QCVS DDRv tool to the your target board to complete DDR validation and optimization.
Please refer to the generated file ddr_init1.c, please modify ATF source code plat/nxp/soc-ls1046a/ls1046ardb/ddr_init.c according to this file.
I assume that you are using LSDK 21.08.
$ flex-builder -c atf -m ls1046ardb -b qspi
Go to ATF source code folder components/firmware/atf/, please modify plat/nxp/soc-ls1046a/ls1046ardb/ddr_init.c
Build atf again.
$ flex-builder -c atf -m ls1046ardb -b qspi
Get the firmware images in build/firmware/atf/ls1046ardb/.
Hi, the issue is resolved, i had used the DDR4 from LS1046afrwy, hence i modified the DDRinit.c file accordingly and now iam able to detect the DDR4 SDRAM on the Custom board.
Thank you for ur support.