Booting custom card having MT40A512M16LY

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Booting custom card having MT40A512M16LY

ソリューションへジャンプ
1,051件の閲覧回数
Ghouse
Contributor V

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

0 件の賞賛
返信
1 解決策
1,002件の閲覧回数
Ghouse
Contributor V

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.

元の投稿で解決策を見る

タグ(1)
0 件の賞賛
返信
4 返答(返信)
1,039件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

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.

0 件の賞賛
返信
1,027件の閲覧回数
Ghouse
Contributor V

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.

 

0 件の賞賛
返信
1,020件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

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/.

0 件の賞賛
返信
1,003件の閲覧回数
Ghouse
Contributor V

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.

タグ(1)
0 件の賞賛
返信