用UUU工具烧录I.MX8 问题

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

用UUU工具烧录I.MX8 问题

599 Views
zeh
Contributor I

NXP工程师,你好

最近遇到一个问题,在编译完u-boot并根据port手册生成flash.bin文件,在用uuu工具下载时,下载不成功,log如下,
D:\Tools\uuu>uuu -lsusb
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.5.141-0-gde317f5

Connected Known USB Devices
        Path     Chip    Pro     Vid     Pid     BcdVersion
        ==================================================
        1:33     MX8MM   SDP:    0x1FC9 0x0134   0x0101


但是执行烧写 命令后 ,直接显示100%并且一直停在以下界面。无论等多久都没有其它任何进度或变化。
D:\Tools\uuu>uuu -b emmc_all flash.bin rootfs.sdcard
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.5.141-0-gde317f5

Success 0    Failure 0

 

1:33     1/ 1 [=================100%=================] SDP: boot -f flash.bin -scanlimited 0x800000

在执行烧写命令以后,uart2输出信息如下
U-Boot SPL 2018.03-00924-g654088c-dirty (Jun 05 2022 - 20:04:16 -0700)
power_pca9450_init
DRAM PHY training for 2400MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training PASS
DRAM PHY training for 1336MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training FAILED
DRAM PHY training for 2400MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training PASS
Normal Boot
Trying to boot from USB SDP
SDP: initialize...
SDP: handle requests...

0 Kudos
Reply
4 Replies

529 Views
zeh
Contributor I

另外无意间发现一个现象:

    板子刚启动时,进入serial down模式时,USB HID 的VID为0x0134,当进行UUU命令后(此时PC重新枚举USB HID),USB HID的VID变成了0x0151(此处与我在<board>_defconfig配置不一致,在defconfig中默认为0x0152。

    以上是我无意间发现的问题,推测是否跟USB OTG有关系(我在<board>.dts中已经开启了USB OTG1和USB OTG2,同时在<board>_defconfig中关闭了CONFIG_TYPEC=n)?

0 Kudos
Reply

528 Views
zeh
Contributor I
描述中HID应该说的VID有误,修正下,上述所有均为PID
0 Kudos
Reply

581 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi, 

这个是有DDR Training失败 - DRAM PHY training for 1336MTS

要不只用一个2400频点试试看。

 

Regards

Harvey

0 Kudos
Reply

546 Views
zeh
Contributor I
现象跟原先的差别不大,依旧这样。



这是串口的输出

U-Boot SPL 2023.04-dirty (Jul 07 2024 - 20:53:31 +0800)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 2400MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
SEC0: RNG instantiated
Normal Boot
boot from USB SDP
SDP: initialize...
SDP: handle requests...



这是uuu工具的输出。

Wait for Known USB Device Appear...
New USB Device Attached at 1:42
1:42>Start Cmd:SDP: boot -f flash.bin
6400%1:42>Okay (0.317s)
0 Kudos
Reply