imx8mp 6g lpddr无法启动

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx8mp 6g lpddr无法启动

581 Views
jimmyhua
Contributor I

nxp,您好!imx8mp 板子上连接MT53E1536M32D4DT-046 WT:A,6G lpddr,uboot启动起来就死了,只打印几行,我的操作步骤如下:

1.下载MX8M_Plus_LPDDR4_RPA_v9.xlsx,打开此文件,复制出ddr stress test file,保存为ddr1.ds

2.下载mscale_ddr_tool_v3.31,运行MSCALE_DDR_Tool.exe,load ddr script选择ddr1.ds,连上串口,点击download按钮,串口打印出ddr信息。点击calibration,format选择array,点击Gen Code按钮,生成lpddr4_timing.c

3.把lpddr4_timing.c拷贝到uboot的board/freescale/imx8mp_evk目录下,

4.make imx8mp_ddr4_evk_defconfig, make menuconfig,arm architecture-->nxp i.mx8M board select,选择imx8mp lpddr4 evk。device drivers-->i.mx8 ddr controler ,去除imx8 ddr4。然后make all -j16,生成 uboot

5.切换到imx8mp/imx-mkimage/src/imx-mkimage目录下,

cp /home/jimmy/share/imx8_6g/uboot/u-boot-nodtb.bin /home/jimmy/share/imx8_6g/imx8mp/imx-mkimage/src/imx-mkimage/iMX8M/ -v
cp /home/jimmy/share/imx8_6g/uboot/spl/u-boot-spl.bin /home/jimmy/share/imx8_6g/imx8mp/imx-mkimage/src/imx-mkimage/iMX8M/ -v
cp /home/jimmy/share/imx8_6g/uboot/arch/arm/dts/imx8mp-ddr4-evk.dtb /home/jimmy/share/imx8_6g/imx8mp/imx-mkimage/src/imx-mkimage/iMX8M/ -v
cp /home/jimmy/share/imx8_6g/uboot/tools/mkimage /home/jimmy/share/imx8_6g/imx8mp/imx-mkimage/src/imx-mkimage/iMX8M/ -v
make SOC=iMX8MP clean
make SOC=iMX8MP flash_ddr4_evk

生成flash.bin

6.SD卡连上电脑,dd if=flash.bin of=/dev/sdb bs=1k seek=32.

7.板子切换到sd卡启动模式,启动,串口打印信息如下:

U-Boot SPL 2022.04 (Jan 06 2024 - 21:18:52 -0800)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 4000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done

只打这几行字符串,uboot就死在这里了,我是哪里出错了,ddr初始化好像成功了,bl31.bin要改吗?uboot的dts需不需要改动?

0 Kudos
Reply
1 Reply

544 Views
pengyong_zhang
NXP Employee
NXP Employee

hi, @jimmyhua 

What is your BSP version? Please use the following link download the new DDR Config Tool:

https://www.nxp.com/design/design-center/development-boards/i-mx-evaluation-and-development-boards/c...

you don't need to change the bl31 and dts file.

B.R

 

0 Kudos
Reply